From de5292c79fae4bd643a7ed72c0f4a263eceffa89 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 6 Apr 1992 08:01:13 -0400 Subject: [PATCH] *** empty log message *** From-SVN: r692 --- gcc/reorg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/reorg.c b/gcc/reorg.c index f518fb89880..c7bb797a9e1 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -3110,6 +3110,9 @@ relax_delay_slots (first) target_label = follow_jumps (target_label, 1); target_label = prev_label (next_active_insn (target_label)); + if (target_label == 0) + target_label = find_end_label (); + if (next_active_insn (target_label) == next) { delete_jump (insn); @@ -3117,8 +3120,7 @@ relax_delay_slots (first) } if (target_label != JUMP_LABEL (insn)) - redirect_jump (insn, - target_label ? target_label : find_end_label ()); + redirect_jump (insn, target_label); /* See if this jump branches around a unconditional jump. If so, invert this jump and point it to the target of the -- 2.30.2