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]
Other format: [Raw text]

Re: libgcc2's warning: implicit declaration of function `abort'


Doug Evans wrote:
Is there any reason why the !inhibit_libc case in tsystem.h
provides malloc,free,atexit but not abort?

A guess: malloc/free/atexit all take pointers as argument, and hence prototypes were required for correct behaviour on systems where ints and pointers are different sizes.


That is no reason to refuse an abort prototype though. Eliminating warnings from the build is always a useful thing to do. Want to submit a patch?

Jim




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