strict aliasing question

Mike Stump mrs@apple.com
Fri Nov 10 21:53:00 GMT 2006


On Nov 10, 2006, at 9:48 AM, Howard Chu wrote:
> Richard Guenther wrote:
>> If you compile with -O3 -combine *.c -o alias it will break.

> Thanks for pointing that out. But that's not a realistic danger for  
> the actual application. The accessor function is always going to be  
> in a library compiled at a separate time. The call will always be  
> from a program built at a separate time, so -combine isn't a factor.

We are building a compiler to outsmart you.  We presently working on  
technology (google ("LTO")) to break your code.  :-)  Don't cry when  
we turn it on by default and it does.  I'd recommend understanding  
the rules and following them.



More information about the Gcc mailing list