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: Ben Weiss <email@hidden>
- Date: Sun, 8 Apr 2007 18:28:43 -0700
On Apr 8, 2007, at 6:07 PM, Justin C. Walker wrote:
On Apr 8, 2007, at 17:16 , Ben Weiss wrote:
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++).
You'll have to enable Altivec and SSE in your targets. (These set the
__VEC__ and __SSE__ flags). I should have mentioned that.
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.
Here's the output with -v enabled (now using Xcode 2.4.1):
GNU C++ version 4.0.1 (Apple Computer, Inc. build 5367) (i686-apple-
darwin8)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5367).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-
heapsize=131072
Compiler executable checksum: 9ef1414b68473e3eade33817d035e4ce
/Users/benweiss/Documents/Projects/.../Test.cpp: In function 'void foo
()':
/Users/benweiss/Documents/Projects/.../Test.cpp:26: warning: unused
variable 'mult_'
/Users/benweiss/Documents/Projects/...Test.cpp:29: internal compiler
error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
{standard input}:9:FATAL:.abort detected. Assembly stopping.
Any insight? (And yes, I submitted a bug report.)
-Ben
_______________________________________________
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