(exit): Declare _exit as volatile.
authorRichard Stallman <rms@gnu.org>
Sat, 19 Sep 1992 04:47:11 +0000 (04:47 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 19 Sep 1992 04:47:11 +0000 (04:47 +0000)
(__CTOR_LIST__, __DTOR_LIST__): Moved to separate member.

From-SVN: r2158

gcc/libgcc2.c

index 70286cc5ec5f379c9857af11411ee13a996fea5e..a913c4196bb9983f4f12829e564dcf88535ff90d 100644 (file)
@@ -1582,7 +1582,7 @@ __main ()
 
 #endif /* L__main */
 \f
-#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 */
+\f
+#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)