This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/31391] [4.3 Regression] undefined label with -O -g due to cfglayout
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2007 22:29:37 -0000
- Subject: [Bug debug/31391] [4.3 Regression] undefined label with -O -g due to cfglayout
- References: <bug-31391-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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