[Bug c/42179] Incorrect optimization (-O2) yields wrong code (regression)

d dot g dot gorbachev at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 26 11:03:00 GMT 2009



------- Comment #2 from d dot g dot gorbachev at gmail dot com  2009-11-26 11:02 -------
> note that there are no warnings

A warning is issued with -Wstrict-aliasing=1 or -Wstrict-aliasing=2, but no
warning with -Wstrict-aliasing=3 (or -Wall).

I see there are already a few bug reports about this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42179



More information about the Gcc-bugs mailing list