This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/47881] [4.6 Regression] -fcompare-debug failure (length) with -O -fno-dce -funroll-loops -fno-web
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 7 Mar 2011 11:41:44 +0000
- Subject: [Bug debug/47881] [4.6 Regression] -fcompare-debug failure (length) with -O -fno-dce -funroll-loops -fno-web
- Auto-submitted: auto-generated
- References: <bug-47881-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47881
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-07 11:41:17 UTC ---
--- gcc/ira.c.jj 2011-02-21 15:37:42.000000000 +0100
+++ gcc/ira.c 2011-03-07 12:33:59.000000000 +0100
@@ -3232,7 +3232,8 @@ ira (FILE *f)
check_allocation ();
#endif
- delete_trivially_dead_insns (get_insns (), max_reg_num ());
+ if (delete_trivially_dead_insns (get_insns (), max_reg_num ()))
+ df_analyze ();
init_reg_equiv_memory_loc ();
indeed fixes this testcase, haven't tried to bootstrap/regtest it nor have any
idea whether some IRA bookkeeping will need to be updated in that case.