I've backed out of including stat.h via system.h because stat.h can define...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 28 Feb 1998 06:11:54 +0000 (06:11 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 28 Feb 1998 06:11:54 +0000 (06:11 +0000)
I've backed out of including stat.h via system.h because stat.h can
define static functions (eg on x86 svr4 according to jfc@mit.edu)
causing code bloat.
        * system.h: Remove sys/stat.h.
        * gcc.c: Add sys/stat.h.

From-SVN: r18289

gcc/ChangeLog
gcc/gcc.c
gcc/system.h

index 450cb70a501229434c00dcb79ddfd769edb7260a..b8e74575be1d445b7d3e1c32d607234b3a37bec6 100644 (file)
@@ -1,5 +1,8 @@
 Sat Feb 28 07:54:03 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * system.h: Remove sys/stat.h.
+       * gcc.c: Add sys/stat.h.
+
        * genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE.
        * genattrtab.c: Likewise.
        * genconfig.c: Likewise.
index fcbbf1eb00fcdfc5f50faeebac8ab00e03141cb4..5f53c246690508008ea4a78bf0bbd24bc74d8cc0 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -37,6 +37,7 @@ compilation is specified by a string called a "spec".  */
 #include "system.h"
 
 #include <signal.h>
+#include <sys/stat.h>
 #ifdef __STDC__
 #include <stdarg.h>
 #else
index ef3ee49a8c5077804e3d03eb95de736c07329d05..6e8548ee537cac36c8168d611271c3db1387c241 100644 (file)
@@ -69,7 +69,6 @@
 
 
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <errno.h>
 
 #ifndef errno