This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/36742] [4.2 Regression] g++ -O2 produces wrong code
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2008 20:56:00 -0000
- Subject: [Bug libstdc++/36742] [4.2 Regression] g++ -O2 produces wrong code
- References: <bug-36742-16424@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from bkoz at gcc dot gnu dot org 2008-07-11 20:56 -------
Isn't this the kind of thing that -Wstrict-aliasing or -Wstrict-aliasing=n
should warn about?
I will start to experiment with this, in the thought that we should not
actually have stuff in the library with aliasing problems.
Not expecting to fix this on the 4.2.x branch though, but if we find issues
that can be fixed on trunk/4.3.x, may consider doing so.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36742