Commit f1f53f0b by Jim Wilson Committed by Jim Wilson

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
parent f5880dbe
1998-04-23 Jim Wilson <wilson@cygnus.com> 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. * 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> Thu Apr 23 19:09:33 1998 Jim Wilson <wilson@cygnus.com>
......
...@@ -33,9 +33,15 @@ Boston, MA 02111-1307, USA. */ ...@@ -33,9 +33,15 @@ Boston, MA 02111-1307, USA. */
#include "tconfig.h" #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. */ /* fixproto guarantees these system headers exist. */
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#endif
#include "defaults.h" #include "defaults.h"
......
...@@ -32,9 +32,15 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,9 +32,15 @@ Boston, MA 02111-1307, USA. */
#include "tconfig.h" #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. */ /* fixproto guarantees these system headers exist. */
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#endif
#include "machmode.h" #include "machmode.h"
#include "defaults.h" #include "defaults.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment