genattrtab.c: Make generated file use system.h, instead of including stdio.h, etc...
authorJeffrey A Law <law@cygnus.com>
Wed, 1 Apr 1998 22:44:48 +0000 (22:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 1 Apr 1998 22:44:48 +0000 (15:44 -0700)
        * 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

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

index b2ce0e5a47ebfdff91575b8d7978d395e39bbac5..59ab3fd620000719d68aa71ee2bd076a0af7fcfa 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 e3ffaeaad318455c779cce8b26b00357c3cfee24..040521b006dd59f32b7b837cca15dfaa16777107 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 4c61282be4b4cb6610aa626250878bfb42d0a594..62094845fade6fe4eeed8a5b8e05d4e37fdabadd 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 3236cde6bd154643258d6f9cb33f71879cd2ab4a..22722b5c81d5a19a26998a0d0d8e468927d2e8ae 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 0320c29fc0d0a3afb95b6bef80c9d65ff38eca0d..7944dec03cb671a0191cef2e22ede13c537f106f 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 a2d7c713b0d1aad190bdc06e2dff9680a617241d..6af827dcb6e32eebe9e52d716a10cf7acdf2bef0 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 a64235ace233e5e6cdb37b5911c06275eb23e6e2..0150c565b2d04dd9b20ed169c7824332f6b6f4a8 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 e938298f275b15e74b79f0fc7a009d0ccfcc4e65..6c158d6ce8f6a88c632f53a5c5fd18d6b7316cc0 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");