• 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: GCC 4.0 optimization bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >GCC 4.0 optimization bug? (From: Jeremy Sagan <email@hidden>)

  • Prev by Date: Circular target dependency problem
  • Next by Date: Re: Circular target dependency problem
  • Previous by thread: GCC 4.0 optimization bug?
  • Next by thread: Circular target dependency problem
  • Index(es):
    • Date
    • Thread