This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54972] O2 breaks something in 4.6.3
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 12:01:22 +0000
- Subject: [Bug c++/54972] O2 breaks something in 4.6.3
- Auto-submitted: auto-generated
- References: <bug-54972-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54972
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-18 12:01:22 UTC ---
(In reply to comment #4)
> You need -Wstrict-aliasing=2.
And -O2
If the optimization passes don't run then they can't produce warnings.