From ced9924c22e4fbf72637d30927e9b2fa61488dbe Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 22 Aug 2014 16:50:40 +0000 Subject: [PATCH] genpeep.c: peephole requires an rtx_insn gcc/ * genpeep.c (main): Rename param back from "uncast_ins1" to "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant checked cast. * output.h (peephole): Strengthen param from rtx to rtx_insn *. From-SVN: r214330 --- gcc/ChangeLog | 8 ++++++++ gcc/genpeep.c | 3 +-- gcc/output.h | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e555532..0fac9c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-08-22 David Malcolm + + * genpeep.c (main): Rename param back from "uncast_ins1" to + "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant + checked cast. + + * output.h (peephole): Strengthen param from rtx to rtx_insn *. + 2014-08-22 Michael Meissner PR target/62195 diff --git a/gcc/genpeep.c b/gcc/genpeep.c index bc2785e..440f444 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -378,8 +378,7 @@ from the machine description file `md'. */\n\n"); printf ("extern rtx peep_operand[];\n\n"); printf ("#define operands peep_operand\n\n"); - printf ("rtx_insn *\npeephole (rtx uncast_ins1)\n{\n"); - printf (" rtx_insn *ins1 = as_a (uncast_ins1);\n"); + printf ("rtx_insn *\npeephole (rtx_insn *ins1)\n{\n"); printf (" rtx_insn *insn ATTRIBUTE_UNUSED;\n"); printf (" rtx x ATTRIBUTE_UNUSED, pat ATTRIBUTE_UNUSED;\n\n"); diff --git a/gcc/output.h b/gcc/output.h index e4799cf..0b63737 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -281,7 +281,7 @@ extern void assemble_addr_to_section (rtx, section *); extern int get_pool_size (void); #ifdef HAVE_peephole -extern rtx_insn *peephole (rtx); +extern rtx_insn *peephole (rtx_insn *); #endif extern void output_shared_constant_pool (void); -- 2.7.4