aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-04-01 22:44:48 +0000
committerJeff Law <law@gcc.gnu.org>1998-04-01 15:44:48 -0700
commit729da3f5a8f4cc906c185e4cbc9bdbac657a1cca (patch)
treedf94a82019f622d41b626b75e30ea5a5721555d7
parent2a8034f8164d3953e4a25fa577d465b6057bdd66 (diff)
downloadgcc-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
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/genattrtab.c2
-rw-r--r--gcc/genemit.c2
-rw-r--r--gcc/genextract.c2
-rw-r--r--gcc/genopinit.c2
-rw-r--r--gcc/genoutput.c7
-rw-r--r--gcc/genpeep.c2
-rw-r--r--gcc/genrecog.c2
8 files changed, 20 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b2ce0e5..59ab3fd 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 e3ffaea..040521b 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 4c61282..6209484 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 3236cde..22722b5 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 0320c29..7944dec 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 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
diff --git a/gcc/genpeep.c b/gcc/genpeep.c
index a64235a..0150c56 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 e938298..6c158d6 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");