system.h: Include stdarg.h/varargs.h...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 26 Aug 1998 08:11:47 +0000 (08:11 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 26 Aug 1998 08:11:47 +0000 (08:11 +0000)
        * system.h: Include stdarg.h/varargs.h, make sure they are ordered
        correctly with regards to stdio.h.
        * calls.c: Remove stdarg.h/varargs.h.
        * cccp.c: Likewise.
        * cexp.y: Likewise.
        * combine.c: Likewise.
        * cpperror.c: Likewise.
        * cpplib.c: Likewise.
        * cpplib.h: Likewise.
        * doprint.c: Likewise.
        * emit-rtl.c: Likewise.
        * final.c: Likewise.
        * fix-header.c: Likewise.
        * gcc.c: Likewise.
        * genattr.c: Likewise.
        * genattrtab.c: Likewise.
        * gencodes.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.
        * mips-tfile.c: Likewise.
        * prefix.c: Likewise.
        * protoize.c: Likewise.
        * regmove.c: Likewise.
        * toplev.c: Likewise.
        * tree.c: Likewise.
        * cp/errfn.c: Remove stdarg.h/varargs.h.
        * cp/tree.c: Likewise.

From-SVN: r21997

35 files changed:
gcc/ChangeLog
gcc/calls.c
gcc/cccp.c
gcc/cexp.c
gcc/cexp.y
gcc/combine.c
gcc/cp/ChangeLog
gcc/cp/errfn.c
gcc/cp/tree.c
gcc/cpperror.c
gcc/cpplib.c
gcc/cpplib.h
gcc/doprint.c
gcc/emit-rtl.c
gcc/final.c
gcc/fix-header.c
gcc/gcc.c
gcc/genattr.c
gcc/genattrtab.c
gcc/gencodes.c
gcc/genconfig.c
gcc/genemit.c
gcc/genextract.c
gcc/genflags.c
gcc/genopinit.c
gcc/genoutput.c
gcc/genpeep.c
gcc/genrecog.c
gcc/mips-tfile.c
gcc/prefix.c
gcc/protoize.c
gcc/regmove.c
gcc/system.h
gcc/toplev.c
gcc/tree.c

index e36c5ccc90646c8a1e3033fd8ba796fc97237bef..3120bd487ebd971b75d5dd89225f3660ae656476 100644 (file)
@@ -1,3 +1,38 @@
+Wed Aug 26 10:53:03 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * system.h: Include stdarg.h/varargs.h, make sure they are ordered
+       correctly with regards to stdio.h.
+       
+       * calls.c: Remove stdarg.h/varargs.h.
+       * cccp.c: Likewise.
+       * cexp.y: Likewise.
+       * combine.c: Likewise.
+       * cpperror.c: Likewise.
+       * cpplib.c: Likewise.
+       * cpplib.h: Likewise.
+       * doprint.c: Likewise.
+       * emit-rtl.c: Likewise.
+       * final.c: Likewise.
+       * fix-header.c: Likewise.
+       * gcc.c: Likewise.
+       * genattr.c: Likewise.
+       * genattrtab.c: Likewise.
+       * gencodes.c: Likewise.
+       * genconfig.c: Likewise.
+       * genemit.c: Likewise.
+       * genextract.c: Likewise.
+       * genflags.c: Likewise.
+       * genopinit.c: Likewise.
+       * genoutput.c: Likewise.
+       * genpeep.c: Likewise.
+       * genrecog.c: Likewise.
+       * mips-tfile.c: Likewise.
+       * prefix.c: Likewise.
+       * protoize.c: Likewise.
+       * regmove.c: Likewise.
+       * toplev.c: Likewise.
+       * tree.c: Likewise.
+
 Wed Aug 26 05:09:27 1998  Jakub Jelinek  <jj@sunsite.ms.mff.cuni.cz>
 
        * config/sparc/sparc.c (sparc_override_options): If not
index 8b140190c7e3691d14fde541294e3955c156ec94..233b1a7bd9d1aec502b2e68de8553939e6221007 100644 (file)
@@ -19,11 +19,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "tree.h"
index f684d2d3ed9e272db71253fecff2d08d0dfcf7f5..5214c2c5cd3b41c36b1be319acebfc7780f7b1a3 100644 (file)
@@ -19,11 +19,6 @@ Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA. */
 
 #include "config.h"
-#ifdef __STDC__
-# include <stdarg.h>
-#else
-# include <varargs.h>
-#endif
 
 #define PRINTF_PROTO(ARGS, m, n) PVPROTO (ARGS) ATTRIBUTE_PRINTF(m, n)
 
index 138a8a046b56cc2098936df75664d91c3e54b86e..a577b24b2d1cbff4fce97d3f0ce6142b3bb52566 100644 (file)
 #line 27 "cexp.y"
 
 #include "config.h"
-#ifdef __STDC__
-# include <stdarg.h>
-#else
-# include <varargs.h>
-#endif
 
 #define PRINTF_PROTO(ARGS, m, n) PVPROTO (ARGS) ATTRIBUTE_PRINTF(m, n)
 
index 5d36329e7e94adfff2689b06f0beee6da034dae9..c7d25c19658ed5a5a896b2b4e925c7c3698e6840 100644 (file)
@@ -26,11 +26,6 @@ Boston, MA 02111-1307, USA.
    
 %{
 #include "config.h"
-#ifdef __STDC__
-# include <stdarg.h>
-#else
-# include <varargs.h>
-#endif
 
 #define PRINTF_PROTO(ARGS, m, n) PVPROTO (ARGS) ATTRIBUTE_PRINTF(m, n)
 
index 5c050f2a9baaff104b9f053f3464029c9de2bee6..8f0ea65346ecde2f544883b4b172c07e3e405126 100644 (file)
@@ -75,16 +75,8 @@ Boston, MA 02111-1307, USA.  */
    combine anyway.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
-/* stdio.h must precede rtl.h for FFS.  */
 #include "system.h"
-
-#include "rtl.h"
+#include "rtl.h" /* stdio.h must precede rtl.h for FFS.  */
 #include "flags.h"
 #include "regs.h"
 #include "hard-reg-set.h"
index 80ba077e5ddfc9a984c0bc22e6afc3844329e92b..86ff9df2f62046e688a636794e5a459707dbf04a 100644 (file)
@@ -1,3 +1,8 @@
+Wed Aug 26 10:54:51 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * errfn.c: Remove stdarg.h/varargs.h.
+       * tree.c: Likewise.
+
 1998-08-25  Brendan Kehoe  <brendan@cygnus.com>
 
        * pt.c (tsubst_copy): Only do typename overloading on an
index 8d20682bcba7ce065c23b1d46f5b077b66d158fe..10de8a9d12be660a0fe307465426f4fd93fb4132 100644 (file)
@@ -24,12 +24,6 @@ Boston, MA 02111-1307, USA.  */
 #include "tree.h"
 #include "toplev.h"
 
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
 /* cp_printer is the type of a function which converts an argument into
    a string for digestion by printf.  The cp_printer function should deal
    with all memory management; the functions in this file will not free
index d598001a56b88b07e3a99579a4f5df72fc400335..fbd8542a029c95d5dfc58099cca2a6be0819022e 100644 (file)
@@ -28,12 +28,6 @@ Boston, MA 02111-1307, USA.  */
 #include "rtl.h"
 #include "toplev.h"
 
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
 extern void compiler_error ();
 
 static tree get_identifier_list PROTO((tree));
index c4cac065e7c4d5bfdb548bd5afec6103e808f6fd..308ef299a18cc7470eb15ea95f682b5e23b8e9f4 100644 (file)
@@ -24,11 +24,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 #ifndef EMACS
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "gansidecl.h"
 #else
index b9ded523c1d022a92b81465fd547074cda852a21..f1b5b0dbfa81e8d42f66b5689bd842dccbcd7a0c 100644 (file)
@@ -19,11 +19,6 @@ along with this program; if not, write to the Free Software
 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 
 #ifndef STDC_VALUE
index 65cb5daff916a2879e8299898e1a6c8d8a6646e5..ad69646d4fec4732da2d240c105d1fea1387251d 100644 (file)
@@ -22,11 +22,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 
 #ifdef __cplusplus
 extern "C" {
index dc36254006ec6dea9d3a183f508fdab29de0bbab..e09e1988122fb6183b7899b398ec841a16565f39 100644 (file)
@@ -4,11 +4,6 @@
  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "gansidecl.h"
 #undef _doprnt
index 2ca007a2003a5a7b94490777a608dee56ccd9870..d5ed39205ebdaa4de626bb18b20ac44c41080719 100644 (file)
@@ -35,11 +35,6 @@ Boston, MA 02111-1307, USA.  */
    is the kind of rtx's they make and what arguments they use.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "tree.h"
index 621f61f60ce5943afe917e76cd7c4c67d15e4263..0938e221d5e060c807cf4a26082b66798579e9e8 100644 (file)
@@ -45,11 +45,6 @@ Boston, MA 02111-1307, USA.  */
    FUNCTION_EPILOGUE.  Those instructions never exist as rtl.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 
 #include "tree.h"
index 8ba79ff6590469526f98df13c2fc3bae8c10383f..2981f9fe0d6b4a92f3ef7f22b77b7600d1b0564c 100644 (file)
@@ -71,11 +71,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
    Written by Per Bothner <bothner@cygnus.com>, July 1993.  */
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "gansidecl.h"
 #include "obstack.h"
index 1787d0f1c93205fe1410aa474648d1cf340b78f4..28b6206cb27301e12775574aa10fcd48f5a9e028 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -32,12 +32,6 @@ Once it knows which kind of compilation to perform, the procedure for
 compilation is specified by a string called a "spec".  */
 \f
 #include "config.h"
-
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include <signal.h>
 #include <sys/stat.h>
index c50e0fd45c5ea631f4533949ff4ed28f2e7ea18a..191e27486c5180e276aaf5d19e1f5251e986b18d 100644 (file)
@@ -21,11 +21,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index 686bf5c749a2aa1c67be280bc773cb77337017d8..adf07496c1801e53320a0a36d0c15c99f55dc536 100644 (file)
@@ -96,12 +96,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-/* varargs must always be included after *config.h, but before stdio.h.  */
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "insn-config.h"       /* For REGISTER_CONSTRAINTS */
index a3aa1fe2df11a3e3952ba5e0e81cdb2ec56f7dd2..725cc651e692d0082030660becbdbb2665c39ad7 100644 (file)
@@ -23,11 +23,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index b01a24bfc289a4dd170265101bb1b037625c895c..75693c1fb65d8ee682a9d006c52e563522bb20d9 100644 (file)
@@ -21,11 +21,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index 88789e74121607a543c1fd05465ae91b98067d3e..d13ff5e35b2c82c2c343abf50ff2f35edd7195b0 100644 (file)
@@ -20,11 +20,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index c06a74ca639df697699218b1f8af3a038e8d4c17..dfc2ac231220732e67e68114f3abe6c1e2f40882 100644 (file)
@@ -20,11 +20,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index d389a733e515746fe8d2b842e414f05e03c4df72..dee8128a9c2222534602ec343e1606390f086cc6 100644 (file)
@@ -23,11 +23,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index a31a444642a69339623509f9ca22184b62e45e25..f0b57bb9be9bec41812b6286c4869112b34c0814 100644 (file)
@@ -20,11 +20,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index 9f40c85eeec06469924b242ccf46747fdf8cc67c..400a8be442b4212a955ad659ca079c1e7f8283a3 100644 (file)
@@ -91,11 +91,6 @@ It would not make an case in output_insn_hairy because the template
 given in the entry is a constant (it does not start with `*').  */
 \f
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index ab65df7b5afb324f6105dd34046d0d962b8ab38e..99fcec54ce5c58b71d5b9316056896eaa15555c3 100644 (file)
@@ -20,11 +20,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index 4dd5ec7cdbb9149279e71dbf1b48d8022f5da949..cffa47fd7b911b22303cd0984830ede4cc1015f3 100644 (file)
@@ -47,11 +47,6 @@ Boston, MA 02111-1307, USA.  */
    it returns the split rtl in a SEQUENCE.  */
 
 #include "hconfig.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include "rtl.h"
 #include "obstack.h"
index 991839704e6ab80291b6cb8765beaeedefed6176..71c3962813315bfaab57af3180973d10f32d778e 100644 (file)
@@ -600,11 +600,6 @@ Boston, MA 02111-1307, USA.  */
 \f
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 
 #ifndef __SABER__
index 06b0610871bdd2c30164e24d0b6e0ed022a03a85..778600bff8d5d86711a69228f08a518dbaa4a30f 100644 (file)
@@ -64,11 +64,6 @@ Boston, MA 02111-1307, USA.  */
 
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #ifdef _WIN32
 #include <windows.h>
index 48908e520c34984971d43aabb1302559b92dd8d1..a7a5ae92e2b778f717caf6a5c22ffcc0d6917607 100644 (file)
@@ -57,11 +57,6 @@ Boston, MA 02111-1307, USA.  */
 #define _POSIX_SOURCE
 #endif
 
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include <sys/stat.h>
 #if ! defined (_WIN32) || defined (__CYGWIN32__)
index b4f7b6dd1bc316899448e2bfbbbdde5427d01b2c..d470bd52ac28154e174b18077f939d07b04539cf 100644 (file)
@@ -24,16 +24,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
    instruction to avoid the move instruction.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
-/* stdio.h must precede rtl.h for FFS.  */
 #include "system.h"
-
-#include "rtl.h"
+#include "rtl.h" /* stdio.h must precede rtl.h for FFS.  */
 #include "insn-config.h"
 #include "recog.h"
 #include "output.h"
index 27b1fee6bdfab93a7c3b71d7e849c382f3032715..e16cd2ea31259c1180f3a24280a9dfc42c0d47ff 100644 (file)
@@ -7,6 +7,13 @@
 #ifndef __GCC_SYSTEM_H__
 #define __GCC_SYSTEM_H__
 
+/* We must include stdarg.h/varargs.h before stdio.h. */
+#ifdef __STDC__
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
+
 #include <stdio.h>
 
 /* Define a generic NULL if one hasn't already been defined.  */
index 976f8a1cd1cf0f797071a2a1fbf6b3a5472fd898..79268778f17bd748574e2192a4322c187e00a52b 100644 (file)
@@ -24,11 +24,6 @@ Boston, MA 02111-1307, USA.  */
    Error messages and low-level interface to malloc also handled here.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #undef FLOAT /* This is for hpux. They should change hpux.  */
 #undef FFS  /* Some systems define this in param.h.  */
 #include "system.h"
index 532dd1908a88d700edb83c425c1bd16fa053f40a..2ae6d0b5cc20ec10aaf07af029810e068f85b0a9 100644 (file)
@@ -34,11 +34,6 @@ Boston, MA 02111-1307, USA.  */
    by all passes of the compiler.  */
 
 #include "config.h"
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include "system.h"
 #include <setjmp.h>
 #include "flags.h"