From: David Malcolm Date: Fri, 22 Aug 2014 16:50:40 +0000 (+0000) Subject: genpeep.c: peephole requires an rtx_insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ced9924c22e4fbf72637d30927e9b2fa61488dbe;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e5555320057..0fac9c44a3c 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 bc2785e6e7d..440f44408ed 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 e4799cfa6a1..0b637372b56 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);