summaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2016-11-21 06:15:08 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2016-11-21 06:15:08 +0000
commit800dcd865a5bdae76e6e95f2d4c24791c36907f7 (patch)
tree509ef6320640f978b338781791b3dbfd30eb42af /gcc/genrecog.c
parentf370536c9c6a1eca30fe9685b9cbcb8dca681e36 (diff)
make recog () take a rtx_insn *
gcc/ChangeLog: 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * config/v850/v850.c (expand_prologue): Adjust. (expand_epilogue): Likewise. * expr.c (init_expr_target): Likewise. * genrecog.c (print_subroutine): Always make the argument type rtx_insn *. * recog.h: Adjust prototype. From-SVN: r242651
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index a8e8c22340c..e4377c3afa4 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -5099,11 +5099,6 @@ print_pattern (output_state *os, pattern_routine *routine)
static void
print_subroutine (output_state *os, state *s, int proc_id)
{
- /* For now, the top-level "recog" takes a plain "rtx", and performs a
- checked cast to "rtx_insn *" for use throughout the rest of the
- function and the code it calls. */
- const char *insn_param
- = proc_id > 0 ? "rtx_insn *insn" : "rtx uncast_insn";
printf ("\n");
switch (os->type)
{
@@ -5116,8 +5111,8 @@ print_subroutine (output_state *os, state *s, int proc_id)
else
printf ("int\nrecog");
printf (" (rtx x1 ATTRIBUTE_UNUSED,\n"
- "\t%s ATTRIBUTE_UNUSED,\n"
- "\tint *pnum_clobbers ATTRIBUTE_UNUSED)\n", insn_param);
+ "\trtx_insn *insn ATTRIBUTE_UNUSED,\n"
+ "\tint *pnum_clobbers ATTRIBUTE_UNUSED)\n");
break;
case SPLIT:
@@ -5142,11 +5137,6 @@ print_subroutine (output_state *os, state *s, int proc_id)
if (proc_id == 0)
{
printf (" recog_data.insn = NULL;\n");
- if (os->type == RECOG)
- {
- printf (" rtx_insn *insn ATTRIBUTE_UNUSED;\n");
- printf (" insn = safe_as_a <rtx_insn *> (uncast_insn);\n");
- }
}
print_state (os, s, 2, true);
printf ("}\n");