This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/47881] [4.6 Regression] -fcompare-debug failure (length) with -O -fno-dce -funroll-loops -fno-web


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]