]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(redirect_with_delay_list_safe_p): Fix off-by-one error.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 24 Apr 1994 15:30:17 +0000 (11:30 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 24 Apr 1994 15:30:17 +0000 (11:30 -0400)
From-SVN: r7145

gcc/reorg.c

index 3f6a992e67231c83a34827848f29717146f14b72..b44bcfcde72ac99cad66363f718607001604508f 100644 (file)
@@ -1516,14 +1516,14 @@ redirect_with_delay_list_safe_p (jump, newlabel, delay_list)
 #ifdef ANNUL_IFFALSE_SLOTS
           (INSN_ANNULLED_BRANCH_P (jump)
            && INSN_FROM_TARGET_P (XEXP (li, 0)))
-          ? eligible_for_annul_false (jump, i - 1, XEXP (li, 0), flags) :
+          ? eligible_for_annul_false (jump, i, XEXP (li, 0), flags) :
 #endif
 #ifdef ANNUL_IFTRUE_SLOTS
           (INSN_ANNULLED_BRANCH_P (jump)
            && ! INSN_FROM_TARGET_P (XEXP (li, 0)))
-          ? eligible_for_annul_true (jump, i - 1, XEXP (li, 0), flags) :
+          ? eligible_for_annul_true (jump, i, XEXP (li, 0), flags) :
 #endif
-          eligible_for_delay (jump, i - 1, XEXP (li, 0), flags)))
+          eligible_for_delay (jump, i, XEXP (li, 0), flags)))
       break;
 
   return (li == NULL);