This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: small patch for sparc-linux-gnulibc1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]