From f1f53f0b758bb51f646c87bbfd5b8cb32fcef12e Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 23 Apr 1998 19:57:57 +0000 Subject: [PATCH] Partial fix for problem reported by Don Bowman. * frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when inhibit_libc is defined. From-SVN: r19390 --- gcc/ChangeLog | 3 +++ gcc/frame.c | 6 ++++++ gcc/libgcc2.c | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d94a40f13ca..dfb02184b09 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 1998-04-23 Jim Wilson + * frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when + inhibit_libc is defined. + * c-aux-info.c (gen_type): Use DECL_NAME only for TYPE_DECL. Thu Apr 23 19:09:33 1998 Jim Wilson diff --git a/gcc/frame.c b/gcc/frame.c index 4bd1fee6648..bde83d276f6 100644 --- a/gcc/frame.c +++ b/gcc/frame.c @@ -33,9 +33,15 @@ Boston, MA 02111-1307, USA. */ #include "tconfig.h" +/* We disable this when inhibit_libc, so that gcc can still be built without + needing header files first. */ +/* ??? This is not a good solution, since prototypes may be required in + some cases for correct code. See also libgcc2.c. */ +#ifndef inhibit_libc /* fixproto guarantees these system headers exist. */ #include #include +#endif #include "defaults.h" diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index ffbd1590192..a1525baf26b 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -32,9 +32,15 @@ Boston, MA 02111-1307, USA. */ #include "tconfig.h" +/* We disable this when inhibit_libc, so that gcc can still be built without + needing header files first. */ +/* ??? This is not a good solution, since prototypes may be required in + some cases for correct code. See also frame.c. */ +#ifndef inhibit_libc /* fixproto guarantees these system headers exist. */ #include #include +#endif #include "machmode.h" #include "defaults.h" -- 2.30.2