* cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.

From-SVN: r71172
This commit is contained in:
Jan Hubicka 2003-09-07 18:23:41 +02:00 committed by Jan Hubicka
parent 43f9ce0256
commit 1ab237dfa3
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Sun Sep 7 14:50:03 CEST 2003 Jan Hubicka <jh@suse.cz>
* cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
* diagnostic.c (warn_deprecated_use): Move to toplev.c

View File

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