diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-22 19:51:23 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-22 19:51:23 +0000 |
commit | ee5f658525d66a1155727b1ffbfd7e485a23d972 (patch) | |
tree | b5b6507d23d368265188e14d4c629eea423dc4a3 /gcc/function.c | |
parent | dc6229e8136143d84807a878908949c97b617bf2 (diff) | |
download | gcc-ee5f658525d66a1155727b1ffbfd7e485a23d972.tar.gz |
predict.*: Use rtx_insn (also touches function.c and config/cris/cris.c)
gcc/
* predict.h (predict_insn_def): Strengthen param "insn" from rtx
to rtx_insn *.
* function.c (stack_protect_epilogue): Add checked cast to
rtx_insn for now when invoking predict_insn_def.
* predict.c (predict_insn): Strengthen param "insn" from rtx to
rtx_insn *.
(predict_insn_def): Likewise.
(rtl_predict_edge): Likewise for local "last_insn".
(can_predict_insn_p): Strengthen param "insn" from const_rtx to
const rtx_insn *.
(combine_predictions_for_insn): Strengthen param "insn" from rtx
to rtx_insn *.
(bb_estimate_probability_locally): Likewise for local "last_insn".
(expensive_function_p): Likewise for local "insn".
* config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
local "jmp", since this is used when invoking predict_insn_def.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214361 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c index 6a85b56f32f..4e43471045a 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4691,7 +4691,7 @@ stack_protect_epilogue (void) except adding the prediction by hand. */ tmp = get_last_insn (); if (JUMP_P (tmp)) - predict_insn_def (tmp, PRED_NORETURN, TAKEN); + predict_insn_def (as_a <rtx_insn *> (tmp), PRED_NORETURN, TAKEN); expand_call (targetm.stack_protect_fail (), NULL_RTX, /*ignore=*/true); free_temp_slots (); |