• 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
Bus error with gcc on simple function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bus error with gcc on simple function?


  • Subject: Bus error with gcc on simple function?
  • From: Ben Weiss <email@hidden>
  • Date: Sat, 7 Apr 2007 23:35:16 -0700

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....

-Ben

// ======================================================================== ===================================================
// Makes gcc crash of a bus error
// ======================================================================== ===================================================
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>
  • Prev by Date: Re: Porting a Win static lib (.lib) to OS X
  • Next by Date: Re: '@' token with .pp file
  • Previous by thread: Re: Porting a Win static lib (.lib) to OS X
  • Next by thread: Re: Bus error with gcc on simple function?
  • Index(es):
    • Date
    • Thread