diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-05 05:27:22 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-05 05:27:22 +0000 |
commit | 69dc4d0026bf97ffbd6d85776a892709cf944965 (patch) | |
tree | d50d814f99d556b8b58fa2fb6da18f5ac6b89824 /gcc/gengenrtl.c | |
parent | 5a64d8cf37253f8227d179a52a0c022a927db8b6 (diff) | |
download | gcc-69dc4d0026bf97ffbd6d85776a892709cf944965.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68959 138bc75d-0d04-0410-961f-82ee72b054a4
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 46c3185f792..80ff784ba54 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. */ |