Commit bceb30e7 by Manfred Hollstein Committed by Jeff Law

libgcc2.c (L_exit): Provide a fake for atexit on systems which define ON_EXIT but not HAVE_ATEXIT.

        * libgcc2.c (L_exit): Provide a fake for atexit on systems which
        define ON_EXIT but not HAVE_ATEXIT.

From-SVN: r20982
parent 7edf1e04
Tue Jul 7 00:50:17 1998 Manfred Hollstein (manfred@s-direktnet.de)
* libgcc2.c (L_exit): Provide a fake for atexit on systems which
define ON_EXIT but not HAVE_ATEXIT.
Tue Jul 7 00:44:35 1998 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* m68k.md (zero_extend QI to HI): Correctly handle TARGET_5200.
......
......@@ -3003,9 +3003,17 @@ exit (int status)
_exit (status);
}
#else
#else /* ON_EXIT defined */
int _exit_dummy_decl = 0; /* prevent compiler & linker warnings */
#endif
# ifndef HAVE_ATEXIT
/* Provide a fake for atexit() using ON_EXIT. */
int atexit (func_ptr func)
{
return ON_EXIT (func, NULL);
}
# endif /* HAVE_ATEXIT */
#endif /* ON_EXIT defined */
#endif /* L_exit */
......
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