mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 16:39:50 +08:00
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
This commit is contained in:
parent
fffeac96e0
commit
a218d5ba2b
@ -1,3 +1,10 @@
|
||||
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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user