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: egcs, does gcc fixincludes etc guarantee a stdlib.h exists?


> In any case, it doesn't really matter.  We don't need to define
> __USE_FIXED_PROTOTYPES__.  It is true that some systems will be missing
> a malloc prototype, but we only need a prototype if char * and int are
> different sizes, and we can be sure that all of those systems do have
> a malloc prototype already.

We also need a prototype if the return convention for pointers and ints
are different (e.g. on some m68k systems : d0 for ints a0 for pointers)

Another reason for needing a prototype is when we take the address
of the function.


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