* loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
From-SVN: r34237
This commit is contained in:
parent
97b0694adc
commit
f83ed23817
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2000-05-28 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
|
* loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
|
||||||
|
|
||||||
2000-05-28 Richard Henderson <rth@cygnus.com>
|
2000-05-28 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
* function.c (diddle_return_value): A pcc-style struct return
|
* function.c (diddle_return_value): A pcc-style struct return
|
||||||
|
|
11
gcc/loop.c
11
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
|
/* Insert new comparison on the count register instead of the
|
||||||
old one, generating the needed BCT pattern (that will be
|
old one, generating the needed BCT pattern (that will be
|
||||||
later recognized by assembly generation phase). */
|
later recognized by assembly generation phase). */
|
||||||
emit_jump_insn_before (gen_decrement_and_branch_on_count (counter_reg,
|
sequence = emit_jump_insn_before (
|
||||||
start_label),
|
gen_decrement_and_branch_on_count (counter_reg, start_label),
|
||||||
loop_end);
|
loop_end);
|
||||||
|
|
||||||
|
if (GET_CODE (sequence) != JUMP_INSN)
|
||||||
|
abort ();
|
||||||
|
JUMP_LABEL (sequence) = start_label;
|
||||||
LABEL_NUSES (start_label)++;
|
LABEL_NUSES (start_label)++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif /* HAVE_decrement_and_branch_on_count */
|
#endif /* HAVE_decrement_and_branch_on_count */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue