* cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
authorJan Hubicka <jh@suse.cz>
Sun, 7 Sep 2003 16:23:41 +0000 (18:23 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 7 Sep 2003 16:23:41 +0000 (16:23 +0000)
From-SVN: r71172

gcc/ChangeLog
gcc/cfgcleanup.c

index d545cd847409e002c03f4245585a07b679d4ca68..979692312e2aca1d3e370e1059e66fb2b4b77596 100644 (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
index 9bf2b684f2d644f60d5211f1606384f03bf9727b..bfc59ba22a5afa4b807cf1424061f697077beff7 100644 (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);