From: Bernd Schmidt Date: Mon, 1 Jan 2001 18:42:49 +0000 (+0000) Subject: Set JUMP_LABEL properly in instrument_loop_bct. X-Git-Tag: prereleases/gcc-2.95.3-test1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8353b540e6bf07bc4de944da9c3772c619f86a9c;p=thirdparty%2Fgcc.git Set JUMP_LABEL properly in instrument_loop_bct. From-SVN: r38595 --- 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)++; }