This is the mail archive of the gcc-bugs@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: No warning when breaking strict-aliasing rules despite -Wstrict-aliasing



On Nov 9, 2004, at 2:23 PM, Anders Torger wrote:


gcc 2.95 generates correct code.

It just generates code which you expected not the code which the C standard says it is undefined (oh by the way we could wipe your HD if you invoke undefined behavior).

Also a DR report says we cannot error out on undefined code
because it might not execute at all.

Thanks,
Andrew Pinski


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