diff options
author | Richard Henderson <rth@cygnus.com> | 2000-05-28 13:01:28 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-05-28 13:01:28 -0700 |
commit | f83ed23817917f05d042d01c005c8ac3aee40080 (patch) | |
tree | 425d279b395cbe9575b5f833c8c0b6a0e2d754a3 /gcc/loop.c | |
parent | 97b0694adc345956610d17437f5ff5f8d17b46fb (diff) | |
download | gcc-f83ed23817917f05d042d01c005c8ac3aee40080.zip gcc-f83ed23817917f05d042d01c005c8ac3aee40080.tar.gz gcc-f83ed23817917f05d042d01c005c8ac3aee40080.tar.bz2 |
* loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
From-SVN: r34237
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 */ |