Commit 729da3f5 by Jeffrey A Law Committed by Jeff Law

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
parent 2a8034f8
Wed Apr 1 22:26:22 1998 Jeffrey A Law (law@cygnus.com) Wed Apr 1 22:26:22 1998 Jeffrey A Law (law@cygnus.com)
* 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.
* i386/freebsd-elf.h (CPP_PREDEFINES): Update from FreeBSD folks. * i386/freebsd-elf.h (CPP_PREDEFINES): Update from FreeBSD folks.
* pa.md (reload peepholes): Remove unused variable "mode". * pa.md (reload peepholes): Remove unused variable "mode".
......
...@@ -5953,7 +5953,7 @@ from the machine description file `md'. */\n\n"); ...@@ -5953,7 +5953,7 @@ from the machine description file `md'. */\n\n");
expand_units (); expand_units ();
printf ("#include \"config.h\"\n"); printf ("#include \"config.h\"\n");
printf ("#include <stdio.h>\n"); printf ("#include \"system.h\"\n");
printf ("#include \"rtl.h\"\n"); printf ("#include \"rtl.h\"\n");
printf ("#include \"insn-config.h\"\n"); printf ("#include \"insn-config.h\"\n");
printf ("#include \"recog.h\"\n"); printf ("#include \"recog.h\"\n");
......
...@@ -737,7 +737,7 @@ main (argc, argv) ...@@ -737,7 +737,7 @@ main (argc, argv)
from the machine description file `md'. */\n\n"); from the machine description file `md'. */\n\n");
printf ("#include \"config.h\"\n"); printf ("#include \"config.h\"\n");
printf ("#include <stdio.h>\n"); printf ("#include \"system.h\"\n");
printf ("#include \"rtl.h\"\n"); printf ("#include \"rtl.h\"\n");
printf ("#include \"expr.h\"\n"); printf ("#include \"expr.h\"\n");
printf ("#include \"real.h\"\n"); printf ("#include \"real.h\"\n");
......
...@@ -437,7 +437,7 @@ main (argc, argv) ...@@ -437,7 +437,7 @@ main (argc, argv)
from the machine description file `md'. */\n\n"); from the machine description file `md'. */\n\n");
printf ("#include \"config.h\"\n"); printf ("#include \"config.h\"\n");
printf ("#include <stdio.h>\n"); printf ("#include \"system.h\"\n");
printf ("#include \"rtl.h\"\n\n"); printf ("#include \"rtl.h\"\n\n");
/* This variable exists only so it can be the "location" /* This variable exists only so it can be the "location"
......
...@@ -347,7 +347,7 @@ main (argc, argv) ...@@ -347,7 +347,7 @@ main (argc, argv)
from the machine description file `md'. */\n\n"); from the machine description file `md'. */\n\n");
printf ("#include \"config.h\"\n"); printf ("#include \"config.h\"\n");
printf ("#include <stdio.h>\n"); printf ("#include \"system.h\"\n");
printf ("#include \"rtl.h\"\n"); printf ("#include \"rtl.h\"\n");
printf ("#include \"flags.h\"\n"); printf ("#include \"flags.h\"\n");
printf ("#include \"insn-flags.h\"\n"); printf ("#include \"insn-flags.h\"\n");
......
...@@ -177,7 +177,7 @@ output_prologue () ...@@ -177,7 +177,7 @@ output_prologue ()
from the machine description file `md'. */\n\n"); from the machine description file `md'. */\n\n");
printf ("#include \"config.h\"\n"); printf ("#include \"config.h\"\n");
printf ("#include <stdio.h>\n"); printf ("#include \"system.h\"\n");
printf ("#include \"flags.h\"\n"); printf ("#include \"flags.h\"\n");
printf ("#include \"rtl.h\"\n"); printf ("#include \"rtl.h\"\n");
printf ("#include \"regs.h\"\n"); printf ("#include \"regs.h\"\n");
...@@ -562,8 +562,13 @@ process_template (d, template) ...@@ -562,8 +562,13 @@ process_template (d, template)
printf ("\nstatic char *\n"); printf ("\nstatic char *\n");
printf ("output_%d (operands, insn)\n", d->code_number); 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 *operands;\n");
printf (" rtx insn;\n"); printf (" rtx insn;\n");
printf ("#endif\n");
printf ("{\n"); printf ("{\n");
/* If the assembler code template starts with a @ it is a newline-separated /* If the assembler code template starts with a @ it is a newline-separated
......
...@@ -450,7 +450,7 @@ main (argc, argv) ...@@ -450,7 +450,7 @@ main (argc, argv)
from the machine description file `md'. */\n\n"); from the machine description file `md'. */\n\n");
printf ("#include \"config.h\"\n"); printf ("#include \"config.h\"\n");
printf ("#include <stdio.h>\n"); printf ("#include \"system.h\"\n");
printf ("#include \"rtl.h\"\n"); printf ("#include \"rtl.h\"\n");
printf ("#include \"regs.h\"\n"); printf ("#include \"regs.h\"\n");
printf ("#include \"output.h\"\n"); printf ("#include \"output.h\"\n");
......
...@@ -1716,7 +1716,7 @@ main (argc, argv) ...@@ -1716,7 +1716,7 @@ main (argc, argv)
from the machine description file `md'. */\n\n"); from the machine description file `md'. */\n\n");
printf ("#include \"config.h\"\n"); printf ("#include \"config.h\"\n");
printf ("#include <stdio.h>\n"); printf ("#include \"system.h\"\n");
printf ("#include \"rtl.h\"\n"); printf ("#include \"rtl.h\"\n");
printf ("#include \"insn-config.h\"\n"); printf ("#include \"insn-config.h\"\n");
printf ("#include \"recog.h\"\n"); printf ("#include \"recog.h\"\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment