From: Richard Stallman Date: Sat, 19 Sep 1992 04:47:11 +0000 (+0000) Subject: (exit): Declare _exit as volatile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad38743d79042c5c7a40350f44327ad5d054a532;p=gcc.git (exit): Declare _exit as volatile. (__CTOR_LIST__, __DTOR_LIST__): Moved to separate member. From-SVN: r2158 --- diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 70286cc5ec5..a913c4196bb 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -1582,7 +1582,7 @@ __main () #endif /* L__main */ -#ifdef L_exit +#ifdef L_ctors #include "gbl-ctors.h" @@ -1597,6 +1597,11 @@ __main () func_ptr __CTOR_LIST__[2]; func_ptr __DTOR_LIST__[2]; #endif /* no INIT_SECTION_ASM_OP and not CTOR_LISTS_DEFINED_EXTERNALLY */ +#endif /* L_ctors */ + +#ifdef L_exit + +#include "gbl-ctors.h" #ifndef ON_EXIT @@ -1606,7 +1611,7 @@ func_ptr __DTOR_LIST__[2]; extern void __do_global_dtors (); extern void _cleanup (); -extern void _exit (); +extern volatile void _exit (); void exit (status)