* libgcc2.c (__do_global_ctors): Call atexit with one arg.
* sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
Define HAVE_ON_EXIT.
From-SVN: r29465
+Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * libgcc2.c (__do_global_ctors): Call atexit with one arg.
+
+ * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
+ Define HAVE_ON_EXIT.
+
Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
: "r" (ms_flags), "r" (ms_saveret));
/* SunOS has on_exit instead of atexit. */
-extern int on_exit (void *, void *); /* The man page says it returns int. */
+/* The man page says it returns int. */
+extern int on_exit PARAMS ((void *, void *));
#define ON_EXIT(FUNC) on_exit ((FUNC), 0)
#define NEED_ATEXIT
+#define HAVE_ON_EXIT
}
#endif
DO_GLOBAL_CTORS_BODY;
- atexit (__do_global_dtors, 0);
+ atexit (__do_global_dtors);
}
#endif /* no HAS_INIT_SECTION */