public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* small patch for sparc-linux-gnulibc1
@ 1997-10-17 19:44 David S. Miller
  1997-10-17 23:35 ` Jeffrey A Law
  1997-10-20  2:07 ` Andreas Schwab
  0 siblings, 2 replies; 5+ messages in thread
From: David S. Miller @ 1997-10-17 19:44 UTC (permalink / raw)
  To: egcs

I can't get a clean build without the following change.

I'm not certain this is the correct fix though.  gbl-ctors.h has this
bit in it:

#if defined (WINNT) || defined (NEED_ATEXIT)
extern int atexit (void (*) (void));
#else
extern void atexit (void (*) (void));
#endif

It seems to me if NEED_ATEXIT is not defined, this means a prototype
extern is not necessary.  Perhaps someone can help figure out what
really should be happening here.

Fri Oct 17 17:09:05 1997  David S. Miller  <davem@tanya.rutgers.edu>

	* config/sparc/linux.h (NEED_ATEXIT): Define.

--- config/sparc/linux.h.~1~	Wed Sep 24 20:33:46 1997
+++ config/sparc/linux.h	Fri Oct 17 17:07:43 1997
@@ -27,6 +27,9 @@
 #undef HAVE_ATEXIT
 #define HAVE_ATEXIT
 
+#undef NEED_ATEXIT
+#define NEED_ATEXIT
+
 /* Linux uses ctype from glibc.a. I am not sure how complete it is.
    For now, we play safe. It may change later. */
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-10-20 14:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-17 19:44 small patch for sparc-linux-gnulibc1 David S. Miller
1997-10-17 23:35 ` Jeffrey A Law
1997-10-18 12:39   ` David S. Miller
1997-10-20  2:07 ` Andreas Schwab
1997-10-20 14:00   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).