From 8353b540e6bf07bc4de944da9c3772c619f86a9c Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Mon, 1 Jan 2001 18:42:49 +0000 Subject: [PATCH] Set JUMP_LABEL properly in instrument_loop_bct. From-SVN: r38595 --- gcc/ChangeLog | 2 ++ gcc/loop.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb54fbb77588..3d40878c4fa4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -2,6 +2,8 @@ * version.c: Bump. + * loop.c (instrument_loop_bct): Set JUMP_LABEL on new jump. + 2000-12-27 Geoffrey Keating * config/rs6000/rs6000.md (define_attr "length"): Correct calculation. diff --git a/gcc/loop.c b/gcc/loop.c index a85e6d33d477..d7242ed04eb2 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -9386,6 +9386,7 @@ instrument_loop_bct (loop_start, loop_end, loop_num_iterations) emit_jump_insn_before (gen_decrement_and_branch_on_count (counter_reg, start_label), loop_end); + JUMP_LABEL (prev_nonnote_insn (loop_end)) = start_label; LABEL_NUSES (start_label)++; } -- 2.47.2