This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Proposal: -O4 -> strict-aliasing
- To: nbecker at fred dot net
- Subject: Re: Proposal: -O4 -> strict-aliasing
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 28 Oct 1999 14:21:37 +0100
- Cc: Mark Mitchell <mark at codesourcery dot com>, gcc at gcc dot gnu dot org
- Cc: richard dot earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: richard dot earnshaw at arm dot com
nbecker@fred.net said:
> 0) no opt
> 1) quick/simple opt
> 2) extensive/expensive opt
> 3) opt that may increase code size
> 4) potentially dangerous opt
There is nothing potentially dangerous about -mstrict-aliasing if your
code is written according to the rules for ANSI C.
There are many other optimizations in the compiler that will break code
that doesn't meet the standard; I don't see why we should make an
exception for this one.
R.