Re: GCC 4.0 optimization bug?
Re: GCC 4.0 optimization bug?
- Subject: Re: GCC 4.0 optimization bug?
- From: Eric Albert <email@hidden>
- Date: Wed, 25 Jan 2006 23:20:06 -0800
On Jan 25, 2006, at 7:11 PM, Jeremy Sagan wrote:
All compiles here are compiled with the -O2 option for intel (although
-O3 and -OS also fail)
The problem occurs because gPlayFileList is 0 and can not be
dereferenced. Apparently GCC with O2 or greater optimization will move
the dereferencing outside of the loop and actually dereference
gPlayFileList before checking numfiles. Is this not a bug in the
compiler?
It looks like it's probably a compiler bug. Please file a bug report
with a preprocessed version of the source file (such as you'd get by
adding -save-temps to the compiler flags) and a copy of the command
line used to invoke the compiler. Thanks!
-Eric
_______________________________________________
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