small patch for sparc-linux-gnulibc1

Andreas Schwab schwab@issan.informatik.uni-dortmund.de
Mon Oct 20 02:07:00 GMT 1997


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



More information about the Gcc mailing list