(__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
+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.
#include "gbl-ctors.h"
-#ifndef ON_EXIT
-#define ON_EXIT(a, b)
-#endif
#define STATIC
#endif /* OBJECT_FORMAT_ELF */
#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 */
{
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