OSDN Git Service

I've backed out of including stat.h via system.h because stat.h can
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Feb 1998 06:11:54 +0000 (06:11 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Feb 1998 06:11:54 +0000 (06:11 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18289 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 450cb70..b8e7457 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 fcbbf1e..5f53c24 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 ef3ee49..6e8548e 100644 (file)
@@ -69,7 +69,6 @@
 
 
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <errno.h>
 
 #ifndef errno