diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-20 18:59:09 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-20 18:59:09 +0000 |
| commit | 75d3a87b8aef9713012f75fcb9c50e4675e6420d (patch) | |
| tree | 1dce8dde0438dcbdd069e299fbaa31183fe04feb | |
| parent | 698f0dee3a09c0fcca0d21b6484f2c29f54658a1 (diff) | |
| download | ppe42-gcc-75d3a87b8aef9713012f75fcb9c50e4675e6420d.tar.gz ppe42-gcc-75d3a87b8aef9713012f75fcb9c50e4675e6420d.zip | |
* crtstuff.c (ON_EXIT): Delete empty macro definition.
(__do_global_ctors_aux): Call atexit(), not ON_EXIT().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29527 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/crtstuff.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a603dc06e34..ac05e6d9e5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * crtstuff.c (ON_EXIT): Delete empty macro definition. + (__do_global_ctors_aux): Call atexit(), not ON_EXIT(). + Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com> * c-decl.c (c_decode_option): Extend comment. diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 6ce1c863acf..a17433a0c43 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 |

