Commit 470d9044 by Jan Hubicka Committed by Jan Hubicka

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

From-SVN: r71153
parent 0b22120b
Sun Sep 7 00:22:22 CEST 2003 Jan Hubicka <jh@suse.cz> 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 * toplev.c (rest_of_decl_compilation): Do not finalize external
virables. virables.
......
...@@ -182,7 +182,13 @@ try_simplify_condjump (basic_block cbranch_block) ...@@ -182,7 +182,13 @@ try_simplify_condjump (basic_block cbranch_block)
next = NEXT_INSN (insn); next = NEXT_INSN (insn);
if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0) 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; end = insn;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment