libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 17 Sep 1999 18:37:48 +0000 (18:37 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 17 Sep 1999 18:37:48 +0000 (14:37 -0400)
* libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
* sparc/sunos4.h (HAVE_ON_EXIT): Remove.

From-SVN: r29481

gcc/ChangeLog
gcc/config/sparc/sunos4.h
gcc/libgcc2.c

index 8860f6cc8350e4a49f4376e7927a9066877f92a8..fcf41bdc79f7a0ecf6aa39469c6b528bb56622f8 100644 (file)
@@ -1,5 +1,8 @@
 Fri Sep 17 11:14:17 1999  Jason Merrill  <jason@yorick.cygnus.com>
 
+       * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
+       * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
+
        * tlink.c (scan_linker_output): Look for keywords before accepting
        a mangled name in quotes.
 
index 45d59fb585da3a8f1399638789ebef1fd0b64d31..825df093a93cccc6ce2f58d9cef68227f047fc58 100644 (file)
@@ -53,4 +53,3 @@ Boston, MA 02111-1307, USA.  */
 extern int on_exit PARAMS ((void *, void *));
 #define ON_EXIT(FUNC) on_exit ((FUNC), 0)
 #define NEED_ATEXIT
-#define HAVE_ON_EXIT
index a27caa358feaf8b6c45b9857a33582e8617fb850..6e1742ee6d53d0de1dd6e75a3160edc6f3201bcd 100644 (file)
@@ -2931,7 +2931,7 @@ func_ptr __DTOR_LIST__[2];
 
 #ifdef NEED_ATEXIT
 
-#ifndef HAVE_ON_EXIT
+#ifndef ON_EXIT
 
 # include <errno.h>
 
@@ -2987,7 +2987,7 @@ exit (int status)
   _exit (status);
 }
 
-#else /* HAVE_ON_EXIT */
+#else /* ON_EXIT */
 
 /* Simple; we just need a wrapper for ON_EXIT.  */
 int
@@ -2996,7 +2996,7 @@ atexit (func_ptr func)
   return ON_EXIT (func);
 }
 
-#endif /* HAVE_ON_EXIT */
+#endif /* ON_EXIT */
 #endif /* NEED_ATEXIT */
 
 #endif /* L_exit */