aboutsummaryrefslogtreecommitdiff
path: root/gcc/gengenrtl.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-09-09 15:14:03 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-09-09 15:14:03 +0000
commitd6e1e8b8d1663dd2b25bc9e27ca099568848c641 (patch)
treee9fd85a935c135494fbf5adfc6fce9d4b291818a /gcc/gengenrtl.c
parent0cc97fc5522a17788b0d47550f37d592ffca56ff (diff)
downloadgcc-d6e1e8b8d1663dd2b25bc9e27ca099568848c641.zip
gcc-d6e1e8b8d1663dd2b25bc9e27ca099568848c641.tar.gz
gcc-d6e1e8b8d1663dd2b25bc9e27ca099568848c641.tar.bz2
Handcode gen_rtx_INSN
gcc/ChangeLog: 2014-09-09 David Malcolm <dmalcolm@redhat.com> * combine.c (try_combine): Eliminate checked cast on result of gen_rtx_INSN. * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior autogenerated one by strengthening the return type and params 2 and 3 from rtx to rtx_insn *, and by naming the params. * gengenrtl.c (special_rtx): Add INSN to those that are special-cased. * rtl.h (gen_rtx_INSN): New prototype. From-SVN: r215083
Diffstat (limited to 'gcc/gengenrtl.c')
-rw-r--r--gcc/gengenrtl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c
index 885dd20..d3eca98 100644
--- a/gcc/gengenrtl.c
+++ b/gcc/gengenrtl.c
@@ -125,6 +125,7 @@ special_rtx (int idx)
{
return (strcmp (defs[idx].enumname, "EXPR_LIST") == 0
|| strcmp (defs[idx].enumname, "INSN_LIST") == 0
+ || strcmp (defs[idx].enumname, "INSN") == 0
|| strcmp (defs[idx].enumname, "CONST_INT") == 0
|| strcmp (defs[idx].enumname, "REG") == 0
|| strcmp (defs[idx].enumname, "SUBREG") == 0