Commit f75e8946 by Jason Merrill Committed by Jason Merrill

libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.

	* libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
	* sparc/sunos4.h (HAVE_ON_EXIT): Remove.

From-SVN: r29481
parent 3db9b900
Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com> 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 * tlink.c (scan_linker_output): Look for keywords before accepting
a mangled name in quotes. a mangled name in quotes.
......
...@@ -53,4 +53,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -53,4 +53,3 @@ Boston, MA 02111-1307, USA. */
extern int on_exit PARAMS ((void *, void *)); 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
...@@ -2931,7 +2931,7 @@ func_ptr __DTOR_LIST__[2]; ...@@ -2931,7 +2931,7 @@ func_ptr __DTOR_LIST__[2];
#ifdef NEED_ATEXIT #ifdef NEED_ATEXIT
#ifndef HAVE_ON_EXIT #ifndef ON_EXIT
# include <errno.h> # include <errno.h>
...@@ -2987,7 +2987,7 @@ exit (int status) ...@@ -2987,7 +2987,7 @@ exit (int status)
_exit (status); _exit (status);
} }
#else /* HAVE_ON_EXIT */ #else /* ON_EXIT */
/* Simple; we just need a wrapper for ON_EXIT. */ /* Simple; we just need a wrapper for ON_EXIT. */
int int
...@@ -2996,7 +2996,7 @@ atexit (func_ptr func) ...@@ -2996,7 +2996,7 @@ atexit (func_ptr func)
return ON_EXIT (func); return ON_EXIT (func);
} }
#endif /* HAVE_ON_EXIT */ #endif /* ON_EXIT */
#endif /* NEED_ATEXIT */ #endif /* NEED_ATEXIT */
#endif /* L_exit */ #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