(output_cbranch): When checking for a jump to the given insn's delay slot...
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 29 Jun 1995 09:51:43 +0000 (05:51 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 29 Jun 1995 09:51:43 +0000 (05:51 -0400)
(output_cbranch): When checking for a jump to the given insn's delay
slot, handle the case where JUMP_LABEL for the given insn does not
point to the first label in a series of labels.
(output_bb, output_dbra, output_movb): Likewise.

From-SVN: r10090

gcc/config/pa/pa.c

index f2c7acc774edf2049fa4522e7261d465576ef03a..53580d49a1e11894e116cb2e488da7d5fa20a8f3 100644 (file)
@@ -3615,7 +3615,7 @@ output_cbranch (operands, nullify, length, negated, insn)
 
      In such cases it is safe to emit nothing.  */
 
-  if (JUMP_LABEL (insn) == next_nonnote_insn (insn))
+  if (next_active_insn (JUMP_LABEL (insn)) == next_active_insn (insn))
     return "";
 
   /* If this is a long branch with its delay slot unfilled, set `nullify'
@@ -3731,7 +3731,7 @@ output_bb (operands, nullify, length, negated, insn, which)
      is only used when optimizing; jump optimization should eliminate the
      jump.  But be prepared just in case.  */
 
-  if (JUMP_LABEL (insn) == next_nonnote_insn (insn))
+  if (next_active_insn (JUMP_LABEL (insn)) == next_active_insn (insn))
     return "";
 
   /* If this is a long branch with its delay slot unfilled, set `nullify'
@@ -3862,7 +3862,7 @@ output_dbra (operands, insn, which_alternative)
   /* A conditional branch to the following instruction (eg the delay slot) is
      asking for a disaster.  Be prepared!  */
 
-  if (JUMP_LABEL (insn) == next_nonnote_insn (insn))
+  if (next_active_insn (JUMP_LABEL (insn)) == next_active_insn (insn))
     {
       if (which_alternative == 0)
        return "ldo %1(%0),%0";
@@ -3968,7 +3968,7 @@ output_movb (operands, insn, which_alternative, reverse_comparison)
   /* A conditional branch to the following instruction (eg the delay slot) is
      asking for a disaster.  Be prepared!  */
 
-  if (JUMP_LABEL (insn) == next_nonnote_insn (insn))
+  if (next_active_insn (JUMP_LABEL (insn)) == next_active_insn (insn))
     {
       if (which_alternative == 0)
        return "copy %1,%0";