[Bug debug/31391] [4.3 Regression] undefined label with -O -g due to cfglayout

steven at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 30 22:29:00 GMT 2007



------- Comment #7 from steven at gcc dot gnu dot org  2007-03-30 23:29 -------
Index: cfgcleanup.c
===================================================================
--- cfgcleanup.c        (revision 123362)
+++ cfgcleanup.c        (working copy)
@@ -2034,6 +2034,8 @@ try_optimize_cfg (int mode)

                      reorder_insns_nobb (label, label, bb_note);
                      BB_HEAD (b) = bb_note;
+                     if (BB_END (b) == bb_note)
+                       BB_END (b) = label;
                    }
                  if (dump_file)
                    fprintf (dump_file, "Deleted label in block %i.\n",


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31391



More information about the Gcc-bugs mailing list