egcs, does gcc fixincludes etc guarantee a stdlib.h exists?
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Tue Apr 14 09:37:00 GMT 1998
> From: "Philippe De Muyter" <phdm@macqel.be>
>
> > Mon Apr 13 12:18:31 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
> >
> > * frame.c: Include stdlib.h and unistd.h to possibly get various
> > function prototypes. The fixproto script guarantees these header
> > files exist on the target system.
>
> As I wrote before, stdlib.h and unistd.h are guaranteed to exist, but
> there is no guarantee that you get a prototype for malloc from stdlib.h,
> except if you define __USE_FIXED_PROTOTYPES__ before including stdlib.h.
>
> Philippe De Muyter
I considered doing that, but I wasn't completely sure defining
that macro unconditionally in libgcc2.c or frame.c was a good idea. Are
we guaranteed that defining __USE_FIXED_PROTOTYPES__ is safe for all
platforms? (I don't know, I'm asking.) If it is safe, then why does the
wrapper exist at all? ...
I don't have strong feelings either way. Whatever Jeff decides
is fine with me.
--Kaveh
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu Icon CMT Corp.
More information about the Gcc
mailing list