From: David Malcolm Date: Mon, 25 Aug 2014 17:51:31 +0000 (+0000) Subject: config/iq2000: Use rtx_insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ae94a0bb787c902460c26ec8e6307939724641c;p=gcc.git config/iq2000: Use rtx_insn gcc/ * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen first param from rtx to rtx_insn *. (iq2000_adjust_insn_length): Likewise. (iq2000_output_conditional_branch): Likewise. * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param "insn" and local "nop_insn". (iq2000_annotate_frame_insn): Likewise for param "insn". (iq2000_expand_prologue): Likewise for both locals "insn". (iq2000_adjust_insn_length): Likewise for param "insn". (iq2000_output_conditional_branch): Likewise. From-SVN: r214446 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b3367ce90e..6b97628587b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2014-08-25 David Malcolm + + * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen + first param from rtx to rtx_insn *. + (iq2000_adjust_insn_length): Likewise. + (iq2000_output_conditional_branch): Likewise. + * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param + "insn" and local "nop_insn". + (iq2000_annotate_frame_insn): Likewise for param "insn". + (iq2000_expand_prologue): Likewise for both locals "insn". + (iq2000_adjust_insn_length): Likewise for param "insn". + (iq2000_output_conditional_branch): Likewise. + 2014-08-25 David Malcolm * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local diff --git a/gcc/config/iq2000/iq2000-protos.h b/gcc/config/iq2000/iq2000-protos.h index 6be8da9a49c..17adef6282a 100644 --- a/gcc/config/iq2000/iq2000-protos.h +++ b/gcc/config/iq2000/iq2000-protos.h @@ -25,15 +25,16 @@ extern int iq2000_reg_mode_ok_for_base_p (rtx, enum machine_mode, i extern const char * iq2000_fill_delay_slot (const char *, enum delay_type, rtx *, rtx); extern const char * iq2000_move_1word (rtx *, rtx, int); extern HOST_WIDE_INT iq2000_debugger_offset (rtx, HOST_WIDE_INT); -extern void final_prescan_insn (rtx, rtx *, int); +extern void final_prescan_insn (rtx_insn *, rtx *, int); extern HOST_WIDE_INT compute_frame_size (HOST_WIDE_INT); extern int iq2000_initial_elimination_offset (int, int); extern void iq2000_expand_prologue (void); extern void iq2000_expand_epilogue (void); extern void iq2000_expand_eh_return (rtx); extern int iq2000_can_use_return_insn (void); -extern int iq2000_adjust_insn_length (rtx, int); -extern char * iq2000_output_conditional_branch (rtx, rtx *, int, int, int, int); +extern int iq2000_adjust_insn_length (rtx_insn *, int); +extern char * iq2000_output_conditional_branch (rtx_insn *, rtx *, + int, int, int, int); #ifdef RTX_CODE extern rtx gen_int_relational (enum rtx_code, rtx, rtx, rtx, int *); diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c index 49896e8a198..b5c57182176 100644 --- a/gcc/config/iq2000/iq2000.c +++ b/gcc/config/iq2000/iq2000.c @@ -1507,7 +1507,7 @@ iq2000_debugger_offset (rtx addr, HOST_WIDE_INT offset) of load delays, and also to update the delay slot statistics. */ void -final_prescan_insn (rtx insn, rtx opvec[] ATTRIBUTE_UNUSED, +final_prescan_insn (rtx_insn *insn, rtx opvec[] ATTRIBUTE_UNUSED, int noperands ATTRIBUTE_UNUSED) { if (dslots_number_nops > 0) @@ -1541,7 +1541,7 @@ final_prescan_insn (rtx insn, rtx opvec[] ATTRIBUTE_UNUSED, || (GET_CODE (PATTERN (insn)) == RETURN)) && NEXT_INSN (PREV_INSN (insn)) == insn) { - rtx nop_insn = emit_insn_after (gen_nop (), insn); + rtx_insn *nop_insn = emit_insn_after (gen_nop (), insn); INSN_ADDRESSES_NEW (nop_insn, -1); } @@ -1773,7 +1773,7 @@ iq2000_add_large_offset_to_sp (HOST_WIDE_INT offset) operation DWARF_PATTERN. */ static void -iq2000_annotate_frame_insn (rtx insn, rtx dwarf_pattern) +iq2000_annotate_frame_insn (rtx_insn *insn, rtx dwarf_pattern) { RTX_FRAME_RELATED_P (insn) = 1; REG_NOTES (insn) = alloc_EXPR_LIST (REG_FRAME_RELATED_EXPR, @@ -2021,7 +2021,8 @@ iq2000_expand_prologue (void) if (tsize > 0) { rtx tsize_rtx = GEN_INT (tsize); - rtx adjustment_rtx, insn, dwarf_pattern; + rtx adjustment_rtx, dwarf_pattern; + rtx_insn *insn; if (tsize > 32767) { @@ -2044,7 +2045,7 @@ iq2000_expand_prologue (void) if (frame_pointer_needed) { - rtx insn = 0; + rtx_insn *insn = 0; insn = emit_insn (gen_movsi (hard_frame_pointer_rtx, stack_pointer_rtx)); @@ -2283,7 +2284,7 @@ iq2000_pass_by_reference (cumulative_args_t cum_v, enum machine_mode mode, attributes in the machine-description file. */ int -iq2000_adjust_insn_length (rtx insn, int length) +iq2000_adjust_insn_length (rtx_insn *insn, int length) { /* A unconditional jump has an unfilled delay slot if it is not part of a sequence. A conditional jump normally has a delay slot. */ @@ -2311,8 +2312,9 @@ iq2000_adjust_insn_length (rtx insn, int length) reversed conditional branch around a `jr' instruction. */ char * -iq2000_output_conditional_branch (rtx insn, rtx * operands, int two_operands_p, - int float_p, int inverted_p, int length) +iq2000_output_conditional_branch (rtx_insn *insn, rtx * operands, + int two_operands_p, int float_p, + int inverted_p, int length) { static char buffer[200]; /* The kind of comparison we are doing. */