aboutsummaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-09-20 18:59:09 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-09-20 18:59:09 +0000
commit451fbdf217f6a09f6d18dcd4d0624c798c8647e6 (patch)
tree1dce8dde0438dcbdd069e299fbaa31183fe04feb /gcc/crtstuff.c
parent8d0281351215583e5125523108429c623b9cceb7 (diff)
downloadgcc-451fbdf217f6a09f6d18dcd4d0624c798c8647e6.zip
gcc-451fbdf217f6a09f6d18dcd4d0624c798c8647e6.tar.gz
gcc-451fbdf217f6a09f6d18dcd4d0624c798c8647e6.tar.bz2
crtstuff.c (ON_EXIT): Delete empty macro definition.
* crtstuff.c (ON_EXIT): Delete empty macro definition. (__do_global_ctors_aux): Call atexit(), not ON_EXIT(). From-SVN: r29527
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 6ce1c86..a17433a 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -119,9 +119,6 @@ typedef void (*func_ptr) (void);
#include "gbl-ctors.h"
-#ifndef ON_EXIT
-#define ON_EXIT(a, b)
-#endif
#define STATIC
#endif /* OBJECT_FORMAT_ELF */
@@ -262,7 +259,7 @@ __do_global_ctors_aux (void) /* prologue goes in .init section */
#endif
asm (TEXT_SECTION_ASM_OP); /* don't put epilogue and body in .init */
DO_GLOBAL_CTORS_BODY;
- ON_EXIT (__do_global_dtors, 0);
+ atexit (__do_global_dtors);
}
#endif /* OBJECT_FORMAT_ELF */
@@ -421,7 +418,7 @@ __do_global_ctors_aux (void) /* prologue goes in .text section */
{
asm (INIT_SECTION_ASM_OP);
DO_GLOBAL_CTORS_BODY;
- ON_EXIT (__do_global_dtors, 0);
+ atexit (__do_global_dtors);
} /* epilogue and body go in .init section */
#ifdef FORCE_INIT_SECTION_ALIGN