OSDN Git Service

* genattrtab.c: Make generated file use system.h, instead of
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Apr 1998 22:44:48 +0000 (22:44 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Apr 1998 22:44:48 +0000 (22:44 +0000)
        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

gcc/ChangeLog
gcc/genattrtab.c
gcc/genemit.c
gcc/genextract.c
gcc/genopinit.c
gcc/genoutput.c
gcc/genpeep.c
gcc/genrecog.c

index b2ce0e5..59ab3fd 100644 (file)
@@ -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".
index e3ffaea..040521b 100644 (file)
@@ -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");
index 4c61282..6209484 100644 (file)
@@ -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");
index 3236cde..22722b5 100644 (file)
@@ -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"
index 0320c29..7944dec 100644 (file)
@@ -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");
index a2d7c71..6af827d 100644 (file)
@@ -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
index a64235a..0150c56 100644 (file)
@@ -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");
index e938298..6c158d6 100644 (file)
@@ -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");