This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49338] wrong code with -O2 and -O3
- From: "hsmeier at arcor dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Jun 2011 08:24:29 +0000
- Subject: [Bug c++/49338] wrong code with -O2 and -O3
- Auto-submitted: auto-generated
- References: <bug-49338-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49338
--- Comment #3 from Hans Meier <hsmeier at arcor dot de> 2011-06-09 08:24:07 UTC ---
(In reply to comment #1)
> What happens if you add -fno-strict-aliasing to the command line?
Problem disappears (tested all 4.5.x both with -O2 and -O3).
Thanks! We can probbly live with that.