This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Minor ELF32/ia64 cleanup
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: hjl at lucon dot org
- Cc: wilson at specifixinc dot com, binutils at sources dot redhat dot com
- Date: Wed, 4 May 2005 13:16:47 -0700 (PDT)
- Subject: Re: PATCH: Minor ELF32/ia64 cleanup
> There is a stpcpy.c in libiberty. Why isn't it used?
>
>
> H.J.
Ah. It looks like the problem is that there is no declaration for it
and we are compiling with -Wall so the warning about 'implicit
declaration' of stpcpy becomes an error. Is there a libiberty header
that elfxx-ia64.c should be including in order to get a declaration for
stpcpy?
Steve Ellcey
sje@cup.ph.com
/extra4/be/bin/gcc -DHAVE_CONFIG_H -I. -I/shale/sje/binutils_patch/src/bfd -I. -
D_GNU_SOURCE -I. -I/shale/sje/binutils_patch/src/bfd -I/shale/sje/binutils_patch
/src/bfd/../include -I/shale/sje/binutils_patch/src/bfd/../intl -I../intl -W -Wa
ll -Wstrict-prototypes -Wmissing-prototypes -Werror -g -c elf32-ia64.c -o elf32-
ia64.o
elf32-ia64.c: In function `elf32_ia64_object_p':
elf32-ia64.c:4917: warning: implicit declaration of function `stpcpy'
make[3]: *** [elf32-ia64.lo] Error 1