summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cfgcleanup.c4
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 <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
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);