• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bus error with gcc on simple function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bus error with gcc on simple function?


  • Subject: Re: Bus error with gcc on simple function?
  • From: Ben Weiss <email@hidden>
  • Date: Sun, 8 Apr 2007 17:16:46 -0700

This is with OSX 10.4.9 on a PowerMac Quad G5, 4.5GB RAM.

Xcode here is version 2.3, gcc 4.0 (upgrading to Xcode 2.4.1 now, though a friend was able to confirm the bug with 2.4.1 on an Intel mac). I figured it would be easy enough for you to copy and paste the code and try it out in your configuration... (or does it not crash there?) The crash occurs here regardless of target platform, so the bug must be in the preprocessor somewhere. Anyway, is this the preferred syntax for initializing an array of vectors, or is there a better way?

Thanks
Ben

On Apr 8, 2007, at 4:42 PM, Justin C. Walker wrote:


On Apr 7, 2007, at 23:35 , Ben Weiss wrote:

The following function kills gcc on my G5 with Xcode. Can anyone else repeat this? Bizarrely, when the array is extended to 5 elements, or when I use 'vector float' instead of the typedef, it compiles fine....

It's easier to provide assistance if we know what environment you are working with (OS version, Xcode version, gcc version, ...).


Justin

static void foo() { #if __VEC__ typedef vector float vfloat; #elif __SSE__ typedef vFloat vfloat; #endif vfloat mult_[4] = { { 1.0f, 1.0f, 1.0f, 1.0f }, { 2.0f, 2.0f, 2.0f, 2.0f }, { 3.0f, 3.0f, 3.0f, 3.0f }, { 4.0f, 4.0f, 4.0f, 4.0f } }; } _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Bus error with gcc on simple function?
      • From: "Justin C. Walker" <email@hidden>
References: 
 >Bus error with gcc on simple function? (From: Ben Weiss <email@hidden>)
 >Re: Bus error with gcc on simple function? (From: "Justin C. Walker" <email@hidden>)

  • Prev by Date: Re: Bus error with gcc on simple function?
  • Next by Date: Re: Bus error with gcc on simple function?
  • Previous by thread: Re: Bus error with gcc on simple function?
  • Next by thread: Re: Bus error with gcc on simple function?
  • Index(es):
    • Date
    • Thread