• 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: gcc4 optimization problems on intel mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc4 optimization problems on intel mac


  • Subject: Re: gcc4 optimization problems on intel mac
  • From: Richard Schreyer <email@hidden>
  • Date: Tue, 23 Jan 2007 13:44:39 -0800

On Jan 23, 2007, at 1:34 PM, Paul Walmsley wrote:


Both of these problems only existed in our release builds, and after some tweaking and testing, I determined that the problem was related specifically to the optimization settings in GCC4. Under *any* setting except -O0, these strange behaviors would reappear, though without optimization everything runs normally.
I wouldn't necessarily assume that the bug is in compiler's optimisation (though of course it can never be ruled out). I've come across many 'release build only' bugs in the past that have emerged as a result of the various differences between debug and release builds. A few of the things to try would be:

To add to this, during our Intel bringup, I definitely did find several of 'intel/optimized only' bugs, and the root cause was almost always a latent issue in the code, and not the compiler.


Your best friend here is to set per-file optimization flags to narrow the issue down to a single source file that is sensitive to the optimization flags. Once you've gotten that far, you can use
#pragma optimization_level [0123]
to continue your binary search within the offending file(s).


Richard Schreyer
_______________________________________________
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: 
 >gcc4 optimization problems on intel mac (From: Nik Reiman <email@hidden>)
 >Re: gcc4 optimization problems on intel mac (From: Paul Walmsley <email@hidden>)

  • Prev by Date: Re: Objective-C++ now crashes (was "Objective-C exception handler
  • Next by Date: Re: Xcode chockes on variable-sized arrays in struct definitions
  • Previous by thread: Re: gcc4 optimization problems on intel mac
  • Next by thread: Re: gcc4 optimization problems on intel mac
  • Index(es):
    • Date
    • Thread