This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30567] -O3 optimizer bug
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Apr 2007 21:47:45 -0000
- Subject: [Bug c++/30567] -O3 optimizer bug
- References: <bug-30567-3137@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #21 from rguenth at gcc dot gnu dot org 2007-04-18 22:47 -------
Code in comment #19 is perfectly correct. I can reproduce the difference with
the attached testcase and -O -fstrict-aliasing -finline-functions.
-fno-strict-aliasing fixes it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30567