diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-04-01 22:44:48 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-04-01 15:44:48 -0700 |
commit | 729da3f5a8f4cc906c185e4cbc9bdbac657a1cca (patch) | |
tree | df94a82019f622d41b626b75e30ea5a5721555d7 /gcc/genoutput.c | |
parent | 2a8034f8164d3953e4a25fa577d465b6057bdd66 (diff) | |
download | gcc-729da3f5a8f4cc906c185e4cbc9bdbac657a1cca.zip gcc-729da3f5a8f4cc906c185e4cbc9bdbac657a1cca.tar.gz gcc-729da3f5a8f4cc906c185e4cbc9bdbac657a1cca.tar.bz2 |
genattrtab.c: Make generated file use system.h, instead of including stdio.h, etc directly.
* genattrtab.c: Make generated file use system.h, instead of
including stdio.h, etc directly.
* genextract.c, genopinit.c, genoutput.c: Likewise.
* genpeep.c, genrecog.c: Likewise
* genoutput.c (process_template): Mark operands in the generated
function as potentially unused if compiling with GNU CC.
From-SVN: r18941
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index a2d7c71..6af827d 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -177,7 +177,7 @@ output_prologue () from the machine description file `md'. */\n\n"); printf ("#include \"config.h\"\n"); - printf ("#include <stdio.h>\n"); + printf ("#include \"system.h\"\n"); printf ("#include \"flags.h\"\n"); printf ("#include \"rtl.h\"\n"); printf ("#include \"regs.h\"\n"); @@ -562,8 +562,13 @@ process_template (d, template) printf ("\nstatic char *\n"); printf ("output_%d (operands, insn)\n", d->code_number); + printf ("#ifdef __GNUC__\n"); + printf (" rtx *operands __attribute__ ((unused));\n"); + printf (" rtx insn __attribute__ ((unused));\n"); + printf ("#else\n"); printf (" rtx *operands;\n"); printf (" rtx insn;\n"); + printf ("#endif\n"); printf ("{\n"); /* If the assembler code template starts with a @ it is a newline-separated |