]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix problem with previous change
authorBernd Schmidt <bernds@redhat.com>
Fri, 30 Mar 2001 09:50:52 +0000 (09:50 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 30 Mar 2001 09:50:52 +0000 (09:50 +0000)
From-SVN: r40963

gcc/ChangeLog
gcc/jump.c

index 98efc07a0175192605874cb7b7b83419a338e433..8639d907cfbe6f3adf9043e537bc776b4fff10cb 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-30  Bernd Schmidt  <bernds@redhat.com>
+
+       * jump.c (delete_barrier_successors): Fix error in last change.
+
 2001-03-28  Bernd Schmidt  <bernds@redhat.com>
 
        * flow.c (propagate_block): When trying to delete a case vector, cope
index 68f967382ed1e207f77018ead8831a6302a33d6b..6e7e90505c818cb681634b24fccd710cf7f99086 100644 (file)
@@ -2146,6 +2146,7 @@ delete_barrier_successors (f)
                  rtx next1 = next_nonnote_insn (insn);
                  rtx next2 = next1 ? next_nonnote_insn (next1) : 0;
                  if (next2 && GET_CODE (next1) == CODE_LABEL
+                     && GET_CODE (next2) == JUMP_INSN
                      && (GET_CODE (PATTERN (next2)) == ADDR_VEC
                          || GET_CODE (PATTERN (next2)) == ADDR_DIFF_VEC))
                    {