diff options
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/genpeep.c | 3 | ||||
-rw-r--r-- | 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 <dmalcolm@redhat.com> + + * 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 <meissner@linux.vnet.ibm.com> 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 <rtx_insn *> (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); |