From 46f9b8286325de315c27246a30e43001ebf85042 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 29 Jun 1995 05:51:43 -0400 Subject: [PATCH] (output_cbranch): When checking for a jump to the given insn's delay slot... (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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index f2c7acc774e..53580d49a1e 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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"; -- 2.30.2