diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/frame.c | 6 | ||||
-rw-r--r-- | gcc/libgcc2.c | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d94a40f..dfb0218 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 1998-04-23 Jim Wilson <wilson@cygnus.com> + * 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 <wilson@cygnus.com> diff --git a/gcc/frame.c b/gcc/frame.c index 4bd1fee..bde83d2 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 <stdlib.h> #include <unistd.h> +#endif #include "defaults.h" diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index ffbd159..a1525ba 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 <stdlib.h> #include <unistd.h> +#endif #include "machmode.h" #include "defaults.h" |