Understanding alignment in g++

Yang Zhang yanghatespam@gmail.com
Sat Feb 14 09:07:00 GMT 2009


Ian Lance Taylor wrote:
> Yang Zhang <yanghatespam@gmail.com> writes:
> 
>> I expected a cast-align warning or something.
> 
> If you use -Wcast-align you should get a warning for targets where the
> cast increases the required alignment.

Sorry for being unclear.  I was trying to say that I had specified 
-Wcast-align but got no such warning.  Any hints?
-- 
Yang Zhang
http://www.mit.edu/~y_z/



More information about the Gcc-help mailing list