This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix stpcpy / mempcpy namespace (bug 17573)
- From: Andreas Schwab <schwab at suse dot de>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>, Siddhesh Poyarekar <siddhesh at redhat dot com>
- Date: Thu, 13 Nov 2014 11:22:20 +0100
- Subject: Re: Fix stpcpy / mempcpy namespace (bug 17573)
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1411101817450 dot 6767 at digraph dot polyomino dot org dot uk>
Joseph Myers <joseph@codesourcery.com> writes:
> [BZ #17573]
> * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
> with asm name __mempcpy.
> [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
gcc mempcpy.c -c -std=gnu99 -fgnu89-inline -D_FORTIFY_SOURCE=2 -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wundef -Wwrite-strings -fasynchronous-unwind-tables -fmerge-all-constants -fmessage-length=0 -frounding-math -funwind-tables -g -grecord-gcc-switches -mtune=power3 -mhard-float -Wstrict-prototypes -Werror=implicit-function-declaration -mlong-double-128 -I../include -I/home/abuild/rpmbuild/BUILD/glibc-2.20.90/cc-base/string -I/home/abuild/rpmbuild/BUILD/glibc-2.20.90/cc-base -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/powerpc/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu -I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/ldbl-128ibm -I../sysdeps/ieee754/ldbl-opt -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /home/abuild/rpmbuild/BUILD/glibc-2.20.90/cc-base/string/mempcpy.o -MD -MP -MF /home/abuild/rpmbuild/BUILD/glibc-2.20.90/cc-base/string/mempcpy.o.dt -MT /home/abuild/rpmbuild/BUILD/glibc-2.20.90/cc-base/string/mempcpy.o
/tmp/ccXDS5DL.s: Assembler messages:
/tmp/ccXDS5DL.s:40: Error: symbol `__mempcpy' is already defined
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."