This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Proposal: -O4 -> strict-aliasing



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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]