This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Understanding alignment in g++


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/



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