diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-22 16:50:40 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-22 16:50:40 +0000 |
commit | ced9924c22e4fbf72637d30927e9b2fa61488dbe (patch) | |
tree | 114a414251d5d0923dff5f3df10c6b3cdfe2baf4 /gcc/genpeep.c | |
parent | f1481c0f6f21f8abe33001fbafaeb54374b66e32 (diff) | |
download | gcc-ced9924c22e4fbf72637d30927e9b2fa61488dbe.zip gcc-ced9924c22e4fbf72637d30927e9b2fa61488dbe.tar.gz gcc-ced9924c22e4fbf72637d30927e9b2fa61488dbe.tar.bz2 |
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
Diffstat (limited to 'gcc/genpeep.c')
-rw-r--r-- | gcc/genpeep.c | 3 |
1 files changed, 1 insertions, 2 deletions
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"); |