aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-07-22 15:49:00 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-07-22 15:49:00 -0700
commit0b6301aebeb907d1ebaee5b075c05595db9fa08f (patch)
treee6084682d9a611776003959fa5d19dbb30bcb583
parent6b24c25948265c30431460146bc6f43ee9a34c23 (diff)
downloadgcc-0b6301aebeb907d1ebaee5b075c05595db9fa08f.zip
gcc-0b6301aebeb907d1ebaee5b075c05595db9fa08f.tar.gz
gcc-0b6301aebeb907d1ebaee5b075c05595db9fa08f.tar.bz2
flow.c (split_block): Make sure bb_note is included in the new block when splitting before a label.
* flow.c (split_block): Make sure bb_note is included in the new block when splitting before a label. From-SVN: r44250
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/flow.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9898084..0b69aa3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-22 Richard Henderson <rth@redhat.com>
+
+ * flow.c (split_block): Make sure bb_note is included in the
+ new block when splitting before a label.
+
Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
* basic-block.h (redirect_edge_and_branch_force,
diff --git a/gcc/flow.c b/gcc/flow.c
index a6a63e5..370b92b 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -1561,6 +1561,11 @@ split_block (bb, insn)
bb_note = emit_note_after (NOTE_INSN_BASIC_BLOCK,
new_bb->head);
NOTE_BASIC_BLOCK (bb_note) = new_bb;
+
+ /* If the only thing in this new block was the label, make sure
+ the block note gets included. */
+ if (new_bb->head == new_bb->end)
+ new_bb->end = bb_note;
}
else
{