summaryrefslogtreecommitdiff
path: root/gcc/config/iq2000/iq2000.c
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-25 17:51:31 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-25 17:51:31 +0000
commit5b96f6be888634dbf9167641d86a88326c82f2d8 (patch)
treecb1e9f870038aa8eddccdcfdf5d7cb09a1d0cd97 /gcc/config/iq2000/iq2000.c
parent032e0612bffac7ecffff2cf24ec8f557cea71720 (diff)
downloadgcc-5b96f6be888634dbf9167641d86a88326c82f2d8.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214446 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/iq2000/iq2000.c')
-rw-r--r--gcc/config/iq2000/iq2000.c18
1 files changed, 10 insertions, 8 deletions
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. */