This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR 10957
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Dara Hazeghi <dhazeghi at yahoo dot com>
- Cc: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>, gcc-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Thu, 19 Jun 2003 11:31:12 +0100
- Subject: Re: [PATCH] PR 10957
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> 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.