From f82b06e05de9a4f9fc2265c89df0829f647cd609 Mon Sep 17 00:00:00 2001 From: aj Date: Mon, 7 Jul 2003 19:11:59 +0000 Subject: 2003-07-07 Andreas Jaeger * genextract.c: Convert remaining prototypes to ISO C90. * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90. * fold-const.c (fold_single_bit_test): Likewise. * diagnostic.c (default_diagnostic_finalizer): Likewise. * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise. * gengtype.c (write_array): Generate ISO C90 prototypes. * genflags.c (gen_proto): Generate ISO C90 prototypes. For cp: 2003-07-07 Andreas Jaeger * friend.c: Convert to ISO C90 prototypes. * Make-lang.in ($(srcdir)/cp/cfns.h): Use ANSI-C as output language. * cfns.h: Regenerate. * typeck.c: Convert remaining prototypes to ISO C90. * search.c: Likewise. * decl2.c (build_expr_from_tree): Convert prototype to ISO C90. * semantics.c (expand_or_defer_fn): Likewise * mangle.c (discriminator_for_string_literal): Likewise. * g++spec.c (lang_specific_driver): Likewise. * search.c (lookup_base_r): Remove unused variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69050 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/genflags.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gcc/genflags.c') 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}"); } -- cgit v1.2.1