Re: Properly controlling CFLAGS/CXXFLAGS
- From: Uwe Doering <gemini@xxxxxxxxxxx>
- Date: Sat, 23 Dec 2006 01:52:20 +0100
Garrett Cooper wrote:
[...]Interesting. No wonder I didn't have it in my Gentoo /etc/make.conf. It appears (from what I see) that maybe -fno-strict-aliasing has been enabled by default (at least it doesn't show up in the GCC 4.1.1 manpage on FC5).
It's documented in GCC's info page. There, you may want to search for '-fstrict-aliasing' instead of '-fno-strict-aliasing'. The 'no-' prefix is generic and can be used to switch off flags that are on by default or have been set to on earlier in the command line.
With '-O2' and better, '-fstrict-aliasing' is the default in newer versions of GCC, AFAIK, but people tend to switch it off because it apparently breaks too many software packages. Or at least those whose code base dates back to times where '-fno-strict-aliasing' was the default and people got away with certain nasty coding hacks that no longer work with '-fstrict-aliasing'.
Uwe
--
Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers
gemini@xxxxxxxxxxx | http://www.escapebox.net
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Properly controlling CFLAGS/CXXFLAGS
- From: Joseph J. Damato
- Re: Properly controlling CFLAGS/CXXFLAGS
- References:
- Re: Properly controlling CFLAGS/CXXFLAGS
- From: Oliver Fromme
- Re: Properly controlling CFLAGS/CXXFLAGS
- From: Garrett Cooper
- Re: Properly controlling CFLAGS/CXXFLAGS
- Prev by Date: Re: Locking fundamentals
- Next by Date: Re: Properly controlling CFLAGS/CXXFLAGS
- Previous by thread: Re: Properly controlling CFLAGS/CXXFLAGS
- Next by thread: Re: Properly controlling CFLAGS/CXXFLAGS
- Index(es):
Relevant Pages
|
|