From: David Malcolm Date: Mon, 25 Aug 2014 18:35:56 +0000 (+0000) Subject: config/pa: Use rtx_insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=432d483ae99e03aabe4a2ffd495aef43c2f9277f;p=gcc.git config/pa: Use rtx_insn gcc/ * config/pa/pa-protos.h (pa_output_call): Strengthen first param from rtx to rtx_insn *. (pa_output_indirect_call): Likewise. (pa_adjust_insn_length): Likewise. (pa_attr_length_millicode_call): Likewise. (pa_attr_length_call): Likewise. (pa_attr_length_indirect_call): Likewise. * config/pa/pa.c (pa_adjust_insn_length): Likewise for param "insn". (pa_attr_length_millicode_call): Likewise. (pa_attr_length_call): Likewise. (pa_output_call): Likewise. (pa_attr_length_indirect_call): Likewise. (pa_output_indirect_call): Likewise. From-SVN: r214452 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a447b0f14c9..e6cef7f6f12 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,21 @@ +2014-08-25 David Malcolm + + * config/pa/pa-protos.h (pa_output_call): Strengthen first param + from rtx to rtx_insn *. + (pa_output_indirect_call): Likewise. + (pa_adjust_insn_length): Likewise. + (pa_attr_length_millicode_call): Likewise. + (pa_attr_length_call): Likewise. + (pa_attr_length_indirect_call): Likewise. + + * config/pa/pa.c (pa_adjust_insn_length): Likewise for param + "insn". + (pa_attr_length_millicode_call): Likewise. + (pa_attr_length_call): Likewise. + (pa_output_call): Likewise. + (pa_attr_length_indirect_call): Likewise. + (pa_output_indirect_call): Likewise. + 2014-08-25 David Malcolm * config/nds32/nds32-protos.h (nds32_adjust_insn_length): diff --git a/gcc/config/pa/pa-protos.h b/gcc/config/pa/pa-protos.h index 45031e28df6..60617240a3e 100644 --- a/gcc/config/pa/pa-protos.h +++ b/gcc/config/pa/pa-protos.h @@ -42,8 +42,8 @@ extern const char *pa_output_dbra (rtx *, rtx, int); extern const char *pa_output_movb (rtx *, rtx, int, int); extern const char *pa_output_parallel_movb (rtx *, rtx); extern const char *pa_output_parallel_addb (rtx *, rtx); -extern const char *pa_output_call (rtx, rtx, int); -extern const char *pa_output_indirect_call (rtx, rtx); +extern const char *pa_output_call (rtx_insn *, rtx, int); +extern const char *pa_output_indirect_call (rtx_insn *, rtx); extern const char *pa_output_millicode_call (rtx, rtx); extern const char *pa_output_mul_insn (int, rtx); extern const char *pa_output_div_insn (rtx *, int, rtx); @@ -56,7 +56,7 @@ extern void pa_output_global_address (FILE *, rtx, int); extern void pa_print_operand (FILE *, rtx, int); extern void pa_encode_label (rtx); extern int pa_symbolic_expression_p (rtx); -extern int pa_adjust_insn_length (rtx, int); +extern int pa_adjust_insn_length (rtx_insn *, int); extern int pa_fmpyaddoperands (rtx *); extern int pa_fmpysuboperands (rtx *); extern void pa_emit_bcond_fp (rtx[]); @@ -65,9 +65,9 @@ extern int pa_emit_hpdiv_const (rtx *, int); extern int pa_is_function_label_plus_const (rtx); extern int pa_jump_in_call_delay (rtx); extern int pa_fpstore_bypass_p (rtx, rtx); -extern int pa_attr_length_millicode_call (rtx); -extern int pa_attr_length_call (rtx, int); -extern int pa_attr_length_indirect_call (rtx); +extern int pa_attr_length_millicode_call (rtx_insn *); +extern int pa_attr_length_call (rtx_insn *, int); +extern int pa_attr_length_indirect_call (rtx_insn *); extern rtx pa_legitimize_reload_address (rtx, enum machine_mode, int, int, int); diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index ad0cca34f71..81494414af3 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -4893,7 +4893,7 @@ pa_issue_rate (void) Also compute the length of an inline block move here as it is too complicated to express as a length attribute in pa.md. */ int -pa_adjust_insn_length (rtx insn, int length) +pa_adjust_insn_length (rtx_insn *insn, int length) { rtx pat = PATTERN (insn); @@ -4901,7 +4901,7 @@ pa_adjust_insn_length (rtx insn, int length) if ((unsigned int) length >= INT_MAX) { if (GET_CODE (pat) == SEQUENCE) - insn = XVECEXP (pat, 0, 0); + insn = as_a (XVECEXP (pat, 0, 0)); switch (get_attr_type (insn)) { @@ -7494,7 +7494,7 @@ length_fp_args (rtx insn) over estimate the length than to under estimate it. */ int -pa_attr_length_millicode_call (rtx insn) +pa_attr_length_millicode_call (rtx_insn *insn) { unsigned long distance = -1; unsigned long total = IN_NAMED_SECTION_P (cfun->decl) ? 0 : total_code_bytes; @@ -7690,7 +7690,7 @@ pa_output_millicode_call (rtx insn, rtx call_dest) these sequences. */ int -pa_attr_length_call (rtx insn, int sibcall) +pa_attr_length_call (rtx_insn *insn, int sibcall) { int local_call; rtx call, call_dest; @@ -7780,7 +7780,7 @@ pa_attr_length_call (rtx insn, int sibcall) CALL_DEST is the routine we are calling. */ const char * -pa_output_call (rtx insn, rtx call_dest, int sibcall) +pa_output_call (rtx_insn *insn, rtx call_dest, int sibcall) { int delay_insn_deleted = 0; int delay_slot_filled = 0; @@ -8069,7 +8069,7 @@ pa_output_call (rtx insn, rtx call_dest, int sibcall) the sequence itself. */ int -pa_attr_length_indirect_call (rtx insn) +pa_attr_length_indirect_call (rtx_insn *insn) { unsigned long distance = -1; unsigned long total = IN_NAMED_SECTION_P (cfun->decl) ? 0 : total_code_bytes; @@ -8102,7 +8102,7 @@ pa_attr_length_indirect_call (rtx insn) } const char * -pa_output_indirect_call (rtx insn, rtx call_dest) +pa_output_indirect_call (rtx_insn *insn, rtx call_dest) { rtx xoperands[1];