aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 90abf7e..0e9d56c 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 */