aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2016-11-21 06:15:08 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2016-11-21 06:15:08 +0000
commit800dcd865a5bdae76e6e95f2d4c24791c36907f7 (patch)
tree509ef6320640f978b338781791b3dbfd30eb42af /gcc/expr.c
parentf370536c9c6a1eca30fe9685b9cbcb8dca681e36 (diff)
downloadgcc-800dcd865a5bdae76e6e95f2d4c24791c36907f7.zip
gcc-800dcd865a5bdae76e6e95f2d4c24791c36907f7.tar.gz
gcc-800dcd865a5bdae76e6e95f2d4c24791c36907f7.tar.bz2
make recog () take a rtx_insn *
gcc/ChangeLog: 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * config/v850/v850.c (expand_prologue): Adjust. (expand_epilogue): Likewise. * expr.c (init_expr_target): Likewise. * genrecog.c (print_subroutine): Always make the argument type rtx_insn *. * recog.h: Adjust prototype. From-SVN: r242651
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index a51c164..fe752fb 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -109,7 +109,7 @@ static HOST_WIDE_INT int_expr_size (tree);
void
init_expr_target (void)
{
- rtx insn, pat;
+ rtx pat;
machine_mode mode;
int num_clobbers;
rtx mem, mem1;
@@ -125,7 +125,7 @@ init_expr_target (void)
useless RTL allocations. */
reg = gen_rtx_REG (word_mode, LAST_VIRTUAL_REGISTER + 1);
- insn = rtx_alloc (INSN);
+ rtx_insn *insn = as_a<rtx_insn *> (rtx_alloc (INSN));
pat = gen_rtx_SET (NULL_RTX, NULL_RTX);
PATTERN (insn) = pat;