X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fgengenrtl.c;h=80ff784ba540d8f57e2fd64051e37d5b8668ffc7;hp=9dbb7342f0835c89b75e3d513faac996b3e8afc5;hb=3bdec96a2fb0b7f20277ab0fb361c2acd1a57731;hpb=1a97be37b9acd218052a467f7b1a26d3be1154f9 diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c index 9dbb7342f08..80ff784ba54 100644 --- a/gcc/gengenrtl.c +++ b/gcc/gengenrtl.c @@ -36,7 +36,7 @@ struct rtx_definition const char *const enumname, *const name, *const format; }; -#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { STRINGX(ENUM), NAME, FORMAT }, +#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { #ENUM, NAME, FORMAT }, static const struct rtx_definition defs[] = { @@ -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. */