diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-07-05 05:27:22 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-07-05 05:27:22 +0000 |
commit | 6906ba4054094c46f39aca07d82a05db00bcc22f (patch) | |
tree | d50d814f99d556b8b58fa2fb6da18f5ac6b89824 /gcc/gengenrtl.c | |
parent | 3d7c150e3f05f0dc6e15c1517c4a652c3ecbcfd8 (diff) | |
download | gcc-6906ba4054094c46f39aca07d82a05db00bcc22f.zip gcc-6906ba4054094c46f39aca07d82a05db00bcc22f.tar.gz gcc-6906ba4054094c46f39aca07d82a05db00bcc22f.tar.bz2 |
genattr.c (internal_dfa_insn_code): Output prototype.
* genattr.c (internal_dfa_insn_code): Output prototype.
* genattrtab.c: Don't output unnecessary decls, output in ISO C.
* genautomata.c: Likewise.
* genconditions.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* gengenrtl.c: Likewise.
* gengtype.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r68959
Diffstat (limited to 'gcc/gengenrtl.c')
-rw-r--r-- | gcc/gengenrtl.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c index 46c3185..80ff784 100644 --- a/gcc/gengenrtl.c +++ b/gcc/gengenrtl.c @@ -259,15 +259,12 @@ gendef (const char *format) /* Start by writing the definition of the function name and the types of the arguments. */ - printf ("rtx\ngen_rtx_fmt_%s (code, mode", format); + printf ("rtx\ngen_rtx_fmt_%s (RTX_CODE code, enum machine_mode mode", format); for (p = format, i = 0; *p != 0; p++) if (*p != '0') - printf (", arg%d", i++); + printf (",\n\t%sarg%d", type_from_format (*p), i++); - puts (")\n RTX_CODE code;\n enum machine_mode mode;"); - for (p = format, i = 0; *p != 0; p++) - if (*p != '0') - printf (" %sarg%d;\n", type_from_format (*p), i++); + puts (")"); /* Now write out the body of the function itself, which allocates the memory and initializes it. */ |