* libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
* sparc/sunos4.h (HAVE_ON_EXIT): Remove.
From-SVN: r29481
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.
extern int on_exit PARAMS ((void *, void *));
#define ON_EXIT(FUNC) on_exit ((FUNC), 0)
#define NEED_ATEXIT
-#define HAVE_ON_EXIT
#ifdef NEED_ATEXIT
-#ifndef HAVE_ON_EXIT
+#ifndef ON_EXIT
# include <errno.h>
_exit (status);
}
-#else /* HAVE_ON_EXIT */
+#else /* ON_EXIT */
/* Simple; we just need a wrapper for ON_EXIT. */
int
return ON_EXIT (func);
}
-#endif /* HAVE_ON_EXIT */
+#endif /* ON_EXIT */
#endif /* NEED_ATEXIT */
#endif /* L_exit */