From f83ed23817917f05d042d01c005c8ac3aee40080 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 28 May 2000 13:01:28 -0700 Subject: [PATCH] * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn. From-SVN: r34237 --- gcc/ChangeLog | 4 ++++ gcc/loop.c | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 01ef6afac32..c4e17973b08 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-05-28 Richard Henderson + + * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn. + 2000-05-28 Richard Henderson * function.c (diddle_return_value): A pcc-style struct return diff --git a/gcc/loop.c b/gcc/loop.c index 90abf7e8434..0e9d56c3822 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -9503,12 +9503,15 @@ instrument_loop_bct (loop_start, loop_end, loop_num_iterations) /* Insert new comparison on the count register instead of the old one, generating the needed BCT pattern (that will be later recognized by assembly generation phase). */ - emit_jump_insn_before (gen_decrement_and_branch_on_count (counter_reg, - start_label), - loop_end); + sequence = emit_jump_insn_before ( + gen_decrement_and_branch_on_count (counter_reg, start_label), + loop_end); + + if (GET_CODE (sequence) != JUMP_INSN) + abort (); + JUMP_LABEL (sequence) = start_label; LABEL_NUSES (start_label)++; } - } #endif /* HAVE_decrement_and_branch_on_count */ -- 2.30.2