summaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-01 21:30:52 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-01 21:30:52 +0000
commit069631e1799ff25651935125a462edc5d869545a (patch)
treebd349f655e668c3f79a4ea423341713cac116e61 /gcc/crtstuff.c
parent7e1b4490afc958f43605bc2f38d9947e58409f06 (diff)
downloadgcc-069631e1799ff25651935125a462edc5d869545a.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31741 138bc75d-0d04-0410-961f-82ee72b054a4
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 98e0779a5e2..c2d4fac605a 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