[Bug c/42908] gcc -O2 -Wall doesn't warn about strict aliasing
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 30 22:04:00 GMT 2010
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-30 22:03 -------
$ gcc-4.4 -S t.c -O2 -Wall -Wstrict-aliasing=2
t.c: In function ÂmainÂ:
t.c:15: warning: dereferencing type-punned pointer might break strict-aliasing
rules
you need to enable level 2 to get warnings about this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42908
More information about the Gcc-bugs
mailing list