Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 4 and strict aliasing



Hi Stefan,

Yes, I've added -fno-strict-aliasing to the 'Other C++ Flags' setting in Xcode but it seems to be ignored, even though it does appear in the command line. One thing that might matter is that it is added after all other options. Here is part of the command line:

/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -faltivec -fasm-blocks -O3 -Wreturn-type -Wformat -Wmissing-braces -Wparentheses -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wsign-compare -DMACOSX -DAUDIOUNITS -fmessage-length=0 -funroll-loops -ffast-math -mtune=G4 -ftree-vectorize -fvisibility-inlines-hidden -Wno-invalid-offsetof -mmacosx-version-min=10.3
<includes skipped>
-DNDEBUG -fno-strict-aliasing -falign-loops=16 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk -include /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/pch-fjwtzxtrfzovnrcfiacmnnqisrwj/pch.h
<paths skipped>


Best regards,
Frederik Slijkerman

----- Original Message ----- From: "Stefan Haller" <email@hidden>
To: "Frederik Slijkerman (FabFilter)" <email@hidden>; <email@hidden>
Sent: Friday, 17 March 2006 18:25
Subject: Re: GCC 4 and strict aliasing



Frederik Slijkerman (FabFilter) <email@hidden> wrote:

Please, please, can someone tell me how I can turn off strict aliasing while
still being able to compile at the -O3 level? Thanks!

Did you try -O3 -fno-strict-aliasing?


--
Stefan Haller
Ableton
http://www.ableton.com/

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: GCC 4 and strict aliasing (From: email@hidden (Stefan Haller))



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.