From ca009aee77619f9bb2798db1f732d5d18e5d9284 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 25 Aug 2014 18:29:41 +0000 Subject: [PATCH] config/nds32: Use rtx_insn gcc/ * config/nds32/nds32-protos.h (nds32_adjust_insn_length): Strengthen first param from rtx to rtx_insn *. * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for param "insn". From-SVN: r214451 --- gcc/ChangeLog | 7 +++++++ gcc/config/nds32/nds32-protos.h | 2 +- gcc/config/nds32/nds32.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b819d916804..a447b0f14c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-08-25 David Malcolm + + * config/nds32/nds32-protos.h (nds32_adjust_insn_length): + Strengthen first param from rtx to rtx_insn *. + * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for + param "insn". + 2014-08-25 David Malcolm * config/mips/mips-protos.h (mips_emit_move): Strengthen return diff --git a/gcc/config/nds32/nds32-protos.h b/gcc/config/nds32/nds32-protos.h index 307361bfc34..57884256955 100644 --- a/gcc/config/nds32/nds32-protos.h +++ b/gcc/config/nds32/nds32-protos.h @@ -92,7 +92,7 @@ extern int nds32_can_use_bitci_p (int); /* Auxiliary function for 'Computing the Length of an Insn'. */ -extern int nds32_adjust_insn_length (rtx, int); +extern int nds32_adjust_insn_length (rtx_insn *, int); /* Auxiliary functions for FP_AS_GP detection. */ diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index 2609a168e07..5ac44a8c874 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -3126,7 +3126,7 @@ nds32_ls_333_p (rtx rt, rtx ra, rtx imm, enum machine_mode mode) Modifies the length assigned to instruction INSN. LEN is the initially computed length of the insn. */ int -nds32_adjust_insn_length (rtx insn, int length) +nds32_adjust_insn_length (rtx_insn *insn, int length) { rtx src, dst; -- 2.30.2