From a2f541382982d674825d853512b77ecfbe329c28 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 11 Aug 1993 17:49:36 -0600 Subject: [PATCH] reorg.c (try_merge_delay_insns): Fix typo. * reorg.c (try_merge_delay_insns): Fix typo. (fill_simple_delay_slots): Only access the JUMP_LABEL field if the INSN needing delay slots is a JUMP_INSN. From-SVN: r5135 --- gcc/reorg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/reorg.c b/gcc/reorg.c index 5e96a1a..12fe836 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -1663,7 +1663,7 @@ try_merge_delay_insns (insn, thread) int i; int flags; - flags = get_jump_flags (insn, JUMP_LABEL (insn)); + flags = get_jump_flags (delay_insn, JUMP_LABEL (delay_insn)); CLEAR_RESOURCE (&needed); CLEAR_RESOURCE (&set); @@ -2654,7 +2654,10 @@ fill_simple_delay_slots (first, non_jumps_p) || (GET_CODE (insn) != JUMP_INSN && ! non_jumps_p)) continue; - flags = get_jump_flags (insn, JUMP_LABEL (insn)); + if (GET_CODE (insn) == JUMP_INSN) + flags = get_jump_flags (insn, JUMP_LABEL (insn)); + else + flags = get_jump_flags (insn, NULL_RTX); slots_to_fill = num_delay_slots (insn); if (slots_to_fill == 0) abort (); -- 2.7.4