diff options
author | David Malcolm <dmalcolm@redhat.com> | 2018-06-18 19:59:13 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2018-06-18 19:59:13 +0000 |
commit | df0b55f090b8591746d350a474d5f2291a9202be (patch) | |
tree | 0a714cfc52fe9bad9e338c70d9b72c2c29f67824 /gcc/final.c | |
parent | 6a8886e45f7eb6684f4e27b9d823ea3d02df787c (diff) | |
download | gcc-df0b55f090b8591746d350a474d5f2291a9202be.zip gcc-df0b55f090b8591746d350a474d5f2291a9202be.tar.gz gcc-df0b55f090b8591746d350a474d5f2291a9202be.tar.bz2 |
More rtx to rtx_insn * cleanups
gcc/ChangeLog:
* config/frv/frv-protos.h (frv_ifcvt_modify_insn): Strengthen 3rd
param from rtx to rtx_insn *.
* config/frv/frv.c (frv_ifcvt_add_insn): Likewise for "insn"
param.
(frv_ifcvt_modify_insn): Likwise.
(frv_ifcvt_modify_final): Likwise for local "existing_insn",
adding an as_a <rtx_insn *> cast. Likewise for local "insn".
* config/mips/mips.c (r10k_insert_cache_barriers): Add an
as_a <rtx_insn *> cast to local "unprotected_region" once
it's been established that it's not NULL or pc_rtx.
* config/nds32/nds32-relax-opt.c (nds32_group_insns): Strengthen
param "sethi" from rtx to rtx_insn *.
(nds32_group_float_insns): Likewise for param "insn".
* config/vax/vax-protos.h (vax_output_int_add): Likewise for 1st
param.
(vax_output_int_subtract): Likewise.
* config/vax/vax.c (vax_output_int_add): Likewise for param
"insn".
(vax_output_int_subtract): Likewise.
* emit-rtl.c (set_insn_deleted): Likewise, removing cast.
(emit_pattern_after): Likewise for param "after".
(emit_insn_after): Likewise.
(emit_jump_insn_after): Likewise.
(emit_call_insn_after): Likewise.
(emit_debug_insn_after): Likewise.
(emit_pattern_before): Likewise for param "before".
(emit_insn_before): Likewise.
(emit_jump_insn_before): Likewise.
* final.c (get_insn_template): Likewise for param "insn", removing
a cast.
* output.h (get_insn_template): Likewise for 2nd param.
* rtl.h (emit_insn_before): Likewise.
(emit_jump_insn_before): Likewise.
(emit_debug_insn_before_noloc): Likewise.
(emit_insn_after): Likewise.
(emit_jump_insn_after): Likewise.
(emit_call_insn_after): Likewise.
(emit_debug_insn_after): Likewise.
(set_insn_deleted): Likewise for param.
From-SVN: r261715
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/final.c b/gcc/final.c index 4c600f0..a17a3a6 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2128,7 +2128,7 @@ final (rtx_insn *first, FILE *file, int optimize_p) } const char * -get_insn_template (int code, rtx insn) +get_insn_template (int code, rtx_insn *insn) { switch (insn_data[code].output_format) { @@ -2138,8 +2138,7 @@ get_insn_template (int code, rtx insn) return insn_data[code].output.multi[which_alternative]; case INSN_OUTPUT_FORMAT_FUNCTION: gcc_assert (insn); - return (*insn_data[code].output.function) (recog_data.operand, - as_a <rtx_insn *> (insn)); + return (*insn_data[code].output.function) (recog_data.operand, insn); default: gcc_unreachable (); |