This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Implicit declaration fixes, libiberty
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: Implicit declaration fixes, libiberty
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 29 May 2000 11:37:20 -0600
- cc: gcc-patches at gcc dot gnu dot org, gdb-patches at sourceware dot cygnus dot com, binutils at sourceware dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <20000527221807.S10272@wolery.cumb.org>you write:
> This is a wee bit hairier than the fixes in the target only libraries.
> I've not made any effort to find prototypes in non-ANSI headers
> (strings.h, memory.h, etc), but the defaults should be sane.
>
> zw
>
>
> * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
> if HAVE_STRING_H.
> * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
> * objalloc.c: Include config.h. Include stdlib.h and don't
> declare malloc or free if HAVE_STDLIB_H.
> * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
> else declare malloc without prototype. Include string.h if
> HAVE_STRING_H, else declare memset without prototype. Don't
> include stddef.h.
This is fine. Please install it into the combined binutils/gdb repository too.
Thanks,
jeff