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

Jim Wilson wilson@tuliptree.org
Thu Jun 12 23:11:00 GMT 2003


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





More information about the Gcc mailing list