This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: 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


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