• 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: Xcode seems to be generating bad code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode seems to be generating bad code


  • Subject: Re: Xcode seems to be generating bad code
  • From: Jeff Laing <email@hidden>
  • Date: Fri, 27 Apr 2012 08:40:45 +1000

>From: Chris Lattner [mailto:email@hidden]

>Unfortunately, this is a known bug in Xcode 4.3.2.  It is a corner case where we emit

> "cmp.w   r0, #-2147483648" instead of "cmn     r0, #-2147483648" at -O0.

> Workarounds include avoiding INT_MIN or building the affected file at -O1 (or higher).

> 

> I'm sorry for the bug, it is already fixed int he Xcode 4.4 developer previews.

Since this is actually tripping over code in an opensource code-base that I'd rather not change, I'd prefer to switch back to GCC (if that fixes the problem) for this project.  However, when I've done that in all the controls I can find, I get an error at 'precompile headers' time telling me that "-fobjc-arc" is not valid.

I assume that this is an LLVM option being passed to GCC but I can't for the life of me see where I turn it off.  The "Automatic Reference Counting" popup is definitely off - what other knobs do I need to push?

This may be complicated up by the fact that I have sub-projects, but I believe I have hit every copy of the appropriate option selectors.  Is it possible this is caused because I have the C dialect specified as "compiler default" and my *system* default compiler is LLVM while my *project* compiler is GCC ?

 Jeff.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Xcode seems to be generating bad code
      • From: Chris Lattner <email@hidden>
References: 
 >Xcode seems to be generating bad code (From: Jeff Laing <email@hidden>)
 >Re: Xcode seems to be generating bad code (From: Chris Lattner <email@hidden>)

  • Prev by Date: Re: Tweak auto-completion
  • Next by Date: Re: Xcode seems to be generating bad code
  • Previous by thread: Re: Xcode seems to be generating bad code
  • Next by thread: Re: Xcode seems to be generating bad code
  • Index(es):
    • Date
    • Thread