diff options
author | Richard Henderson <rth@redhat.com> | 2001-07-22 15:49:00 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-07-22 15:49:00 -0700 |
commit | 0b6301aebeb907d1ebaee5b075c05595db9fa08f (patch) | |
tree | e6084682d9a611776003959fa5d19dbb30bcb583 /gcc/flow.c | |
parent | 6b24c25948265c30431460146bc6f43ee9a34c23 (diff) | |
download | gcc-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
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 { |