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
This commit is contained in:
David Malcolm 2014-08-22 16:50:40 +00:00 committed by David Malcolm
parent f1481c0f6f
commit ced9924c22
3 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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");

View File

@ -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);