This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30252] [4.2 regression] miscompilation of sigc++-2.0 based code with -fstrict-aliasing
- 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: 15 May 2007 07:59:26 -0000
- Subject: [Bug c++/30252] [4.2 regression] miscompilation of sigc++-2.0 based code with -fstrict-aliasing
- References: <bug-30252-7958@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #27 from rguenth at gcc dot gnu dot org 2007-05-15 08:59 -------
Yes, that's a (part of!) a diff of a -details dump with the following patch
Index: passes.c
===================================================================
--- passes.c (revision 124501)
+++ passes.c (working copy)
@@ -496,7 +496,9 @@ init_optimization_passes (void)
NEXT_PASS (pass_early_warn_uninitialized);
/* Initial scalar cleanups. */
+ NEXT_PASS (pass_may_alias);
NEXT_PASS (pass_ccp);
+ NEXT_PASS (pass_may_alias);
NEXT_PASS (pass_fre);
NEXT_PASS (pass_dce);
NEXT_PASS (pass_forwprop);
(so it's easy to reproduce the full dump)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30252