From: Kaveh R. Ghazi Date: Thu, 16 Sep 1999 22:51:47 +0000 (+0000) Subject: libgcc2.c (__do_global_ctors): Call atexit with one arg. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a218d5ba2b023b6475d6097d9d74585ad1bdfba0;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b9615e4d46..ad370d4cd90 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi + + * 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 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use diff --git a/gcc/config/sparc/sunos4.h b/gcc/config/sparc/sunos4.h index 0459c66207c..45d59fb585d 100644 --- a/gcc/config/sparc/sunos4.h +++ b/gcc/config/sparc/sunos4.h @@ -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 diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 96ce2143be9..a27caa358fe 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -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 */