aboutsummaryrefslogtreecommitdiff
path: root/gcc/gbl-ctors.h
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-09-15 21:41:16 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-09-15 17:41:16 -0400
commitc063dc9813c9aecef8db565e265d76668f8c8fae (patch)
tree43a34e737f568cf4befde4eaa3fc41de57b903c4 /gcc/gbl-ctors.h
parent19832c7774e145cd1e545d1fb322d9397ffa17bc (diff)
downloadgcc-c063dc9813c9aecef8db565e265d76668f8c8fae.zip
gcc-c063dc9813c9aecef8db565e265d76668f8c8fae.tar.gz
gcc-c063dc9813c9aecef8db565e265d76668f8c8fae.tar.bz2
gbl-ctors.h: Lose HAVE_ATEXIT.
* gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT. * libgcc2.c: Lose obsolete defn of WEAK_ALIAS. (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT. (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl. (atexit, exit): Simplify. * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT. * config/lots: Remove defns of HAVE_ATEXIT. From-SVN: r29439
Diffstat (limited to 'gcc/gbl-ctors.h')
-rw-r--r--gcc/gbl-ctors.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/gcc/gbl-ctors.h b/gcc/gbl-ctors.h
index 86b1c0e..23fa736 100644
--- a/gcc/gbl-ctors.h
+++ b/gcc/gbl-ctors.h
@@ -2,7 +2,7 @@
for getting g++ file-scope static objects constructed. This file
will get included either by libgcc2.c (for systems that don't support
a .init section) or by crtstuff.c (for those that do).
- Copyright (C) 1991, 1995, 1996, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@segfault.us.com)
This file is part of GNU CC.
@@ -31,22 +31,8 @@ Boston, MA 02111-1307, USA. */
*/
#ifdef NEED_ATEXIT
-#ifndef HAVE_ATEXIT
-#define HAVE_ATEXIT 1 /* Take it from libgcc2.c */
-#endif
-#endif
-
-#ifdef HAVE_ATEXIT
-#if defined (WINNT) || defined (NEED_ATEXIT)
extern int atexit (void (*) (void));
#endif
-#define ON_EXIT(FUNC,ARG) atexit ((FUNC))
-#else
-#ifdef sun
-extern int on_exit (void *, void *); /* The man page says it returns int. */
-#define ON_EXIT(FUNC,ARG) on_exit ((FUNC), (ARG))
-#endif
-#endif
/* Declare a pointer to void function type. */