This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs, does gcc fixincludes etc guarantee a stdlib.h exists?
- To: ghazi at caip dot rutgers dot edu
- Subject: Re: egcs, does gcc fixincludes etc guarantee a stdlib.h exists?
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Sat, 28 Mar 1998 16:25:27 +0100 (MET)
- Cc: egcs at cygnus dot com
- References: <199803272118.QAA25896@caip.rutgers.edu>
- Reply-To: Manfred Hollstein <manfred at s-direktnet dot de>, Manfred dot Hollstein at ks dot sel dot alcatel dot de
On Fri, 27 March 1998, 16:18:24, ghazi@caip.rutgers.edu wrote:
Simple question. Does gcc guarantee that after it diddles with
the system headers that a stdlib.h exists in some form?
Yes, it does. I have this situation on m68k-motorola-sysv. I've added
a small patch recently, which guarantees the generated stdlib.h
contains a definition for `size_t'. Otherwise, lots of g++ tests will fail.
For target files which include tconfig.h, since we can't check
autoconf macros, I'd like to hardwire including stdlib.h to possibly get
prototypes for malloc, et al.
I'll have to look on Monday, which prototypes are actually generated.
This set of files would include frame.c and libgcc2.c.
Thanks,
--Kaveh
manfred