Commit a218d5ba by Kaveh R. Ghazi Committed by Kaveh Ghazi

libgcc2.c (__do_global_ctors): Call atexit with one arg.

	* 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
parent fffeac96
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
......
......@@ -49,6 +49,8 @@ Boston, MA 02111-1307, USA. */
: "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
......@@ -2868,7 +2868,7 @@ __do_global_ctors ()
}
#endif
DO_GLOBAL_CTORS_BODY;
atexit (__do_global_dtors, 0);
atexit (__do_global_dtors);
}
#endif /* no HAS_INIT_SECTION */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment