This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: small patch for sparc-linux-gnulibc1
- To: "David S. Miller" <davem at jenolan dot rutgers dot edu>
- Subject: Re: small patch for sparc-linux-gnulibc1
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 20 Oct 1997 11:07:10 +0200
- Cc: egcs at cygnus dot com
- References: <199710172212.SAA04011@jenolan.rutgers.edu>
David S Miller <davem@jenolan.rutgers.edu> writes:
|> 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.
Note that the second prototype is broken anyway. atexit has always
returned int, not void.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org