aboutsummaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-02-01 21:30:52 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-02-01 21:30:52 +0000
commit2e39bdbe4b92cea918f54624604e241cd1672a52 (patch)
treebd349f655e668c3f79a4ea423341713cac116e61 /gcc/crtstuff.c
parented672cd0e9fe098b273c2dfd2dcac08b59e4a381 (diff)
downloadgcc-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/crtstuff.c')
-rw-r--r--gcc/crtstuff.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 98e0779..c2d4fac 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -1,6 +1,6 @@
/* Specialized bits of code needed to support construction and
destruction of file-scope objects in C++ code.
- Copyright (C) 1991, 1994-1999 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1994-1999, 2000 Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@monkeys.com).
This file is part of GNU CC.
@@ -52,23 +52,9 @@ Boston, MA 02111-1307, USA. */
do not apply. */
#include "tm.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/frame.c. */
-#ifndef inhibit_libc
-/* fixproto guarantees these system headers exist. */
-#include <stdlib.h>
-#include <unistd.h>
-#else
-# ifndef atexit
-extern int atexit(void (*)(void));
-# endif
-#endif
+#include "tsystem.h"
#include "defaults.h"
-#include <stddef.h>
#include "frame.h"
/* We do not want to add the weak attribute to the declarations of these