diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-11-25 16:58:32 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-11-25 16:58:32 +0000 |
commit | 913d08334a78012ba496b669bc0077a98d6e9b3c (patch) | |
tree | 255cdd5d37dc128a7ad564ade1d1db3d7b9f9af2 /gcc/genemit.c | |
parent | 7a12ace5bc2c9be0cbcd4b13bcd89f2e79a16318 (diff) | |
download | gcc-913d08334a78012ba496b669bc0077a98d6e9b3c.zip gcc-913d08334a78012ba496b669bc0077a98d6e9b3c.tar.gz gcc-913d08334a78012ba496b669bc0077a98d6e9b3c.tar.bz2 |
c-common.c (check_format_info): Don't call a variadic function with a non-literal format string.
* c-common.c (check_format_info): Don't call a variadic function
with a non-literal format string.
* c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
* c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
Likewise.
* cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
Likewise.
* collect2.c (collect_wait): Likewise.
* dbxout.c (dbxout_type): Likewise.
* gcc.c (do_spec_1): Likewise.
* genemit.c (gen_insn, gen_expand): Likewise.
* genrecog.c (write_switch, write_subroutine): Likewise.
* mips-tfile.c (catch_signal, botch): Likewise.
* print-rtl.c (print_rtx): Likewise.
* toplev.c (default_print_error_function, report_error_function,
_fatal_insn): Likewise.
From-SVN: r30666
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r-- | gcc/genemit.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c index 0bec209..1f8c6b6 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -377,7 +377,10 @@ gen_insn (insn) /* Output the function name and argument declarations. */ printf ("rtx\ngen_%s (", XSTR (insn, 0)); for (i = 0; i < operands; i++) - printf (i ? ", operand%d" : "operand%d", i); + if (i) + printf (", operand%d", i); + else + printf ("operand%d", i); printf (")\n"); for (i = 0; i < operands; i++) printf (" rtx operand%d;\n", i); @@ -428,7 +431,10 @@ gen_expand (expand) /* Output the function name and argument declarations. */ printf ("rtx\ngen_%s (", XSTR (expand, 0)); for (i = 0; i < operands; i++) - printf (i ? ", operand%d" : "operand%d", i); + if (i) + printf (", operand%d", i); + else + printf ("operand%d", i); printf (")\n"); for (i = 0; i < operands; i++) printf (" rtx operand%d;\n", i); |