patch for sparc-linux-gnulibc1

Richard Henderson rth@cygnus.com
Wed Feb 18 21:25:00 GMT 1998


The declaration of atexit conflicts with the one in the
system headers.  I suggest getting rid of it.


r~



Index: gcc/gbl-ctors.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gbl-ctors.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 gbl-ctors.h
--- gbl-ctors.h	1997/08/11 15:57:07	1.1.1.1
+++ gbl-ctors.h	1998/02/19 05:22:17
@@ -37,10 +37,12 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 #ifdef HAVE_ATEXIT
+#ifdef NEED_DECLARATION_ATEXIT
 #if defined (WINNT) || defined (NEED_ATEXIT)
 extern int atexit (void (*) (void));
 #else
 extern void atexit (void (*) (void));
+#endif
 #endif
 #define ON_EXIT(FUNC,ARG) atexit ((FUNC))
 #else



More information about the Gcc mailing list