This is the mail archive of the gcc-patches@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: [PATCH] PR 10957


> Hello,
> 
> I've attached the patch. This fixes certain targets
> which build with newlib, and need to include malloc.h
> (where free() is defined) but don't. Tested by me on
> i686-pc-linux-gnu, and by PR 10957's submitter on
> m68k-elf (with newlib). Can someone take a look?
> Thanks,
> 
> Dara
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> 2003-06-04  Dara Hazeghi  <dhazeghi@yahoo.com>
> 
> 	* configure.in: Add check for malloc.h needed by
> 	m68k for function free().
> 	* hashtab.c: include malloc.h were available for
> 	free().

malloc() and free() should be declared in stdlib.h.  Why isn't that 
sufficient?  A quick look at newlib/libc/include/stdlib.h shows 
appropriate definitions there.

R.


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