diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-01 22:44:48 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-01 22:44:48 +0000 |
commit | 9aaa1fcc3cfa4701f27dcbe384a36e9e42d09127 (patch) | |
tree | df94a82019f622d41b626b75e30ea5a5721555d7 /gcc | |
parent | d5382b2fb1768b1fbfb6d6eec401f4885cf272e2 (diff) | |
download | gcc-9aaa1fcc3cfa4701f27dcbe384a36e9e42d09127.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18941 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/genattrtab.c | 2 | ||||
-rw-r--r-- | gcc/genemit.c | 2 | ||||
-rw-r--r-- | gcc/genextract.c | 2 | ||||
-rw-r--r-- | gcc/genopinit.c | 2 | ||||
-rw-r--r-- | gcc/genoutput.c | 7 | ||||
-rw-r--r-- | gcc/genpeep.c | 2 | ||||
-rw-r--r-- | gcc/genrecog.c | 2 |
8 files changed, 20 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2ce0e5a47e..59ab3fd6200 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,13 @@ 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. * pa.md (reload peepholes): Remove unused variable "mode". diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index e3ffaeaad31..040521b006d 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -5953,7 +5953,7 @@ from the machine description file `md'. */\n\n"); expand_units (); printf ("#include \"config.h\"\n"); - printf ("#include <stdio.h>\n"); + printf ("#include \"system.h\"\n"); printf ("#include \"rtl.h\"\n"); printf ("#include \"insn-config.h\"\n"); printf ("#include \"recog.h\"\n"); diff --git a/gcc/genemit.c b/gcc/genemit.c index 4c61282be4b..62094845fad 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -737,7 +737,7 @@ main (argc, argv) 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 \"rtl.h\"\n"); printf ("#include \"expr.h\"\n"); printf ("#include \"real.h\"\n"); diff --git a/gcc/genextract.c b/gcc/genextract.c index 3236cde6bd1..22722b5c81d 100644 --- a/gcc/genextract.c +++ b/gcc/genextract.c @@ -437,7 +437,7 @@ main (argc, argv) 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 \"rtl.h\"\n\n"); /* This variable exists only so it can be the "location" diff --git a/gcc/genopinit.c b/gcc/genopinit.c index 0320c29fc0d..7944dec03cb 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -347,7 +347,7 @@ main (argc, argv) 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 \"rtl.h\"\n"); printf ("#include \"flags.h\"\n"); printf ("#include \"insn-flags.h\"\n"); diff --git a/gcc/genoutput.c b/gcc/genoutput.c index a2d7c713b0d..6af827dcb6e 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 diff --git a/gcc/genpeep.c b/gcc/genpeep.c index a64235ace23..0150c565b2d 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -450,7 +450,7 @@ main (argc, argv) 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 \"rtl.h\"\n"); printf ("#include \"regs.h\"\n"); printf ("#include \"output.h\"\n"); diff --git a/gcc/genrecog.c b/gcc/genrecog.c index e938298f275..6c158d6ce8f 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -1716,7 +1716,7 @@ main (argc, argv) 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 \"rtl.h\"\n"); printf ("#include \"insn-config.h\"\n"); printf ("#include \"recog.h\"\n"); |