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:
Kaveh R. Ghazi 1999-09-16 22:51:47 +00:00 committed by Kaveh Ghazi
parent fffeac96e0
commit a218d5ba2b
3 changed files with 11 additions and 2 deletions

View File

@ -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> Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use

View File

@ -49,6 +49,8 @@ Boston, MA 02111-1307, USA. */
: "r" (ms_flags), "r" (ms_saveret)); : "r" (ms_flags), "r" (ms_saveret));
/* SunOS has on_exit instead of atexit. */ /* 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 ON_EXIT(FUNC) on_exit ((FUNC), 0)
#define NEED_ATEXIT #define NEED_ATEXIT
#define HAVE_ON_EXIT

View File

@ -2868,7 +2868,7 @@ __do_global_ctors ()
} }
#endif #endif
DO_GLOBAL_CTORS_BODY; DO_GLOBAL_CTORS_BODY;
atexit (__do_global_dtors, 0); atexit (__do_global_dtors);
} }
#endif /* no HAS_INIT_SECTION */ #endif /* no HAS_INIT_SECTION */