* cfgcleanup.c (try_simplify_condjump): Fix my previous patch.

From-SVN: r71153
This commit is contained in:
Jan Hubicka 2003-09-07 02:51:53 +02:00 committed by Jan Hubicka
parent 0b22120b62
commit 470d9044da
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Sun Sep 7 00:22:22 CEST 2003 Jan Hubicka <jh@suse.cz>
* cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
* toplev.c (rest_of_decl_compilation): Do not finalize external
virables.

View File

@ -182,7 +182,13 @@ try_simplify_condjump (basic_block cbranch_block)
next = NEXT_INSN (insn);
if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0)
{
reorder_insns (insn, insn, end);
if (insn == end)
{
jump_block->end = PREV_INSN (insn);
if (jump_block->end == end)
break;
}
reorder_insns_nobb (insn, insn, end);
end = insn;
}
}