mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 23:40:02 +08:00
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
This commit is contained in:
parent
6b24c25948
commit
0b6301aebe
@ -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,
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user