Re: Bus error with gcc on simple function?
Re: Bus error with gcc on simple function?
- Subject: Re: Bus error with gcc on simple function?
- From: "Justin C. Walker" <email@hidden>
- Date: Sun, 8 Apr 2007 18:07:16 -0700
On Apr 8, 2007, at 17:16 , Ben Weiss wrote:
This is with OSX 10.4.9 on a PowerMac Quad G5, 4.5GB RAM.
Let's trade. Your code doesn't cause problems on my system. See below.
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?)
Some of the more advanced engineers here can probably handle the copy/
paste thing. What is not easy is to infer from your description what
versions you use, and without that information, the experience of
others may not apply to you.
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?
I think the "{}" syntax is fine.
Using gcc 3.3 and 4.0.1, with and without __VEC__ defined, and either
in Xcode or the command-line, I don't get a gcc crash.
What I do get is compiler grousing about vfloat being undeclared
(both C and C++).
If you run gcc/g++ from the command-line with "-v", the compiler will
tell you what it's doing, and you may be able to tell where the
problem is.
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------
_______________________________________________
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