From 1ab237dfa3b2afa84b952ac457eb01df96638757 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 7 Sep 2003 18:23:41 +0200 Subject: [PATCH] * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch. From-SVN: r71172 --- gcc/ChangeLog | 4 ++++ gcc/cfgcleanup.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d545cd84740..979692312e2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 7 14:50:03 CEST 2003 Jan Hubicka + + * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch. + 2003-09-07 Gabriel Dos Reis * diagnostic.c (warn_deprecated_use): Move to toplev.c diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 9bf2b684f2d..bfc59ba22a5 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -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);