diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-07 19:11:59 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-07 19:11:59 +0000 |
commit | f82b06e05de9a4f9fc2265c89df0829f647cd609 (patch) | |
tree | d225fa5aa22af2d34ad3be50332a336d045f1610 /gcc/genflags.c | |
parent | 1d881c0295f0f46eb3ce5d1c674b9bb52daccc34 (diff) | |
download | gcc-f82b06e05de9a4f9fc2265c89df0829f647cd609.tar.gz |
2003-07-07 Andreas Jaeger <aj@suse.de>
* 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 <aj@suse.de>
* 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
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r-- | gcc/genflags.c | 8 |
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}"); } |