From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23422 invoked by alias); 30 Mar 2007 22:29:53 -0000 Received: (qmail 23187 invoked by uid 48); 30 Mar 2007 22:29:37 -0000 Date: Fri, 30 Mar 2007 22:29:00 -0000 Message-ID: <20070330222937.23186.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug debug/31391] [4.3 Regression] undefined label with -O -g due to cfglayout In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg02808.txt.bz2 ------- 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