diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-02-01 21:30:52 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-02-01 21:30:52 +0000 |
commit | 2e39bdbe4b92cea918f54624604e241cd1672a52 (patch) | |
tree | bd349f655e668c3f79a4ea423341713cac116e61 /gcc/libgcc2.c | |
parent | ed672cd0e9fe098b273c2dfd2dcac08b59e4a381 (diff) | |
download | gcc-2e39bdbe4b92cea918f54624604e241cd1672a52.zip gcc-2e39bdbe4b92cea918f54624604e241cd1672a52.tar.gz gcc-2e39bdbe4b92cea918f54624604e241cd1672a52.tar.bz2 |
tsystem.h: New file.
* tsystem.h: New file.
* Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
s-crtS): Depend on tsystem.h.
* crtstuff.c: Include tsystem.h.
* frame.c: Likewise.
* libgcc2.c: Likewise.
From-SVN: r31741
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index de14051..2775751 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -32,36 +32,10 @@ Boston, MA 02111-1307, USA. */ do not apply. */ #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/crtstuff.c. */ -#ifndef inhibit_libc -/* fixproto guarantees these system headers exist. */ -#include <stdlib.h> -#include <unistd.h> - -#else -#ifndef L_trampoline -#include <stddef.h> -#ifndef malloc -extern void *malloc (size_t); -#endif -#ifndef free -extern void free (void *); -#endif -#ifndef atexit -extern int atexit(void (*)(void)); -#endif -#endif -#endif +#include "tsystem.h" #include "machmode.h" #include "defaults.h" -#ifndef L_trampoline -#include <stddef.h> -#endif /* Don't use `fancy_abort' here even if config.h says to use it. */ #ifdef abort |