CFLAGS=-O2 -pipe problems in RELENG_5 ?

Paul Mather paul at gromit.dlib.vt.edu
Thu Jan 20 13:56:16 PST 2005


On Thu, 2005-01-20 at 16:44 -0500, Mike Jakubik wrote:
> Paul Mather said:
> 
> > On Thu, 2005-01-20 at 19:17 +0000, Chris wrote:
> >> what does -fno-strict-alias do? I cannot find it in man gcc
> >
> > It is a truncation of "-fno-strict-aliasing".  The flag does not appear
> > to be described in the gcc man page, but is documented in the gcc info
> > page (search for "-fstrict-aliasing").  To quote the info page,
> > -fstrict-aliasing "allows the compiler to assume the strictest aliasing
> > rules applicable to the language being compiled. ..."
> 
> Wouldn't we want strict aliasing then?

Yes, but unfortunately some ports circumvent the strict aliasing rules,
which is why those ports break when building with -O2 (which causes
-fstrict-aliasing to be enabled).

Cheers,

Paul.
-- 
e-mail: paul at gromit.dlib.vt.edu

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
        --- Frank Vincent Zappa


More information about the freebsd-stable mailing list