This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42179] Incorrect optimization (-O2) yields wrong code (regression)
- From: "d dot g dot gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2009 11:02:48 -0000
- Subject: [Bug c/42179] Incorrect optimization (-O2) yields wrong code (regression)
- References: <bug-42179-6373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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