summaryrefslogtreecommitdiff
path: root/gcc/genflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r--gcc/genflags.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c
index 1eb3a730823..268da76ee67 100644
--- a/gcc/genflags.c
+++ b/gcc/genflags.c
@@ -179,13 +179,11 @@ gen_proto (rtx insn)
{
putchar ('(');
for (i = 0; i < num-1; i++)
- printf ("%c, ", 'a' + i);
- printf ("%c)\n", 'a' + i);
- for (i = 0; i < num; i++)
- printf (" rtx %c ATTRIBUTE_UNUSED;\n", 'a' + i);
+ printf ("rtx %c ATTRIBUTE_UNUSED, ", 'a' + i);
+ printf ("rtx %c ATTRIBUTE_UNUSED)\n", 'a' + i);
}
else
- puts ("()");
+ puts ("(void)");
puts ("{\n return 0;\n}");
}