#define CPP_SPEC "%{scointl:-DM_INTERNAT}"
+/* Use atexit for static destructors, instead of defining
+ our own exit function. */
+#define HAVE_ATEXIT
+
#if 0 /* Not yet certain whether this is needed. */
/* If no 387, use the general regs to return floating values,
since this system does not emulate the 80387. */
#ifndef INIT_SECTION_ASM_OP
/* Run all the global constructors on entry to the program. */
-#ifndef ON_EXIT /* DO_GLOBAL_CTORS_BODY uses ON_EXIT */
+#ifndef ON_EXIT
#define ON_EXIT(a, b)
#else
/* Make sure the exit routine is pulled in to define the globals as
__do_global_ctors ()
{
DO_GLOBAL_CTORS_BODY;
+ ON_EXIT (__do_global_dtors, 0);
}
/* Subroutine called automatically by `main'.