]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 29 Apr 2003 22:49:58 +0000 (22:49 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 29 Apr 2003 22:49:58 +0000 (22:49 +0000)
* sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.

* include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
* signal/sigaddset.c: Add libc_hidden_def.
* signal/sigdelset.c: Likewise.

2003-04-29  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
to the end of the file.

* configure.in: Change __oline__ to $LINENO.
(HAVE_BUILTIN_REDIRECTION): New check.
* config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
* include/libc-symbols.h (libc_hidden_builtin_proto,
libc_hidden_builtin_def, libc_hidden_builtin_weak,
libc_hidden_builtin_ver): Define.
* include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
strspn, strstr): Add libc_hidden_builtin_proto.
* intl/plural.y: Include string.h.
* sysdeps/alpha/alphaev6/memchr.S (memchr): Add
libc_hidden_builtin_def.
* sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
* sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
* sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
* sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
* sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
* sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
* sysdeps/alpha/memchr.S (memchr): Likewise.
* sysdeps/alpha/memset.S (memset): Likewise.
* sysdeps/alpha/strcat.S (strcat): Likewise.
* sysdeps/alpha/strchr.S (strchr): Likewise.
* sysdeps/alpha/strcmp.S (strcmp): Likewise.
* sysdeps/alpha/strcpy.S (strcpy): Likewise.
* sysdeps/alpha/strlen.S (strlen): Likewise.
* sysdeps/alpha/strncmp.S (strncmp): Likewise.
* sysdeps/alpha/strncpy.S (strncpy): Likewise.
* sysdeps/alpha/strrchr.S (strrchr): Likewise.
* sysdeps/arm/memset.S (memset): Likewise.
* sysdeps/arm/strlen.S (strlen): Likewise.
* sysdeps/generic/memchr.c (memchr): Likewise.
* sysdeps/generic/memcpy.c (memcpy): Likewise.
* sysdeps/generic/memmove.c (memmove): Likewise.
* sysdeps/generic/memset.c (memset): Likewise.
* sysdeps/generic/strcat.c (strcat): Likewise.
* sysdeps/generic/strchr.c (strchr): Likewise.
* sysdeps/generic/strcmp.c (strcmp): Likewise.
* sysdeps/generic/strcpy.c (strcpy): Likewise.
* sysdeps/generic/strcspn.c (strcspn): Likewise.
* sysdeps/generic/strlen.c (strlen): Likewise.
* sysdeps/generic/strncmp.c (strncmp): Likewise.
* sysdeps/generic/strncpy.c (strncpy): Likewise.
* sysdeps/generic/strpbrk.c (strpbrk): Likewise.
* sysdeps/generic/strrchr.c (strrchr): Likewise.
* sysdeps/generic/strspn.c (strspn): Likewise.
* sysdeps/generic/strstr.c (strstr): Likewise.
* sysdeps/i386/i486/strcat.S (strcat): Likewise.
* sysdeps/i386/i486/strlen.S (strlen): Likewise.
* sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
* sysdeps/i386/i586/memset.S (memset): Likewise.
* sysdeps/i386/i586/strchr.S (strchr): Likewise.
* sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
* sysdeps/i386/i586/strlen.S (strlen): Likewise.
* sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
* sysdeps/i386/i686/memmove.S (memmove): Likewise.
* sysdeps/i386/i686/memset.S (memset): Likewise.
* sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
* sysdeps/i386/memchr.S (memchr): Likewise.
* sysdeps/i386/memset.c (memset): Likewise.
* sysdeps/i386/strchr.S (strchr): Likewise.
* sysdeps/i386/strcspn.S (strcspn): Likewise.
* sysdeps/i386/strlen.c (strlen): Likewise.
* sysdeps/i386/strpbrk.S (strpbrk): Likewise.
* sysdeps/i386/strrchr.S (strrchr): Likewise.
* sysdeps/i386/strspn.S (strspn): Likewise.
* sysdeps/ia64/memchr.S (memchr): Likewise.
* sysdeps/ia64/memcpy.S (memcpy): Likewise.
* sysdeps/ia64/memmove.S (memmove): Likewise.
* sysdeps/ia64/memset.S (memset): Likewise.
* sysdeps/ia64/strcat.S (strcat): Likewise.
* sysdeps/ia64/strchr.S (strchr): Likewise.
* sysdeps/ia64/strcmp.S (strcmp): Likewise.
* sysdeps/ia64/strcpy.S (strcpy): Likewise.
* sysdeps/ia64/strlen.S (strlen): Likewise.
* sysdeps/ia64/strncmp.S (strncmp): Likewise.
* sysdeps/ia64/strncpy.S (strncpy): Likewise.
* sysdeps/m68k/memchr.S (memchr): Likewise.
* sysdeps/m68k/strchr.S (strchr): Likewise.
* sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
* sysdeps/mips/mips64/memset.S (memset): Likewise.
* sysdeps/mips/memcpy.S (memcpy): Likewise.
* sysdeps/mips/memset.S (memset): Likewise.
* sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
* sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
* sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
* sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
* sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
* sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
* sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
* sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
* sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
* sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
* sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
* sysdeps/powerpc/strcat.c (strcat): Likewise.
* sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
* sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
* sysdeps/sparc/sparc32/memset.S (memset): Likewise.
* sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
* sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
* sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
* sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
* sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
* sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
* sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
* sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
* sysdeps/sparc/sparc64/memset.S (memset): Likewise.
* sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
* sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
* sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
* sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
* sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
* sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
* sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
* sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
* sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
* sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
* sysdeps/sh/memcpy.S (memcpy): Likewise.
* sysdeps/sh/memset.S (memset): Likewise.
* sysdeps/sh/strlen.S (strlen): Likewise.
* sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
* sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
* sysdeps/s390/s390-32/memset.S (memset): Likewise.
* sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
* sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
* sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
* sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
* sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
* sysdeps/s390/s390-64/memset.S (memset): Likewise.
* sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
* sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
* sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
* sysdeps/x86_64/memcpy.S (memcpy): Likewise.
* sysdeps/x86_64/memset.S (memset): Likewise.
* sysdeps/x86_64/strcat.S (strcat): Likewise.
* sysdeps/x86_64/strchr.S (strchr): Likewise.
* sysdeps/x86_64/strcmp.S (strcmp): Likewise.
* sysdeps/x86_64/strcpy.S (strcpy): Likewise.
* sysdeps/x86_64/strcspn.S (strcspn): Likewise.
* sysdeps/x86_64/strlen.S (strlen): Likewise.
* sysdeps/x86_64/strspn.S (strspn): Likewise.
* string/string-inlines.c: Move...
* sysdeps/generic/string-inlines.c: ...here.
(__memcpy_g, __strchr_g): Remove.
(__NO_INLINE__): Define before including <string.h>,
undefine after.  Include bits/string.h and bits/string2.h.
* sysdeps/i386/i486/string-inlines.c: New file.
* sysdeps/i386/string-inlines.c: New file.
* sysdeps/i386/i486/Versions: Remove.
All GLIBC_2.1.1 symbols moved...
* sysdeps/i386/Versions (libc): ...here.

2003-04-29  Ulrich Drepper  <drepper@redhat.com>

146 files changed:
ChangeLog
config.h.in
configure
configure.in
include/libc-symbols.h
include/signal.h
include/string.h
intl/plural.c
intl/plural.y
signal/sigaddset.c
signal/sigdelset.c
sysdeps/alpha/alphaev6/memchr.S
sysdeps/alpha/alphaev6/memcpy.S
sysdeps/alpha/alphaev6/memset.S
sysdeps/alpha/alphaev67/strcat.S
sysdeps/alpha/alphaev67/strchr.S
sysdeps/alpha/alphaev67/strlen.S
sysdeps/alpha/alphaev67/strrchr.S
sysdeps/alpha/memchr.S
sysdeps/alpha/memset.S
sysdeps/alpha/strcat.S
sysdeps/alpha/strchr.S
sysdeps/alpha/strcmp.S
sysdeps/alpha/strcpy.S
sysdeps/alpha/strlen.S
sysdeps/alpha/strncmp.S
sysdeps/alpha/strncpy.S
sysdeps/alpha/strrchr.S
sysdeps/arm/memset.S
sysdeps/arm/strlen.S
sysdeps/generic/memchr.c
sysdeps/generic/memcpy.c
sysdeps/generic/memmove.c
sysdeps/generic/memset.c
sysdeps/generic/strcat.c
sysdeps/generic/strchr.c
sysdeps/generic/strcmp.c
sysdeps/generic/strcpy.c
sysdeps/generic/strcspn.c
sysdeps/generic/string-inlines.c [moved from string/string-inlines.c with 75% similarity]
sysdeps/generic/strlen.c
sysdeps/generic/strncmp.c
sysdeps/generic/strncpy.c
sysdeps/generic/strpbrk.c
sysdeps/generic/strrchr.c
sysdeps/generic/strspn.c
sysdeps/generic/strstr.c
sysdeps/i386/Versions
sysdeps/i386/fpu/fesetround.c
sysdeps/i386/fpu/ftestexcept.c
sysdeps/i386/i486/strcat.S
sysdeps/i386/i486/string-inlines.c [new file with mode: 0644]
sysdeps/i386/i486/strlen.S
sysdeps/i386/i586/memcpy.S
sysdeps/i386/i586/memset.S
sysdeps/i386/i586/strchr.S
sysdeps/i386/i586/strcpy.S
sysdeps/i386/i586/strlen.S
sysdeps/i386/i686/memcpy.S
sysdeps/i386/i686/memmove.S
sysdeps/i386/i686/memset.S
sysdeps/i386/i686/strcmp.S
sysdeps/i386/memchr.S
sysdeps/i386/memset.c
sysdeps/i386/strchr.S
sysdeps/i386/strcspn.S
sysdeps/i386/string-inlines.c [new file with mode: 0644]
sysdeps/i386/strlen.c
sysdeps/i386/strpbrk.S
sysdeps/i386/strrchr.S
sysdeps/i386/strspn.S
sysdeps/ia64/memchr.S
sysdeps/ia64/memcpy.S
sysdeps/ia64/memmove.S
sysdeps/ia64/memset.S
sysdeps/ia64/strcat.S
sysdeps/ia64/strchr.S
sysdeps/ia64/strcmp.S
sysdeps/ia64/strcpy.S
sysdeps/ia64/strlen.S
sysdeps/ia64/strncmp.S
sysdeps/ia64/strncpy.S
sysdeps/m68k/memchr.S
sysdeps/m68k/strchr.S
sysdeps/mips/memcpy.S
sysdeps/mips/memset.S
sysdeps/mips/mips64/memcpy.S
sysdeps/mips/mips64/memset.S
sysdeps/powerpc/powerpc32/memset.S
sysdeps/powerpc/powerpc32/strchr.S
sysdeps/powerpc/powerpc32/strcmp.S
sysdeps/powerpc/powerpc32/strcpy.S
sysdeps/powerpc/powerpc32/strlen.S
sysdeps/powerpc/powerpc64/memcpy.S
sysdeps/powerpc/powerpc64/memset.S
sysdeps/powerpc/powerpc64/strchr.S
sysdeps/powerpc/powerpc64/strcmp.S
sysdeps/powerpc/powerpc64/strcpy.S
sysdeps/powerpc/powerpc64/strlen.S
sysdeps/powerpc/strcat.c
sysdeps/s390/s390-32/memchr.S
sysdeps/s390/s390-32/memcpy.S
sysdeps/s390/s390-32/memset.S
sysdeps/s390/s390-32/strcmp.S
sysdeps/s390/s390-32/strcpy.S
sysdeps/s390/s390-32/strncpy.S
sysdeps/s390/s390-64/memchr.S
sysdeps/s390/s390-64/memcpy.S
sysdeps/s390/s390-64/memset.S
sysdeps/s390/s390-64/strcmp.S
sysdeps/s390/s390-64/strcpy.S
sysdeps/s390/s390-64/strncpy.S
sysdeps/sh/memcpy.S
sysdeps/sh/memset.S
sysdeps/sh/strlen.S
sysdeps/sparc/sparc32/memchr.S
sysdeps/sparc/sparc32/memcpy.S
sysdeps/sparc/sparc32/memset.S
sysdeps/sparc/sparc32/strcat.S
sysdeps/sparc/sparc32/strchr.S
sysdeps/sparc/sparc32/strcmp.S
sysdeps/sparc/sparc32/strcpy.S
sysdeps/sparc/sparc32/strlen.S
sysdeps/sparc/sparc64/memchr.S
sysdeps/sparc/sparc64/memcpy.S
sysdeps/sparc/sparc64/memset.S
sysdeps/sparc/sparc64/sparcv9b/memcpy.S
sysdeps/sparc/sparc64/strcat.S
sysdeps/sparc/sparc64/strchr.S
sysdeps/sparc/sparc64/strcmp.S
sysdeps/sparc/sparc64/strcpy.S
sysdeps/sparc/sparc64/strcspn.S
sysdeps/sparc/sparc64/strlen.S
sysdeps/sparc/sparc64/strncmp.S
sysdeps/sparc/sparc64/strncpy.S
sysdeps/sparc/sparc64/strpbrk.S
sysdeps/sparc/sparc64/strspn.S
sysdeps/x86_64/memcpy.S
sysdeps/x86_64/memset.S
sysdeps/x86_64/strcat.S
sysdeps/x86_64/strchr.S
sysdeps/x86_64/strcmp.S
sysdeps/x86_64/strcpy.S
sysdeps/x86_64/strcspn.S
sysdeps/x86_64/strlen.S
sysdeps/x86_64/strspn.S

index 9d6556bdc8bab08cba23a61f923bbd3addbdac67..993bac342881b19aa04cc3e2137a0b430d0f7fde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,167 @@
+2003-04-29  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
+
+       * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
+       * signal/sigaddset.c: Add libc_hidden_def.
+       * signal/sigdelset.c: Likewise.
+
+2003-04-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
+       to the end of the file.
+
+       * configure.in: Change __oline__ to $LINENO.
+       (HAVE_BUILTIN_REDIRECTION): New check.
+       * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
+       * include/libc-symbols.h (libc_hidden_builtin_proto,
+       libc_hidden_builtin_def, libc_hidden_builtin_weak,
+       libc_hidden_builtin_ver): Define.
+       * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
+       strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
+       strspn, strstr): Add libc_hidden_builtin_proto.
+       * intl/plural.y: Include string.h.
+       * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
+       libc_hidden_builtin_def.
+       * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
+       * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
+       * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
+       * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
+       * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
+       * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
+       * sysdeps/alpha/memchr.S (memchr): Likewise.
+       * sysdeps/alpha/memset.S (memset): Likewise.
+       * sysdeps/alpha/strcat.S (strcat): Likewise.
+       * sysdeps/alpha/strchr.S (strchr): Likewise.
+       * sysdeps/alpha/strcmp.S (strcmp): Likewise.
+       * sysdeps/alpha/strcpy.S (strcpy): Likewise.
+       * sysdeps/alpha/strlen.S (strlen): Likewise.
+       * sysdeps/alpha/strncmp.S (strncmp): Likewise.
+       * sysdeps/alpha/strncpy.S (strncpy): Likewise.
+       * sysdeps/alpha/strrchr.S (strrchr): Likewise.
+       * sysdeps/arm/memset.S (memset): Likewise.
+       * sysdeps/arm/strlen.S (strlen): Likewise.
+       * sysdeps/generic/memchr.c (memchr): Likewise.
+       * sysdeps/generic/memcpy.c (memcpy): Likewise.
+       * sysdeps/generic/memmove.c (memmove): Likewise.
+       * sysdeps/generic/memset.c (memset): Likewise.
+       * sysdeps/generic/strcat.c (strcat): Likewise.
+       * sysdeps/generic/strchr.c (strchr): Likewise.
+       * sysdeps/generic/strcmp.c (strcmp): Likewise.
+       * sysdeps/generic/strcpy.c (strcpy): Likewise.
+       * sysdeps/generic/strcspn.c (strcspn): Likewise.
+       * sysdeps/generic/strlen.c (strlen): Likewise.
+       * sysdeps/generic/strncmp.c (strncmp): Likewise.
+       * sysdeps/generic/strncpy.c (strncpy): Likewise.
+       * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
+       * sysdeps/generic/strrchr.c (strrchr): Likewise.
+       * sysdeps/generic/strspn.c (strspn): Likewise.
+       * sysdeps/generic/strstr.c (strstr): Likewise.
+       * sysdeps/i386/i486/strcat.S (strcat): Likewise.
+       * sysdeps/i386/i486/strlen.S (strlen): Likewise.
+       * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
+       * sysdeps/i386/i586/memset.S (memset): Likewise.
+       * sysdeps/i386/i586/strchr.S (strchr): Likewise.
+       * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
+       * sysdeps/i386/i586/strlen.S (strlen): Likewise.
+       * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
+       * sysdeps/i386/i686/memmove.S (memmove): Likewise.
+       * sysdeps/i386/i686/memset.S (memset): Likewise.
+       * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
+       * sysdeps/i386/memchr.S (memchr): Likewise.
+       * sysdeps/i386/memset.c (memset): Likewise.
+       * sysdeps/i386/strchr.S (strchr): Likewise.
+       * sysdeps/i386/strcspn.S (strcspn): Likewise.
+       * sysdeps/i386/strlen.c (strlen): Likewise.
+       * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
+       * sysdeps/i386/strrchr.S (strrchr): Likewise.
+       * sysdeps/i386/strspn.S (strspn): Likewise.
+       * sysdeps/ia64/memchr.S (memchr): Likewise.
+       * sysdeps/ia64/memcpy.S (memcpy): Likewise.
+       * sysdeps/ia64/memmove.S (memmove): Likewise.
+       * sysdeps/ia64/memset.S (memset): Likewise.
+       * sysdeps/ia64/strcat.S (strcat): Likewise.
+       * sysdeps/ia64/strchr.S (strchr): Likewise.
+       * sysdeps/ia64/strcmp.S (strcmp): Likewise.
+       * sysdeps/ia64/strcpy.S (strcpy): Likewise.
+       * sysdeps/ia64/strlen.S (strlen): Likewise.
+       * sysdeps/ia64/strncmp.S (strncmp): Likewise.
+       * sysdeps/ia64/strncpy.S (strncpy): Likewise.
+       * sysdeps/m68k/memchr.S (memchr): Likewise.
+       * sysdeps/m68k/strchr.S (strchr): Likewise.
+       * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
+       * sysdeps/mips/mips64/memset.S (memset): Likewise.
+       * sysdeps/mips/memcpy.S (memcpy): Likewise.
+       * sysdeps/mips/memset.S (memset): Likewise.
+       * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
+       * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
+       * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
+       * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
+       * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
+       * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
+       * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
+       * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
+       * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
+       * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
+       * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
+       * sysdeps/powerpc/strcat.c (strcat): Likewise.
+       * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
+       * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
+       * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
+       * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
+       * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
+       * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
+       * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
+       * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
+       * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
+       * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
+       * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
+       * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
+       * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
+       * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
+       * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
+       * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
+       * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
+       * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
+       * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
+       * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
+       * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
+       * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
+       * sysdeps/sh/memcpy.S (memcpy): Likewise.
+       * sysdeps/sh/memset.S (memset): Likewise.
+       * sysdeps/sh/strlen.S (strlen): Likewise.
+       * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
+       * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
+       * sysdeps/s390/s390-32/memset.S (memset): Likewise.
+       * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
+       * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
+       * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
+       * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
+       * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
+       * sysdeps/s390/s390-64/memset.S (memset): Likewise.
+       * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
+       * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
+       * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
+       * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
+       * sysdeps/x86_64/memset.S (memset): Likewise.
+       * sysdeps/x86_64/strcat.S (strcat): Likewise.
+       * sysdeps/x86_64/strchr.S (strchr): Likewise.
+       * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
+       * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
+       * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
+       * sysdeps/x86_64/strlen.S (strlen): Likewise.
+       * sysdeps/x86_64/strspn.S (strspn): Likewise.
+       * string/string-inlines.c: Move...
+       * sysdeps/generic/string-inlines.c: ...here.
+       (__memcpy_g, __strchr_g): Remove.
+       (__NO_INLINE__): Define before including <string.h>,
+       undefine after.  Include bits/string.h and bits/string2.h.
+       * sysdeps/i386/i486/string-inlines.c: New file.
+       * sysdeps/i386/string-inlines.c: New file.
+       * sysdeps/i386/i486/Versions: Remove.
+       All GLIBC_2.1.1 symbols moved...
+       * sysdeps/i386/Versions (libc): ...here.
+
 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/i386/fpu/Makefile: New file.
index d01b90a597f718a583f497ad15320e65fb1ff3d2..cd132cef592aa16cc8edfce5fd481e9326a131b5 100644 (file)
 /* Define if the compiler supports __builtin_memset.  */
 #undef HAVE_BUILTIN_MEMSET
 
+/* Define if __asm () on built-in function's prototype causes redirection of
+   the builtin.  */
+#undef HAVE_BUILTIN_REDIRECTION
+
 /* Define if the __thread keyword is supported.  */
 #undef HAVE___THREAD
 
index 7847773884cbb27619363df762c5d105f9f263e3..c223cad63fd59ffd17ed4ed549fec3d06a76ee01 100755 (executable)
--- a/configure
+++ b/configure
@@ -5534,7 +5534,7 @@ if test "${libc_cv_asm_underscores+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 5537 "configure"
+#line $LINENO "configure"
 #include "confdefs.h"
 void underscore_test(void) {
 return; }
@@ -5860,7 +5860,7 @@ if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat > conftest.c <<EOF
-#line 5863 "configure"
+#line $LINENO "configure"
 static char *__EH_FRAME_BEGIN__;
 _start ()
 {
@@ -5956,7 +5956,7 @@ if test "${libc_cv_gcc_builtin_expect+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat > conftest.c <<EOF
-#line 5959 "configure"
+#line $LINENO "configure"
 int foo (int a)
 {
   a = __builtin_expect (a, 10);
@@ -6018,13 +6018,47 @@ _ACEOF
 
 fi
 
+echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
+echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6
+if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat > conftest.c <<\EOF
+extern char *strstr (const char *, const char *) __asm ("my_strstr");
+char *foo (const char *a, const char *b)
+{
+  return __builtin_strstr (a, b);
+}
+EOF
+if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; };
+then
+  libc_cv_gcc_builtin_redirection=yes
+else
+  libc_cv_gcc_builtin_redirection=no
+fi
+rm -f conftest*
+fi
+echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
+echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6
+if test "$libc_cv_gcc_builtin_redirection" = yes ; then
+  cat >>confdefs.h <<\_ACEOF
+#define HAVE_BUILTIN_REDIRECTION 1
+_ACEOF
+
+fi
+
 echo "$as_me:$LINENO: checking for local label subtraction" >&5
 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat > conftest.c <<EOF
-#line 6027 "configure"
+#line $LINENO "configure"
 int foo (int a)
 {
   static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
index 300bba65bcd0a84d275a049709504eee8cfac665..1a21191940e0bffb7520b267f3c1d6a58f9f1129 100644 (file)
@@ -1384,8 +1384,8 @@ dnl AC_CHECK_ASM_UNDERSCORE([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
 AC_DEFUN(AC_CHECK_ASM_UNDERSCORE,
 [cat > conftest.$ac_ext <<EOF
 dnl This sometimes fails to find confdefs.h, for some reason.
-dnl [#]line __oline__ "[$]0"
-[#]line __oline__ "configure"
+dnl [#]line $LINENO "[$]0"
+[#]line $LINENO "configure"
 #include "confdefs.h"
 void underscore_test(void) {
 return; }
@@ -1587,7 +1587,7 @@ fi
 
 AC_CACHE_CHECK(for DWARF2 unwind info support, libc_cv_gcc_dwarf2_unwind_info,
 [cat > conftest.c <<EOF
-#line __oline__ "configure"
+#line $LINENO "configure"
 static char *__EH_FRAME_BEGIN__;
 _start ()
 {
@@ -1653,7 +1653,7 @@ esac
 dnl Check whether compiler understands __builtin_expect.
 AC_CACHE_CHECK(for __builtin_expect, libc_cv_gcc_builtin_expect,
 [cat > conftest.c <<EOF
-#line __oline__ "configure"
+#line $LINENO "configure"
 int foo (int a)
 {
   a = __builtin_expect (a, 10);
@@ -1691,11 +1691,31 @@ if test "$libc_cv_gcc_builtin_memset" = yes ; then
   AC_DEFINE(HAVE_BUILTIN_MEMSET)
 fi
 
+AC_CACHE_CHECK(for redirection of built-in functions, libc_cv_gcc_builtin_redirection, [dnl
+cat > conftest.c <<\EOF
+extern char *strstr (const char *, const char *) __asm ("my_strstr");
+char *foo (const char *a, const char *b)
+{
+  return __builtin_strstr (a, b);
+}
+EOF
+dnl
+if AC_TRY_COMMAND([${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null]);
+then
+  libc_cv_gcc_builtin_redirection=yes
+else
+  libc_cv_gcc_builtin_redirection=no
+fi
+rm -f conftest* ])
+if test "$libc_cv_gcc_builtin_redirection" = yes ; then
+  AC_DEFINE(HAVE_BUILTIN_REDIRECTION)
+fi
+
 dnl Check whether the compiler supports subtraction of local labels.
 AC_CACHE_CHECK(for local label subtraction, libc_cv_gcc_subtract_local_labels,
 [cat > conftest.c <<EOF
 changequote(,)dnl
-#line __oline__ "configure"
+#line $LINENO "configure"
 int foo (int a)
 {
   static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
index ecea00687ef82a7a79d9b0118509dfec5159471c..c4bd02835edafea08700a6a81ae3a82bf3cb87eb 100644 (file)
 # define libm_hidden_data_ver(local, name)
 #endif
 
+#ifdef HAVE_BUILTIN_REDIRECTION
+# define libc_hidden_builtin_proto(name, attrs...) libc_hidden_proto (name, ##attrs)
+# define libc_hidden_builtin_def(name) libc_hidden_def (name)
+# define libc_hidden_builtin_weak(name) libc_hidden_weak (name)
+# define libc_hidden_builtin_ver(local, name) libc_hidden_ver (local, name)
+#else
+# define libc_hidden_builtin_proto(name, attrs...)
+# define libc_hidden_builtin_def(name)
+# define libc_hidden_builtin_weak(name)
+# define libc_hidden_builtin_ver(local, name)
+#endif
+
 #endif /* libc-symbols.h */
index b03b1a3ec4eb2b5b582a1c9a83b7164cf3c52989..104ea8f83ae46a383308783095bb519138b64402 100644 (file)
@@ -6,6 +6,8 @@
 
 libc_hidden_proto (sigemptyset)
 libc_hidden_proto (sigfillset)
+libc_hidden_proto (sigaddset)
+libc_hidden_proto (sigdelset)
 libc_hidden_proto (sigismember)
 libc_hidden_proto (__sigpause)
 libc_hidden_proto (raise)
index 6d9e4d3561eeb8d15f07c01cc0b57c27f4b0f62e..041590b1db23411bbf0ccf814f8b0027897658f7 100644 (file)
@@ -79,6 +79,23 @@ libc_hidden_proto (__strverscmp)
 libc_hidden_proto (basename)
 libc_hidden_proto (strcoll)
 
+libc_hidden_builtin_proto (memchr)
+libc_hidden_builtin_proto (memcpy)
+libc_hidden_builtin_proto (memmove)
+libc_hidden_builtin_proto (memset)
+libc_hidden_builtin_proto (strcat)
+libc_hidden_builtin_proto (strchr)
+libc_hidden_builtin_proto (strcmp)
+libc_hidden_builtin_proto (strcpy)
+libc_hidden_builtin_proto (strcspn)
+libc_hidden_builtin_proto (strlen)
+libc_hidden_builtin_proto (strncmp)
+libc_hidden_builtin_proto (strncpy)
+libc_hidden_builtin_proto (strpbrk)
+libc_hidden_builtin_proto (strrchr)
+libc_hidden_builtin_proto (strspn)
+libc_hidden_builtin_proto (strstr)
+
 # ifndef _ISOMAC
 #  ifndef index
 #   define index(s, c) (strchr ((s), (c)))
index 8425fc3e01272463bf18e82f1f50359d8e7b5dd0..69c5597bbd54cb3c681d2d93057d0338dd409f5d 100644 (file)
@@ -51,6 +51,7 @@
 
 #include <stddef.h>
 #include <stdlib.h>
+#include <string.h>
 #include "plural-exp.h"
 
 /* The main function generated by the parser is called __gettextparse,
index 045427b828ff2d26a826345c31895fe7965e1e2e..a1ffb9e1ca09e43e5c25c765cd0eea662baf8b0b 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <stddef.h>
 #include <stdlib.h>
+#include <string.h>
 #include "plural-exp.h"
 
 /* The main function generated by the parser is called __gettextparse,
index be2968dba5e05a35ef338bee2e2886caf899a4b7..d8344f9b1eedcea35504a39c263dc1e548164357 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@ sigaddset (set, signo)
 
   return __sigaddset (set, signo);
 }
+libc_hidden_def (sigaddset)
index 7e203318868c6e2c91196df7d23d4d94a60afa58..177e9ee4760226f2719fe2fa6446a40c7bcea2ec 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@ sigdelset (set, signo)
 
   return __sigdelset (set, signo);
 }
+libc_hidden_def (sigdelset)
index 05e00dd9b5ea25e023ce9a96c8805b6d0325cb64..88e91fa98826689eeeb345cb909a86cad1cb60a7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David Mosberger (davidm@cs.arizona.edu).
    EV6 optimized by Rick Gorton <rick.gorton@alpha-processor.com>.
@@ -190,3 +190,4 @@ weak_alias (__memchr, memchr)
 #if !__BOUNDED_POINTERS__
 weak_alias (__memchr, __ubp_memchr)
 #endif
+libc_hidden_builtin_def (memchr)
index 5e59a04ff1d1c40ab9c5123961814c7f60e2356a..d16bc03a02642441c7131e4920ceab85b5855c71 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    EV6 optimized by Rick Gorton <rick.gorton@alpha-processor.com>.
 
@@ -252,3 +252,4 @@ $nomoredata:
        nop                             # E :
 
 END(memcpy)
+libc_hidden_builtin_def (memcpy)
index e700d3dc9f182d4f5d174a74d2969924dca6a006..3b3c4ba06137fd59781ca49f5913ee3c96a79315 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    Contributed by Richard Henderson (rth@tamu.edu)
    EV6 optimized by Rick Gorton <rick.gorton@alpha-processor.com>.
    This file is part of the GNU C Library.
@@ -221,3 +221,4 @@ $end:
        ret $31,($26),1         # L0 :
 
        END(memset)
+libc_hidden_builtin_def (memset)
index 3bd4789f74f7276826e148c4ad6d31bddf9dfab9..ae7c48808a133579f179f2879d5228fcf863f3db 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    Contributed by Richard Henderson <rth@tamu.edu>, 1996.
    EV67 optimized by Rick Gorton <rick.gorton@alpha-processor.com>.
    This file is part of the GNU C Library.
@@ -59,3 +59,4 @@ $found:       cttz    $2, $3          # U0 :
        jmp     $31, __stxcpy   # L0 :
 
        END(strcat)
+libc_hidden_builtin_def (strcat)
index 9c1e88b8d3a30bc150899e856e23a462d862e0a5..101c7d489a565269faa5d152373337758e167b5b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    Contributed by Richard Henderson <rth@tamu.edu>, 1996.
    EV67 optimized by Rick Gorton <rick.gorton@alpha-processor.com>.
    This file is part of the GNU C Library.
@@ -98,3 +98,4 @@ $found:
        END(strchr)
 
 weak_alias (strchr, index)
+libc_hidden_builtin_def (strchr)
index bbe7cfc24d5aa8d2011a0e1f2f07542a321e5f7d..b83eacceafd168d0122b4b7b3f3e623064f59c33 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    Contributed by David Mosberger (davidm@cs.arizona.edu).
    EV67 optimized by Rick Gorton <rick.gorton@alpha-processor.com>.
    This file is part of the GNU C Library.
@@ -58,3 +58,4 @@ $found:
        ret     $31, ($26)      # L0 :
 
        END(strlen)
+libc_hidden_builtin_def (strlen)
index cb51d2140c7ca6ab0b6919f17aa4fc8e2f96ffc0..c46a3df4f8093b6c8ea34820bd6fa306e1911519 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    EV67 optimized by Rick Gorton <rick.gorton@alpha-processor.com>.
    This file is part of the GNU C Library.
 
@@ -114,3 +114,4 @@ $eos:
 END(strrchr)
 
 weak_alias (strrchr, rindex)
+libc_hidden_builtin_def (strrchr)
index b50b69a2cd8394e59d4ed96b61af9f637d3bde80..5d713d53ba7994f7ef07026a82b0f6e141e4f3b5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David Mosberger (davidm@cs.arizona.edu).
 
@@ -173,3 +173,4 @@ weak_alias (__memchr, memchr)
 #if !__BOUNDED_POINTERS__
 weak_alias (__memchr, __ubp_memchr)
 #endif
+libc_hidden_builtin_def (memchr)
index d621aeed19ec3f7a908caceab5d255ea1a8352b2..e34af2b314060fe2b57e1e73e42c1ff87c9625bc 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2003 Free Software Foundation, Inc.
    Contributed by Richard Henderson (rth@tamu.edu)
    This file is part of the GNU C Library.
 
@@ -134,3 +134,4 @@ $oneq:
 $done: ret
 
        END(memset)
+libc_hidden_builtin_def (memset)
index d385c838751c0e728cda3b465b88b992fb0d63ec..d8ef8f15462e6b4bcb273370ea288581e26a9996 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson <rth@tamu.edu>, 1996.
 
@@ -69,3 +69,4 @@ $found:       negq    t1, t2          # clear all but least set bit
        jmp     $31, __stxcpy
 
        END(strcat)
+libc_hidden_builtin_def (strcat)
index 5643df4dfe71b274191b5e70f8e80b048d810f91..e0b17415ac7c9d57b68d3d637fdd0074aaf5c9e7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@tamu.edu)
 
@@ -92,3 +92,4 @@ $retnull:
        END(strchr)
 
 weak_alias (strchr, index)
+libc_hidden_builtin_def (strchr)
index ee87b4fb37ede2873cb220fdf39826f866090f8a..9196be2ce3b442ba4f65859ae25dd5084d403741 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2003 Free Software Foundation, Inc.
    Contributed by Richard Henderson (rth@tamu.edu)
    This file is part of the GNU C Library.
 
@@ -192,3 +192,4 @@ $done:
        ret                     # e1    :
 
        END(strcmp)
+libc_hidden_builtin_def (strcmp)
index 11dc8e1982b29ba8888df1cfeeeb85187a5c31c7..02bfe524007954b27501becf77617a95b2da7357 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson <rth@tamu.edu>, 1996.
 
@@ -39,3 +39,4 @@ ENTRY(strcpy)
        jmp     $31, __stxcpy   # do the copy
 
        END(strcpy)
+libc_hidden_builtin_def (strcpy)
index 66b17314a801db184a49e4fa37e039ac98fc9a2b..2560b973c746e6668a108515fe87dd0ae2adac2d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2003 Free Software Foundation, Inc.
    Contributed by David Mosberger (davidm@cs.arizona.edu).
    This file is part of the GNU C Library.
 
@@ -74,3 +74,4 @@ $found:       negq    t1, t2          # clear all but least set bit
        ret
 
        END(strlen)
+libc_hidden_builtin_def (strlen)
index f0dcfb9409dd6361e3fea96fc76fec1ffb72608d..e2b4ebf857f856b67e6a76f362966656dfa386e5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2003 Free Software Foundation, Inc.
    Contributed by Richard Henderson (rth@tamu.edu)
    This file is part of the GNU C Library.
 
@@ -221,3 +221,4 @@ $zerolength:
        ret
 
        END(strncmp)
+libc_hidden_builtin_def (strncmp)
index 575c907d7e2c1be4f9df7979568ec78cd7001ed4..5d3e72e280067c0ef3e339088fcad0059f46cfe5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2003 Free Software Foundation, Inc.
    Contributed by Richard Henderson (rth@tamu.edu)
    This file is part of the GNU C Library.
 
@@ -85,3 +85,4 @@ $zerocount:
        ret                     # .. e1 :
 
        END(strncpy)
+libc_hidden_builtin_def (strncpy)
index e5e847f2bfa075a0617e2c26af0a77ae3a8f979b..248181f702dafeb392e0e479359af2dd1fd22457 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -108,3 +108,4 @@ $retnull:
        END(strrchr)
 
 weak_alias (strrchr, rindex)
+libc_hidden_builtin_def (strrchr)
index 6ba84869718c7820352a7ce354f308fd22de20fb..0b624139eb60e911d1eac196cf3b5196b589eb75 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Philip Blundell <philb@gnu.org>
 
@@ -65,3 +65,4 @@ ENTRY(memset)
        strb    a2, [a4], $1
        RETINSTR(mov,pc,lr)
 END(memset)
+libc_hidden_builtin_def (memset)
index 7ebfe63e9458d2a93313b2c4e73b0a1f193e6188..f29528ada2e834e8970d56d9824dd05738f00525 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Code contributed by Matthew Wilcox <willy@odie.barnet.ac.uk>
 
@@ -61,3 +61,4 @@ Llastword:                            @ drop through to here once we find a
        addne   r0, r0, $1              @  must be zero)
        RETINSTR(mov,pc,lr)
 END(strlen)
+libc_hidden_builtin_def (strlen)
index f233e90009cc77e729b79e206e2914e40bfd9ec7..f3098c775af12df57e49047420bf354899ecaa81 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,93,96,97,99,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,96,97,99,2000,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
    with help from Dan Sahlin (dan@sics.se) and
@@ -212,3 +212,4 @@ __memchr (s, c_in, n)
 #ifdef weak_alias
 weak_alias (__memchr, BP_SYM (memchr))
 #endif
+libc_hidden_builtin_def (memchr)
index 76d3da9b3a2a87651de6580341fa307cad3f5a0e..e167e85d7b31bda4e85ec7836631da2a15acf860 100644 (file)
@@ -1,6 +1,6 @@
 /* Copy memory to memory until the specified number of bytes
    has been copied.  Overlap is NOT handled correctly.
-   Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
@@ -62,3 +62,4 @@ memcpy (dstpp, srcpp, len)
 
   return dstpp;
 }
+libc_hidden_builtin_def (memcpy)
index ef39142a5a3150f2d393aec318d2ccf27e119943..16671f7bb50352288259d45803a8b9a49a597698 100644 (file)
@@ -1,6 +1,6 @@
 /* Copy memory to memory until the specified number of bytes
    has been copied.  Overlap is handled correctly.
-   Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1995, 1996, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
@@ -107,3 +107,6 @@ memmove (a1, a2, len)
 
   RETURN (dest);
 }
+#ifndef memmove
+libc_hidden_builtin_def (memmove)
+#endif
index ac1d439d2f40f2af6036f9ffabd121551e26b583..592b11e4351ed2c8a2f2417bd8df07574333dda3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -88,3 +88,4 @@ memset (dstpp, c, len)
 
   return dstpp;
 }
+libc_hidden_builtin_def (memset)
index 82f1fb849f332d12a64808dee73f89bddabfcbc2..eef22add3637e4fa0bd987d8e9132787e9ba85c6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -49,3 +49,4 @@ strcat (dest, src)
 
   return dest;
 }
+libc_hidden_builtin_def (strcat)
index 9c5671b8c686722a061dcc141a25e1c76b43d08a..c8b7969e85f184e392bde41e488bb322d54f367e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,93,94,95,96,97,99,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,94,95,96,97,99,2000,03 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
    with help from Dan Sahlin (dan@sics.se) and
@@ -187,3 +187,4 @@ strchr (s, c_in)
 #undef index
 weak_alias (strchr, index)
 #endif
+libc_hidden_builtin_def (strchr)
index 1a45a48bcccf7173bc230106963b817f8ff03420..bd53c05c6e21130b091bd75c3fc93872dd71fe4b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -44,3 +44,4 @@ strcmp (p1, p2)
 
   return c1 - c2;
 }
+libc_hidden_builtin_def (strcmp)
index f50cf951209e3d5a593ae15c07a9975d73cbc054..c736a60762b72e605afdc3bb9f18d0de7cb4e4fb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -47,3 +47,4 @@ strcpy (dest, src)
 
   return dest;
 }
+libc_hidden_builtin_def (strcpy)
index 0d1e93bbf38708a776fd10ead960a8c72d10a817..f359d578f7ca40b031562fbef36b4545c0321f52 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1994, 1996, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -48,3 +48,4 @@ strcspn (s, reject)
 
   return count;
 }
+libc_hidden_builtin_def (strcspn)
similarity index 75%
rename from string/string-inlines.c
rename to sysdeps/generic/string-inlines.c
index 7c9776c419cac1495866ee0153cf9a436d638659..89a5baab5dd33c4750dacd5807f0edc6b75b1cf1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #define __USE_STRING_INLINES
 #define _FORCE_INLINES
 #define __STRING_INLINE /* empty */
-
-/* This is to avoid PLT entries for the x86 version.  */
-#define __memcpy_g __memcpy_g_internal
-#define __strchr_g __strchr_g_internal
+#define __NO_INLINE__
 
 #include <string.h>
+#undef index
+#undef rindex
 
-#ifdef __memcpy_c
-# undef __memcpy_g
-strong_alias (__memcpy_g_internal, __memcpy_g)
-# undef __strchr_g
-strong_alias (__strchr_g_internal, __strchr_g)
-#endif
+#undef __NO_INLINE__
+#include <bits/string.h>
+#include <bits/string2.h>
index 3dca47f6c027b5da7686ebbc0b92fe8f952c1bb8..9bc9db68f77cf2adfd9a495158d397e22be1f23f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1993, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Torbjorn Granlund (tege@sics.se),
    with help from Dan Sahlin (dan@sics.se);
@@ -150,3 +150,4 @@ strlen (str)
        }
     }
 }
+libc_hidden_builtin_def (strlen)
index 379964f1ea12b162a2d0e92c69ba0b5977f4fcdd..1adb2c0ebdfd9d5bd28f1c5d47c1b2ca40043a5b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -70,3 +70,4 @@ strncmp (s1, s2, n)
 
   return c1 - c2;
 }
+libc_hidden_builtin_def (strncmp)
index 4a0b1e5e95431a55eb723ef2c42697a5e7c5dda6..f32612e1cff0a5ca745be8058f8e4633bd8f398e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -84,3 +84,4 @@ strncpy (s1, s2, n)
 
   return s;
 }
+libc_hidden_builtin_def (strncpy)
index a55825a308940d39a736c725f8546f1ff5fdcdb0..620cfab7f9616ef45e7e059481f2f5232ae27e1e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1994, 1996, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -43,3 +43,4 @@ strpbrk (s, accept)
 
   return NULL;
 }
+libc_hidden_builtin_def (strpbrk)
index e0461145eed36c6ab82e44c98f6609f4dedd2afb..64118b87effd074daad1ed3e0387230a57b313f6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -47,3 +47,4 @@ strrchr (const char *s, int c)
 #undef rindex
 weak_alias (strrchr, rindex)
 #endif
+libc_hidden_builtin_def (strrchr)
index fd1c9bef03618c9bd52a2fcad9a5feea242e64f8..dc17ea8cbc0dbae935100db52b9f8971e7287bf1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -44,3 +44,4 @@ strspn (s, accept)
 
   return count;
 }
+libc_hidden_builtin_def (strspn)
index e7e14e498d0ede3926f478d2e860c74ab00c69d3..fce1f2a756b61c344e731ace35797437e3da4cd0 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the offset of one string within another.
-   Copyright (C) 1994, 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1994,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -120,3 +120,4 @@ foundneedle:
 ret0:
   return 0;
 }
+libc_hidden_builtin_def (strstr)
index 57951ebdf6e45f815fbc6bc8167b821d6b771116..b20d7cc02728651fc1d866bdaaa2d6ae040ee54e 100644 (file)
@@ -9,7 +9,14 @@ libc {
   }
   GLIBC_2.1.1 {
     # extern inline functions used by <bits/string.h>
-    __memcpy_c; __memset_cc; __memset_cg; __memset_gg; __strchr_c; __strchr_g;
-    __strchrnul_c; __strchrnul_g;
+    __memcpy_c; __memset_cc; __memset_cg; __memset_gg;
+    __memcpy_by2; __memcpy_by4; __memcpy_g; __mempcpy_by2; __mempcpy_by4;
+    __mempcpy_byn; __memset_ccn_by2; __memset_ccn_by4; __memset_gcn_by2;
+    __memset_gcn_by4; __stpcpy_g; __strcat_c; __strcat_g; __strchr_c;
+    __strchr_g; __strchrnul_c; __strchrnul_g; __strcmp_gg; __strcpy_g;
+    __strcspn_c1; __strcspn_cg; __strcspn_g; __strlen_g; __strncat_g;
+    __strncmp_g; __strncpy_by2; __strncpy_by4; __strncpy_byn; __strncpy_gg;
+    __strpbrk_cg; __strpbrk_g; __strrchr_c; __strrchr_g; __strspn_c1;
+    __strspn_cg; __strspn_g; __strstr_cg; __strstr_g;
   }
 }
index 342ed42318101693bbc8b3036e9be1cb32842da1..fae74d33b62820c68c69aff9bcf3919051884264 100644 (file)
@@ -43,8 +43,8 @@ fesetround (int round)
       unsigned int xcw;
 
       __asm__ ("stmxcsr %0" : "=m" (*&xcw));
-      cw &= ~0x6000;
-      cw |= round << 3;
+      xcw &= ~0x6000;
+      xcw |= round << 3;
       __asm__ ("ldmxcsr %0" : : "m" (*&xcw));
     }
 
index cee7b83bb4e4b16fd9898784e53d473b4732c2c8..e449571c0422def8046789cd67bc9eb14ed00650 100644 (file)
@@ -1,5 +1,5 @@
 /* Test exception in current environment.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
    02111-1307 USA.  */
 
 #include <fenv.h>
+#include <unistd.h>
+#include <dl-procinfo.h>
+#include <ldsodefs.h>
 
 int
 fetestexcept (int excepts)
 {
   int temp;
+  int xtemp = 0;
 
   /* Get current exceptions.  */
   __asm__ ("fnstsw %0" : "=a" (temp));
 
-  return temp & excepts & FE_ALL_EXCEPT;
+  /* If the CPU supports SSE we test the MXCSR as well.  */
+  if ((GL(dl_hwcap_mask) & HWCAP_I386_XMM) != 0)
+    __asm__ ("stmxcsr %0" : "=m" (*&xtemp));
+
+  return (temp | xtemp) & excepts & FE_ALL_EXCEPT;
 }
index a206e40c642e0436481171e8d60f81c672211008..7d8279fe1439064733463cc61c5c26d509157812 100644 (file)
@@ -1,6 +1,6 @@
 /* strcat(dest, src) -- Append SRC on the end of DEST.
    For Intel 80x86, x>=4.
-   Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1994,1995,1996,1997,2000,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
    Optimised a little by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
@@ -267,3 +267,4 @@ L(8):       /* GKM FIXME: check high bounds */
        LEAVE
        RET_PTR
 END (BP_SYM (strcat))
+libc_hidden_builtin_def (strcat)
diff --git a/sysdeps/i386/i486/string-inlines.c b/sysdeps/i386/i486/string-inlines.c
new file mode 100644 (file)
index 0000000..7136d2c
--- /dev/null
@@ -0,0 +1,65 @@
+/* Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+/*  <bits/string.h> and <bits/string2.h> declare some extern inline
+    functions.  These functions are declared additionally here if
+    inlining is not possible.  */
+
+#undef __USE_STRING_INLINES
+#define __USE_STRING_INLINES
+#define _FORCE_INLINES
+#define __STRING_INLINE /* empty */
+#define __NO_INLINE__
+
+/* This is to avoid PLT entries for the x86 version.  */
+#define __memcpy_g __memcpy_g_internal
+#define __strchr_g __strchr_g_internal
+
+#include <string.h>
+#undef index
+#undef rindex
+
+#undef __NO_INLINE__
+#include <bits/string.h>
+#include <bits/string2.h>
+
+void *
+(__memcpy_c) (void *d, const void *s, size_t n)
+{
+  return memcpy (d, s, n);
+}
+
+void *
+__memset_cc (void *s, unsigned long int pattern, size_t n)
+{
+  return memset (s, pattern & 0xff, n);
+}
+strong_alias (__memset_cc, __memset_cg)
+
+void *
+__memset_gg (void *s, char c, size_t n)
+{
+  return memset (s, c, n);
+}
+
+#ifdef __memcpy_c
+# undef __memcpy_g
+strong_alias (__memcpy_g_internal, __memcpy_g)
+# undef __strchr_g
+strong_alias (__strchr_g_internal, __strchr_g)
+#endif
index eed0c764990f909d53e7725d8d8c3530f495ec1a..7557b2d2176470d075df89802a9393f6d1ca3b4a 100644 (file)
@@ -1,6 +1,6 @@
 /* strlen(str) -- determine the length of the string STR.
    Optimized for Intel 80x86, x>=4.
-   Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1991-1997, 2000, 2003 Free Software Foundation, Inc.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>.
    This file is part of the GNU C Library.
 
@@ -136,3 +136,4 @@ L(2):       CHECK_BOUNDS_HIGH (%eax, STR(%esp), jb)
        LEAVE
        ret
 END (BP_SYM (strlen))
+libc_hidden_builtin_def (strlen)
index 0501d59fac9338bc9f652109e3f56c3bd9d1d6d2..766d4796020e3f263d3c7e94f966cae69e273851 100644 (file)
@@ -1,5 +1,5 @@
 /* Highly optimized version for i586.
-   Copyright (C) 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -116,3 +116,4 @@ L(1):       rep; movsb
        LEAVE
        RET_PTR
 END (BP_SYM (memcpy))
+libc_hidden_builtin_def (memcpy)
index 1ff854fa23ca541987f6b9feb6dd0e29379830af..0b59849f9eed9264261bc61ac8ea5905c9ded7b2 100644 (file)
@@ -1,6 +1,6 @@
 /* memset/bzero -- set memory area to CH/0
    Highly optimized version for ix86, x>=5.
-   Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund, <tege@matematik.su.se>
 
@@ -114,3 +114,4 @@ L(2):       shrl    $2, %ecx        /* convert byte count to longword count */
        RET_PTR
 #endif
 END (BP_SYM (memset))
+libc_hidden_builtin_def (memset)
index 02baf1cf50a6e63812d5d8cbb8a2a012f43aaf64..9df504d335ccd226b3ee4d98eaf4615964901536 100644 (file)
@@ -1,6 +1,6 @@
 /* Find character CH in a NUL terminated string.
    Highly optimized version for ix85, x>=5.
-   Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
 
@@ -339,3 +339,4 @@ END (BP_SYM (strchr))
 
 #undef index
 weak_alias (BP_SYM (strchr), BP_SYM (index))
+libc_hidden_builtin_def (strchr)
index fcfeadbb6a1133a967cb8a849c657b1d125f2117..f7c1986b4ba85d68ba21fabc8d5e64e818477b46 100644 (file)
@@ -1,5 +1,5 @@
 /* strcpy/stpcpy implementation for i586.
-   Copyright (C) 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -159,3 +159,6 @@ L(end2):
        LEAVE
        RET_PTR
 END (BP_SYM (STRCPY))
+#ifndef USE_AS_STPCPY
+libc_hidden_builtin_def (strcpy)
+#endif
index 34151305cfed9d225a9c00af353b748982906f39..9ef22b0c7829f682b50ad69ec1a5e8cb8107c698 100644 (file)
@@ -1,6 +1,6 @@
 /* strlen -- Compute length of NUL terminated string.
    Highly optimized version for ix86, x>=5.
-   Copyright (C) 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1995,1996,1997,2000,2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
 
@@ -186,3 +186,4 @@ L(2):       CHECK_BOUNDS_HIGH (%eax, STR(%esp), jb)
        LEAVE
        ret
 END (BP_SYM (strlen))
+libc_hidden_builtin_def (strlen)
index b2a78973e29f530d60fb2c20efdfe725986595b9..865967c5c87839cd935ea1e88cc88b42ac27fb86 100644 (file)
@@ -1,7 +1,7 @@
 /* Copy memory block and return pointer to beginning of destination block
    For Intel 80x86, x>=6.
    This file is part of the GNU C Library.
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -59,3 +59,4 @@ ENTRY (BP_SYM (memcpy))
        LEAVE
        RET_PTR
 END (BP_SYM (memcpy))
+libc_hidden_builtin_def (memcpy)
index 76fda405c136167c031e5089914f9bba51221aa7..421b4effdae33915bff79a3aea17ec1cae1ae995 100644 (file)
@@ -92,3 +92,4 @@ ENTRY (BP_SYM (memmove))
        LEAVE
        RET_PTR
 END (BP_SYM (memmove))
+libc_hidden_builtin_def (memmove)
index be4db96ea35de5bb66be3ef04c3ad27b92d52039..4ddcb39731c1caa974c99fc59916256210a8dc41 100644 (file)
@@ -1,6 +1,6 @@
 /* memset/bzero -- set memory area to CH/0
    Highly optimized version for ix86, x>=6.
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
@@ -93,3 +93,4 @@ ENTRY (BP_SYM (memset))
        RET_PTR
 #endif
 END (BP_SYM (memset))
+libc_hidden_builtin_def (memset)
index 760d9d8a994d8b2a02ea60dd3c14887ceefa6790..8601c1ca0378af6860c524d770284ce36abd7a19 100644 (file)
@@ -1,5 +1,5 @@
 /* Highly optimized version for ix86, x>=6.
-   Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
@@ -69,3 +69,4 @@ L(chk):       CHECK_BOUNDS_HIGH (%ecx, STR1(%esp), jb)
        LEAVE
        ret
 END (BP_SYM (strcmp))
+libc_hidden_builtin_def (strcmp)
index 9f771982ee0e27099bbfe3b22a4c0942d0acc847..3cfb3d666f88674e2b4e3466dc9913edef0fb779 100644 (file)
@@ -1,7 +1,7 @@
 /* memchr (str, chr, len) -- Return pointer to first occurrence of CHR in STR less
    than LEN.
    For Intel 80x86, x>=3.
-   Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1994-1998, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>
    Optimised a little by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
@@ -330,3 +330,4 @@ weak_alias (BP_SYM (__memchr), BP_SYM (memchr))
 #if !__BOUNDED_POINTERS__
 weak_alias (__memchr, __ubp_memchr)
 #endif
+libc_hidden_builtin_def (memchr)
index 1bbed73ef755e83f3f7d286cf95554d0bc819386..6a7fff87470e8c0eafc402ded07b00208519dbd3 100644 (file)
@@ -1,6 +1,6 @@
 /* Set a block of memory to some byte value.
    For Intel 80x86, x>=3.
-   Copyright (C) 1991, 1992, 1993, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1991,1992,1993,1997,1998,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
@@ -79,6 +79,7 @@ memset (void *dstpp, int c, size_t len)
 
   return dstpp;
 }
+libc_hidden_builtin_def (memset)
 
 #else
 #include <sysdeps/generic/memset.c>
index f6a6de19a86d3f93f6047e18c0323c05b8e2b911..f5cee2f872ac9064986b34e60dbc48ed25862dd1 100644 (file)
@@ -1,6 +1,6 @@
 /* strchr (str, ch) -- Return pointer to first occurrence of CH in STR.
    For Intel 80x86, x>=3.
-   Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1994-1997,1999,2000,2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>
    Some optimisations by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
@@ -289,3 +289,4 @@ L(6):
 END (BP_SYM (strchr))
 
 weak_alias (BP_SYM (strchr), BP_SYM (index))
+libc_hidden_builtin_def (strchr)
index c5f3d52dd67ead8f4ddd52efbb107f7dcb18c24c..dc3a176bf1eb2472a543bc07330fe1727b2ada89 100644 (file)
@@ -1,7 +1,7 @@
 /* strcspn (str, ss) -- Return the length of the initial segment of STR
                        which contains no characters from SS.
    For Intel 80x86, x>=3.
-   Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1994,1995,1996,1997,2000,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>
    Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
@@ -179,3 +179,4 @@ L(4):       addl $256, %esp         /* remove stopset */
        LEAVE
        ret
 END (BP_SYM (strcspn))
+libc_hidden_builtin_def (strcspn)
diff --git a/sysdeps/i386/string-inlines.c b/sysdeps/i386/string-inlines.c
new file mode 100644 (file)
index 0000000..72a04b7
--- /dev/null
@@ -0,0 +1,189 @@
+/* Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+/*  <bits/string.h> and <bits/string2.h> declare some extern inline
+    functions.  These functions are declared additionally here if
+    inlining is not possible.  */
+
+#undef __USE_STRING_INLINES
+#define __USE_STRING_INLINES
+#define _FORCE_INLINES
+#define __STRING_INLINE /* empty */
+#define __NO_INLINE__
+
+#include <string.h>
+#undef index
+#undef rindex
+
+#undef __NO_INLINE__
+#include <bits/string.h>
+#include <bits/string2.h>
+
+/* Functions which are inlines in i486 but not i386.  */
+void *
+__memcpy_by2 (void *dest, const void *src, size_t n)
+{
+  return memcpy (dest, src, n);
+}
+strong_alias (__memcpy_by2, __memcpy_by4)
+strong_alias (__memcpy_by2, __memcpy_g)
+strong_alias (__memcpy_by2, __memcpy_g_internal)
+
+void *
+__memset_ccn_by2 (void *s, unsigned int c, size_t n)
+{
+  return memset (s, c & 0xff, n);
+}
+strong_alias (__memset_ccn_by2, __memset_ccn_by4)
+
+void *
+__memset_gcn_by2 (void *s, int c, size_t n)
+{
+  return memset (s, c, n);
+}
+strong_alias (__memset_gcn_by2, __memset_gcn_by4)
+
+size_t
+__strlen_g (const char *s)
+{
+  return strlen (s);
+}
+
+char *
+__strcpy_g (char *d, const char *s)
+{
+  return strcpy (d, s);
+}
+
+char *
+__mempcpy_by2 (char *d, const char *s, size_t n)
+{
+  return mempcpy (d, s, n);
+}
+strong_alias (__mempcpy_by2, __mempcpy_by4)
+strong_alias (__mempcpy_by2, __mempcpy_byn)
+
+char *
+__stpcpy_g (char *d, const char *s)
+{
+  return stpcpy (d, s);
+}
+
+char *
+__strncpy_by2 (char *d, const char s[], size_t srclen, size_t n)
+{
+  return strncpy (d, s, n);
+}
+strong_alias (__strncpy_by2, __strncpy_by4)
+strong_alias (__strncpy_by2, __strncpy_byn)
+
+char *
+__strncpy_gg (char *d, const char *s, size_t n)
+{
+  return strncpy (d, s, n);
+}
+
+char *
+__strcat_c (char *d, const char s[], size_t srclen)
+{
+  return strcat (d, s);
+}
+
+char *
+__strcat_g (char *d, const char *s)
+{
+  return strcat (d, s);
+}
+
+char *
+__strncat_g (char *d, const char s[], size_t n)
+{
+  return strncat (d, s, n);
+}
+
+int
+__strcmp_gg (const char *s1, const char *s2)
+{
+  return strcmp (s1, s2);
+}
+
+int
+__strncmp_g (const char *s1, const char *s2, size_t n)
+{
+  return strncmp (s1, s2, n);
+}
+
+char *
+__strrchr_c (const char *s, int c)
+{
+  return strrchr (s, c >> 8);
+}
+
+char *
+__strrchr_g (const char *s, int c)
+{
+  return strrchr (s, c);
+}
+
+size_t
+__strcspn_cg (const char *s, const char reject[], size_t reject_len)
+{
+  return strcspn (s, reject);
+}
+
+size_t
+__strcspn_g (const char *s, const char *reject)
+{
+  return strcspn (s, reject);
+}
+
+size_t
+__strspn_cg (const char *s, const char accept[], size_t accept_len)
+{
+  return strspn (s, accept);
+}
+
+size_t
+__strspn_g (const char *s, const char *accept)
+{
+  return strspn (s, accept);
+}
+
+char *
+__strpbrk_cg (const char *s, const char accept[], size_t accept_len)
+{
+  return strpbrk (s, accept);
+}
+
+char *
+__strpbrk_g (const char *s, const char *accept)
+{
+  return strpbrk (s, accept);
+}
+
+char *
+__strstr_cg (const char *haystack, const char needle[], size_t needle_len)
+{
+  return strstr (haystack, needle);
+}
+
+char *
+__strstr_g (const char *haystack, const char needle[])
+{
+  return strstr (haystack, needle);
+}
index b21414ee3255d5ac5db175e0ba4822c692751c5f..93bf1506ea7c0e7d0727b44ae1a5f9c49859218b 100644 (file)
@@ -1,5 +1,5 @@
 /* Determine the length of a string.  For Intel 80x86, x>=3.
-   Copyright (C) 1991, 1992, 1993, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991,1992,1993,1996,1997,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 
@@ -33,3 +33,4 @@ strlen (const char *str)
 
   return -2 - cnt;
 }
+libc_hidden_builtin_def (strlen)
index ddc3ceeca416988672a3c80ff50f0fe82550f416..66136c209e660cfb5b39af93eb299afb3f8219e4 100644 (file)
@@ -1,7 +1,7 @@
 /* strcspn (str, ss) -- Return the length of the initial segement of STR
                        which contains no characters from SS.
    For Intel 80x86, x>=3.
-   Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1994-1997, 2000, 2003 Free Software Foundation, Inc.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>
    Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
    This file is part of the GNU C Library.
@@ -188,3 +188,4 @@ L(7):       RETURN_BOUNDED_POINTER (STR(%esp))
        LEAVE
        RET_PTR
 END (BP_SYM (strpbrk))
+libc_hidden_builtin_def (strpbrk)
index de6a28a8d3a51774f3df2b9e0557eae7ed94dcdf..0fd95b54f5acdfcb6daa7f87e5aec899c0254a22 100644 (file)
@@ -1,6 +1,6 @@
 /* strrchr (str, ch) -- Return pointer to last occurrence of CH in STR.
    For Intel 80x86, x>=3.
-   Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1994-1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>
    Some optimisations by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
@@ -331,3 +331,4 @@ L(2):       CHECK_BOUNDS_HIGH (%eax, STR(%esp), jb)
 END (BP_SYM (strrchr))
 
 weak_alias (BP_SYM (strrchr), BP_SYM (rindex))
+libc_hidden_builtin_def (strrchr)
index 4ceb3c145b390fd297187b18bdd6796e3f0560fc..e1c109e590aa1a8aacd12fb99f0e80869a507bfa 100644 (file)
@@ -1,7 +1,7 @@
 /* strcspn (str, ss) -- Return the length of the initial segment of STR
                        which contains only characters from SS.
    For Intel 80x86, x>=3.
-   Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1994-1997, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>
    Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
@@ -179,3 +179,4 @@ L(4):       addl $256, %esp         /* remove stopset */
        LEAVE
        ret
 END (BP_SYM (strspn))
+libc_hidden_builtin_def (strspn)
index 3cc70da015ac6d4e02214f7a1167bcdae20b5ed1..e9a7ba823049ad03ce449c41af837433298e8142 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard memchr() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -130,3 +130,4 @@ weak_alias (__memchr, memchr)
 #if !__BOUNDED_POINTERS__
 weak_alias (__memchr, __ubp_memchr)
 #endif
+libc_hidden_builtin_def (memchr)
index 257e1aa34117f08855dae4b291dfbd32fe50fb82..7471bdbc1280ac70470330d72546f7903debf4d0 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard memcpy() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop for Itanium <Dan.Pop@cern.ch>.
    Rewritten for McKinley by Sverre Jarp, HP Labs/CERN <Sverre.Jarp@cern.ch>
 
@@ -409,6 +409,7 @@ ENTRY(memcpy)
        LOOP(48)
        LOOP(56)
 END(memcpy)
+libc_hidden_builtin_def (memcpy)
 
        .rodata
        .align 8
index 06d0c085ca6eff45a469f2473dbac517ee96347d..af0f3924edfe54b971597054f4ef5f60b72eee18 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard memmove() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -239,3 +239,4 @@ ENTRY(memmove)
        data8   .loop56 - .loop56
 
 END(memmove)
+libc_hidden_builtin_def (memmove)
index 2257b16047aee8bdda4851c26e956c34e63e6960..3353000186e9d5baa0430616dff841ddf355a328 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard memset() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop for Itanium <Dan.Pop@cern.ch>.
    Rewritten for McKinley by Sverre Jarp, HP Labs/CERN <Sverre.Jarp@cern.ch>
 
@@ -389,4 +389,4 @@ ENTRY(memset)
        br.ret.sptk.many rp
 ;; }
 END(memset)
-
+libc_hidden_builtin_def (memset)
index 1b34e8c23bcf5664b5790f85057e0fc09e3e6588..dd2c6b8a40dee05b5ce90ccc1215cec6c32682f3 100644 (file)
@@ -1,6 +1,6 @@
 /* IA-64 assembly version of the standard strcat() function.  
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -60,3 +60,4 @@ ENTRY(strcat)
        mov     ar.pfs = save_pfs
        br.ret.sptk.many b0
 END(strcat)
+libc_hidden_builtin_def (strcat)
index 5edb538999e3dc2c5613f8e3444b18a5371e030f..258562796a6b6b29d68f337e6c8ed5c8cc10c003 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard strchr() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -109,3 +109,4 @@ ENTRY(strchr)
 END(strchr)
 
 weak_alias(strchr, index)
+libc_hidden_builtin_def (strchr)
index 397f300c56c66483301a84a2f9248eea8adf2779..15bfeb4a7fd3186a452fbb8dace63516750f9380 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard strcmp() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -51,3 +51,4 @@ ENTRY(strcmp)
        sub     ret0 = val1, val2
        br.ret.sptk.many b0
 END(strcmp)
+libc_hidden_builtin_def (strcmp)
index 1a051827a3a5b4c0f1c18788482821e2bd56c9bf..8745c8e8e68b789352d2cc49b2f9166e5b99d2bc 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard strcpy() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -142,3 +142,4 @@ ENTRY(strcpy)
        ld8     r[MEMLAT] = [tmp]
        br.cond.sptk .back3
 END(strcpy)
+libc_hidden_builtin_def (strcpy)
index d5d271a761e690fe59e01495772beacfbd985a5f..a05b054ed8a8c51a8986a956af1b6234bab82fe5 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard strlen() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -95,3 +95,4 @@ l2:   ld8.s   val2 = [str], 8         // don't bomb out here
        ld8     val2 = [str], 8         // bomb out here
        br.cond.sptk    .back
 END(strlen)
+libc_hidden_builtin_def (strlen)
index a5ac359fed4758c4b154a33e4fbdebf4feff0f9b..743121d88d306f945689b7e4a87547d6094d28be 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard strncmp() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -59,3 +59,4 @@ ENTRY(strncmp)
 .restore_and_exit:
        br.ret.sptk.many b0
 END(strncmp)   
+libc_hidden_builtin_def (strncmp)
index 4fe686165bc6d8fc82ec9fafd413be7af6a56a3c..6706ab711bcbeb0f9ce157cdaf8ab7d7aeed2955 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard strncpy() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>
              and Jakub Jelinek <jakub@redhat.com>.
 
@@ -229,3 +229,4 @@ ENTRY(strncpy)
 (p5)   mov     r[MEMLAT - 1] = r0
        br.cond.sptk .back4
 END(strncpy)
+libc_hidden_builtin_def (strncpy)
index bd4da6a931840e9da7b0195951f5ccbf3a8cf413..fab65a9aea594eeb4ceff4e85268cb8e2fda9b92 100644 (file)
@@ -1,7 +1,7 @@
 /* memchr (str, ch, n) -- Return pointer to first occurrence of CH in the
    first N bytes of STR.
    For Motorola 68000.
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Schwab <schwab@gnu.org>.
 
@@ -229,3 +229,4 @@ weak_alias (__memchr, memchr)
 #if !__BOUNDED_POINTERS__
 weak_alias (__memchr, __ubp_memchr)
 #endif
+libc_hidden_builtin_def (memchr)
index af91dc72f4b2541023bde0ff6e9c836f6ed936f2..04626ffd64b54baba157ecb65f26aa8529e8a463 100644 (file)
@@ -1,6 +1,6 @@
 /* strchr (str, ch) -- Return pointer to first occurrence of CH in STR.
    For Motorola 68000.
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Schwab <schwab@gnu.org>.
 
@@ -255,3 +255,4 @@ L(L9:)
 END(strchr)
 
 weak_alias (strchr, index)
+libc_hidden_builtin_def (strchr)
index 05d209739e64456db226123f9970b96140cecee9..2049d0582959f48310bf8a1286fe253605ad40d2 100644 (file)
@@ -133,3 +133,4 @@ L(shfth):
 
        .set    reorder
 END (memcpy)
+libc_hidden_builtin_def (memcpy)
index f120123544014fa5235bb817e47c59eafca9353f..694ee8f1dcf4e959be7dda36c0b41ec7377bc5fd 100644 (file)
@@ -83,3 +83,4 @@ L(exit):
 
        .set    reorder
 END (memset)
+libc_hidden_builtin_def (memset)
index e9fc2b712a92fb10accf8a41985dcdef210d8a95..eab9463f864710477f2cf588501af6b6cf81c358 100644 (file)
@@ -137,3 +137,4 @@ L(shfth):
 
        .set    reorder
 END (memcpy)
+libc_hidden_builtin_def (memcpy)
index 784fa5deeeb26981aeb6a2bfd8ad445af8612f64..b50aaba8168cb4667dcad0abd60dc1d8a0d50d31 100644 (file)
@@ -89,3 +89,4 @@ L(exit):
 
        .set    reorder
 END (memset)
+libc_hidden_builtin_def (memset)
index 1a8eae5b15ef15a4f550016722a7beac5515f0a8..53f11433202bf348490778bc93488460cbb9b1a6 100644 (file)
@@ -332,3 +332,4 @@ L(handletail32):
        b               L(nondcbz)
 
 END (BP_SYM (memset))
+libc_hidden_builtin_def (memset)
index 1adee411b6d0109a3dba2a0a2140674ad31e6743..0c6f4e9f5335aa1f45551e7b7e9b9758afec7a68 100644 (file)
@@ -1,5 +1,5 @@
 /* Optimized strchr implementation for PowerPC.
-   Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -128,3 +128,4 @@ L(foundit):
 END (BP_SYM (strchr))
 
 weak_alias (BP_SYM (strchr), BP_SYM (index))
+libc_hidden_builtin_def (strchr)
index 2c96b57016ee928096910d425b00a53667711096..fa75eca3a1ea4c8a1a0c7eb304755f868c8d0971 100644 (file)
@@ -1,5 +1,5 @@
 /* Optimized strcmp implementation for PowerPC.
-   Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -124,3 +124,4 @@ L(u4):      lbz     rWORD1, -1(rSTR1)
        /* GKM FIXME: check high bounds.  */
        blr
 END (BP_SYM (strcmp))
+libc_hidden_builtin_def (strcmp)
index ed8eb7298e915c8ed6a6d1a41fb59fae50551c81..7fd89d2e41e4c616dccfd6870309ec4357bd4818 100644 (file)
@@ -1,5 +1,5 @@
 /* Optimized strcpy implementation for PowerPC.
-   Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -118,3 +118,4 @@ L(u1):      stb     rALT, 1(rDEST)
        blr
 
 END (BP_SYM (strcpy))
+libc_hidden_builtin_def (strcpy)
index 5ff31506e2e729b148332973e368ae95a6f24d43..ec35d23095466e175b6451b026e5d052693d7e90 100644 (file)
@@ -1,5 +1,5 @@
 /* Optimized strlen implementation for PowerPC.
-   Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -157,3 +157,4 @@ L(done0):
        /* GKM FIXME: check high bound.  */
        blr
 END (BP_SYM (strlen))
+libc_hidden_builtin_def (strlen)
index 4da5c2ae63e0d9ba53e048327451193c3ec4da73..c6d764595e2ca932a6fc67ccd31df21b2ffa2041 100644 (file)
@@ -208,3 +208,4 @@ EALIGN (BP_SYM (memcpy), 5, 0)
     std   0,8(4)
     b .L8
 END_GEN_TB (BP_SYM (memcpy),TB_TOCLESS)
+libc_hidden_builtin_def (memcpy)
index 53a4a2753dba46bc33997aa38039474b8ad0d8b0..f3a299d5c8055dfde05e6f9ff6b9e8de4a0dae88 100644 (file)
@@ -269,6 +269,7 @@ L(medium_28t):
        std     rCHR, -8(rMEMP)
        blr
 END_GEN_TB (BP_SYM (memset),TB_TOCLESS)
+libc_hidden_builtin_def (memset)
 
 /* Copied from bzero.S to prevent the linker from inserting a stub
    between bzero and memset.  */
index e581f8e77ac87bf1d2c122f4b2e4ee32d28db332..e3222f354d41af2850170ae7537fa91e03da4c3d 100644 (file)
@@ -138,3 +138,4 @@ L(foundit):
 END (BP_SYM (strchr))
 
 weak_alias (BP_SYM (strchr), BP_SYM (index))
+libc_hidden_builtin_def (strchr)
index bc5f0c760d6c0b91479a34b0362888eb51d74059..7e2dae07f7c78f1e8649dfd09712a0e0c555c6fa 100644 (file)
@@ -144,3 +144,4 @@ L(u4):      lbz     rWORD1, -1(rSTR1)
        /* GKM FIXME: check high bounds.  */
        blr
 END (BP_SYM (strcmp))
+libc_hidden_builtin_def (strcmp)
index 40fe31039a50d82eccdc253421e34b65f99004ec..4d12b82e5e3030be42f75838da32b80bda0dca78 100644 (file)
@@ -141,3 +141,4 @@ L(u1):      stb     rALT, 1(rDEST)
        blr
 
 END (BP_SYM (strcpy))
+libc_hidden_builtin_def (strcpy)
index 22a835b1098778faaa0267b844af567c684a389f..760be5884a5016889913aeaafa309f0d30477acb 100644 (file)
@@ -171,3 +171,4 @@ L(done0):
        /* GKM FIXME: check high bound.  */
        blr
 END (BP_SYM (strlen))
+libc_hidden_builtin_def (strlen)
index 1024ebdbd0e070d4180a44d4af63c4119ffac87e..dac2326cb5b841fb2044b1c78e41aca3e01a888f 100644 (file)
@@ -1,5 +1,5 @@
 /* strcat version that uses fast strcpy/strlen.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -28,3 +28,4 @@ strcat (char *dest, const char *src)
   strcpy (dest + strlen (dest), src);
   return dest;
 }
+libc_hidden_builtin_def (strcat)
index 4264b91c6ff4560fd46e313eb601a01544f8eee2..1ce186850190924c39454fcfe3c0df5cec131dc8 100644 (file)
@@ -1,5 +1,5 @@
 /* Search a character in a block of memory.  For IBM S390
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
@@ -39,3 +39,4 @@ ENTRY(memchr)
        slr   %r2,%r2
 1:      br    %r14
 END(memchr)
+libc_hidden_builtin_def (memchr)
index 1fa465266605258a9e5fbafede82d5a26301d9f9..201c8646728d52ed722069eaea87de376ecdd99c 100644 (file)
@@ -1,5 +1,5 @@
 /* memcpy - copy a block from source to destination.  S/390 version.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
@@ -56,4 +56,4 @@ ENTRY(memcpy)
        lr      %r2,%r1             # return destination address
        br      %r14
 END(memcpy)
-       
+libc_hidden_builtin_def (memcpy)
index aab36f5b2be71a14fb46408227c397df56f1f3b1..bb9c459654d5050e49dac8cf9f522a203f507826 100644 (file)
@@ -1,5 +1,5 @@
 /* Set a block of memory to some byte value.  For IBM S390
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
@@ -42,3 +42,4 @@ ENTRY(memset)
 .L1:
        br      %r14
 END(memset)
+libc_hidden_builtin_def (memset)
index 9c11d10ced6f92bc303a3d173f278e58621d5c44..fa077b6ffc953cae3aa5941949a08dae54bc16e6 100644 (file)
@@ -1,6 +1,6 @@
 /* strcmp - compare two string.  S/390 version.
    This file is part of the GNU C Library.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -39,3 +39,4 @@ ENTRY(strcmp)
 2:     lhi   %r2,-1
        br    %r14
 END(strcmp)
+libc_hidden_builtin_def (strcmp)
index 7cd7a695a8773fc6217b3420ed5e3956b8a88786..319ddfaecaeeb3b8b5d28b6ad78e123d8c86ddee 100644 (file)
@@ -1,6 +1,6 @@
 /* strcpy - copy a string from source to destination. For IBM S390
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -34,3 +34,4 @@ ENTRY(strcpy)
        jo    0b
        br    %r14
 END(strcpy)
+libc_hidden_builtin_def (strcpy)
index a6cbe78bcb85efc09c5910ae70cd41ffc9e2fdf5..fdd81348baa987f9150f537c12b8a8ff6b93a255 100644 (file)
@@ -1,7 +1,7 @@
 /* strncpy - copy at most n characters from a string from source to
    destination.  For IBM S390
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -77,3 +77,4 @@ ENTRY(strncpy)
 .Lexit: l     %r2,24(%r15)          # return dst pointer
        br    %r14
 END(strncpy)
+libc_hidden_builtin_def (strncpy)
index 3db735116f4723e417273aa7a0196f8026114e64..e06bfb111bb37e8d47a8a2ca495c140f04f3e2b6 100644 (file)
@@ -1,5 +1,5 @@
 /* Search a character in a block of memory.  64 bit S/390 version.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
    This file is part of the GNU C Library.
 
@@ -38,3 +38,4 @@ ENTRY(memchr)
        slgr  %r2,%r2
 1:     br    %r14
 END(memchr)
+libc_hidden_builtin_def (memchr)
index d8e0023e90528da223338e6b346a645a6245918a..c62ba8890e1a9e99cdb3b1c8bb25291f6f4fa97b 100644 (file)
@@ -1,5 +1,5 @@
 /* memcpy - copy a block from source to destination.  64 bit S/390 version.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
@@ -55,4 +55,4 @@ ENTRY(memcpy)
        lgr     %r2,%r1             # return destination address
        br      %r14
 END(memcpy)
-       
+libc_hidden_builtin_def (memcpy)
index 8f8d27d061b2cb5813739687574634d01413c7f3..cfbab643b40baadf75c1b3cdc9bc9bfe9033738d 100644 (file)
@@ -1,5 +1,5 @@
 /* Set a block of memory to some byte value.  64 bit S/390 version.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
    This file is part of the GNU C Library.
 
@@ -41,3 +41,4 @@ ENTRY(memset)
 .L1:
        br      %r14
 END(memset)
+libc_hidden_builtin_def (memset)
index c5640852363d5ee8580992c66881b808e578cd79..6cd8baa2f3891e6e400c4d6ef904c0472730fd79 100644 (file)
@@ -1,6 +1,6 @@
 /* strcmp - compare two string.  64 bit S/390 version.
    This file is part of the GNU C Library.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -39,3 +39,4 @@ ENTRY(strcmp)
 2:     lghi  %r2,-1
        br    %r14
 END(strcmp)
+libc_hidden_builtin_def (strcmp)
index b448936b0c8cd824353873edaa4198d8704ac78f..15785dcc027e2f00c7292ca1eb1ef7d5b37fafef 100644 (file)
@@ -1,5 +1,5 @@
 /* strcpy - copy a string from source to destination.  64 bit S/390 version.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
    This file is part of the GNU C Library.
 
@@ -33,3 +33,4 @@ ENTRY(strcpy)
        jo    0b
        br    %r14
 END(strcpy)
+libc_hidden_builtin_def (strcpy)
index 62df5620f886bdc28791e488c9a124c4ec57744a..cc6986fb402bad8384944c66a25a246fc9b6b432 100644 (file)
@@ -1,6 +1,6 @@
 /* strncpy - copy at most n characters from a string from source to
    destination.  64 bit S/390 version
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
    This file is part of the GNU C Library.
 
@@ -88,3 +88,4 @@ ENTRY(strncpy)
 .Lexit: lg    %r2,48(%r15)         # return dst pointer
        br    %r14
 END(strncpy)
+libc_hidden_builtin_def (strncpy)
index 67df9696aee7e2ad2547fa22d2bc913c2d446937..b084cc93ccfce2ba19be85f65eeb33c212e8e700 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
    Optimized by Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
@@ -197,3 +197,4 @@ L_exit:
        rts
        mov     r3,r0           /* Return destination.  */
 END(memcpy)
+libc_hidden_builtin_def (memcpy)
index 12199106f27a4fe5c845a745f47a8af94bd95ce6..ca234493670d11d6102e53bf3eb35497ac6463d1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
    Optimized by Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
@@ -85,3 +85,4 @@ L_byte_exit:
        rts
        mov     r7,r0
 END(memset)
+libc_hidden_builtin_def (memset)
index 41c53fd777c66bfc6cb46ac66d3948c17a9588c0..e25d7ef5eccc6c0dff1e27d15328f7ee30f00e20 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
 
@@ -82,3 +82,4 @@ ENTRY(strlen)
        rts
        mov     r2, r0
 END(strlen)
+libc_hidden_builtin_def (strlen)
index 490c431358ad75041df9097c97747c0cc5f95ea4..0ca56ccdd9d26bc53b2214f3e113ebe8a82a14bf 100644 (file)
@@ -144,3 +144,4 @@ weak_alias (__memchr, memchr)
 #if !__BOUNDED_POINTERS__
 weak_alias (__memchr, __ubp_memchr)
 #endif
+libc_hidden_builtin_def (memchr)
index 43e19b88b5845c2642845f4caa2c82b53072a7a9..35bcef4963b7aae0a35beb3ec87a0666ebee2c05 100644 (file)
@@ -966,3 +966,5 @@ ENTRY(memcpy)               /* %o0=dst %o1=src %o2=len */
 110:   retl
         sub            %o7, %g6, %o5
 END(memcpy)
+libc_hidden_builtin_def (memcpy)
+libc_hidden_builtin_def (memmove)
index ff31d332eb03b3fc649938a8ada23320ab39c0ac..8e91e998bf568852674ef336fe71bbd22a2bce81 100644 (file)
@@ -1,6 +1,6 @@
 /* Set a block of memory to some byte value.
    For SPARC v7.
-   Copyright (C) 1996, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David S. Miller <davem@caip.rutgers.edu> and
                   Jakub Jelinek <jj@ultra.linux.cz>.
@@ -150,5 +150,6 @@ ENTRY(memset)
 0:     retl
         nop
 END(memset)
+libc_hidden_builtin_def (memset)
 
 weak_alias(__bzero, bzero)
index 434d8d03c72862d8def5b69ec38fa5040cac2853..3709c8a69202b9469c100a0922ef81a478d8ef26 100644 (file)
@@ -346,3 +346,4 @@ ENTRY(strcat)
        retl
         mov            %g2, %o0
 END(strcat)
+libc_hidden_builtin_def (strcat)
index 931ea890cdf5ed3feaa4bfd07921b199fa9e7542..b5be3adf604816d673642ea0eee1f71eef0c2048 100644 (file)
@@ -280,3 +280,5 @@ END(strrchr)
 
 weak_alias(strchr, index)
 weak_alias(strrchr, rindex)
+libc_hidden_builtin_def (strchr)
+libc_hidden_builtin_def (strrchr)
index 90e6f67085da2499e9c70171e080326b61d9c0dd..6723593eedfec3fbf61549c9560348bdcdc3e55f 100644 (file)
@@ -255,3 +255,4 @@ ENTRY(strcmp)
        jmpl            %i7 + 8, %g0
         restore        %g4, %g0, %o0
 END(strcmp)
+libc_hidden_builtin_def (strcmp)
index c0572d9b50585ba09bd4f5bda0a47e1983ac6689..787ac9f7c81186f0eb1f3148c098c3bfdb0634e8 100644 (file)
@@ -272,3 +272,4 @@ ENTRY(strcpy)
        retl
         mov            %g2, %o0
 END(strcpy)
+libc_hidden_builtin_def (strcpy)
index ff4606a71bf236efcd494e459c43b3110cc2cabe..76466ec9dd2b557eabf71481aedb93c771677180 100644 (file)
@@ -1,6 +1,6 @@
 /* Determine the length of a string.
    For SPARC v7.
-   Copyright (C) 1996, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jj@ultra.linux.cz>.
 
@@ -101,3 +101,4 @@ ENTRY(strlen)
 13:    retl
         sub            %o4, %o1, %o0
 END(strlen)
+libc_hidden_builtin_def (strlen)
index 92cd95f3b9dee313c0d8b27ff0aa551b3158a5ff..4f13cb57069ecd9e948355d92493ebf6e235c1c9 100644 (file)
@@ -1,7 +1,7 @@
 /* memchr (str, ch, n) -- Return pointer to first occurrence of CH in STR less
    than N.
    For SPARC v9.
-   Copyright (C) 1998,1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jan Vondrak <jvon4518@ss1000.ms.mff.cuni.cz> and
                   Jakub Jelinek <jj@ultra.linux.cz>.
@@ -260,3 +260,4 @@ weak_alias (__memchr, memchr)
 #if !__BOUNDED_POINTERS__
 weak_alias (__memchr, __ubp_memchr)
 #endif
+libc_hidden_builtin_def (memchr)
index e9cc0046332b380f845f589ab1d3e5072493b3e5..3742573248d89577ca9ff50f4a6119879900c620 100644 (file)
@@ -917,3 +917,5 @@ END(memmove)
 weak_alias(memcpy, __align_cpy_1)
 weak_alias(memcpy, __align_cpy_2)
 #endif
+libc_hidden_builtin_def (memcpy)
+libc_hidden_builtin_def (memmove)
index 31dc9eb77b22d159f8f386a7cad35d9f2a199894..b34ccc8869d3de21ecf4ccf743f5e5a30b377fb4 100644 (file)
@@ -1,6 +1,6 @@
 /* Set a block of memory to some byte value.
    For UltraSPARC.
-   Copyright (C) 1996, 97, 98, 99 Free Software Foundation, Inc.
+   Copyright (C) 1996, 97, 98, 99, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David S. Miller (davem@caip.rutgers.edu) and
                   Jakub Jelinek (jj@ultra.linux.cz).
@@ -178,6 +178,7 @@ ENTRY(memset)
        ba,pt           %xcc, 18b
         ldd            [%o0], %f0
 END(memset)
+libc_hidden_builtin_def (memset)
 
 #define ZERO_BLOCKS(base, offset, source)              \
        stx             source, [base - offset - 0x38]; \
index 704aee73063baa20fccae1ba2d5b35394304db5d..ccbc3fd1d84eea992a6fb1a561918a0927d9cf53 100644 (file)
@@ -711,3 +711,5 @@ weak_alias(memcpy, __align_cpy_4)
 weak_alias(memcpy, __align_cpy_8)
 weak_alias(memcpy, __align_cpy_16)
 #endif
+libc_hidden_builtin_def (memcpy)
+libc_hidden_builtin_def (memmove)
index 85954a210328c596937c4cbd4012aee2b90301a8..43b3d6c176fed2e12f32102f1ae043de1e99bac8 100644 (file)
@@ -337,3 +337,4 @@ ENTRY(strcat)
        retl                                            /* CTI+IEU1     Group           */
         mov            %g6, %o0                        /* IEU0                         */
 END(strcat)
+libc_hidden_builtin_def (strcat)
index 3c976eb38e4f473d99c36745cecebb44fc4849e9..d19c2dddbc2c28e587ce6fb626cc30639aaa99d3 100644 (file)
@@ -479,3 +479,5 @@ END(strrchr)
 
 weak_alias (strchr, index)
 weak_alias (strrchr, rindex)
+libc_hidden_builtin_def (strchr)
+libc_hidden_builtin_def (strrchr)
index a69368ca07a0e93de8d466a30515fd0fe16639b4..fade4c4cbce6217fb4498ae0f3a2ec44e70c3cfc 100644 (file)
@@ -277,3 +277,4 @@ ENTRY(strcmp)
        ba,pt           %xcc, 11b                               /* CTI          Group           */
         ldxa           [%o1 + %o0] ASI_PNF, %g6                /* Load                         */
 END(strcmp)
+libc_hidden_builtin_def (strcmp)
index f29fb2a405c4e661e03a73919841c114178b5874..59fa6d903b2f053fbf2bf78faf62088ac85af042 100644 (file)
@@ -242,3 +242,4 @@ ENTRY(strcpy)
        retl                                            /* CTI+IEU1     Group           */
         mov            %g6, %o0                        /* IEU0                         */
 END(strcpy)
+libc_hidden_builtin_def (strcpy)
index 69edd16bd8db7d6fd74be891187c5be952a84160..a0f0ae1a4a3e199ddea1c1dc52dcba3998cf9dd2 100644 (file)
@@ -1,7 +1,7 @@
 /* strcspn (str, ss) -- Return the length of the initial segment of STR
                         which contains no characters from SS.
    For SPARC v9.
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jj@ultra.linux.cz>
 
@@ -210,3 +210,4 @@ ENTRY(strcspn)
        retl                                            /* CTI+IEU1     Group           */
         sub            %o0, %g4, %o0                   /* IEU0                         */
 END(strcspn)
+libc_hidden_builtin_def (strcspn)
index b80fb0770c57f61813fdde498fd72442e08b8c70..cc15e4e3fb666109016263e0f4a02da7f16f8990 100644 (file)
@@ -1,5 +1,5 @@
 /* Determine the length of a string.  For SPARC v9.
-   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jan Vondrak <jvon4518@ss1000.ms.mff.cuni.cz> and
                   Jakub Jelinek <jj@ultra.linux.cz>.
@@ -171,3 +171,4 @@ ENTRY(strlen)
        retl                                            /* CTI+IEU1     Group           */
         sub            %o0, %o1, %o0                   /* IEU0                         */
 END(strlen)
+libc_hidden_builtin_def (strlen)
index 5a2c2880fc34886fbf5d6fd4ae6bc12c838712d1..d104351463c20850fcefca038a9527f57c6c57b1 100644 (file)
@@ -361,3 +361,4 @@ ENTRY(strncmp)
        ba,pt           %xcc, 13b                       /* CTI                          */
         add            %o1, 8, %o1                     /* IEU0                         */
 END(strncmp)
+libc_hidden_builtin_def (strncmp)
index 43ab5f657580d7827d8307116a7e74ce414b5631..23f8f4fa7d2044b412cf27cb85241f4a76366d52 100644 (file)
@@ -394,3 +394,4 @@ ENTRY(strncpy)
        ba,pt           %xcc, 3b                        /* CTI                          */
         sllx           %o4, 56, %g3                    /* IEU0         Group           */
 END(strncpy)
+libc_hidden_builtin_def (strncpy)
index bfdc1e84d853177ddd93d6efa9fe911474711bdd..36b0bbc8efbac44d0a1e041a9d4caee0e944a140 100644 (file)
@@ -1,7 +1,7 @@
 /* strpbrk (s, accept) -- Find the first occurrence in S of any character in
                          ACCEPT.
    For SPARC v9.
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jj@ultra.linux.cz>
 
@@ -228,3 +228,4 @@ ENTRY(strpbrk)
 
         movrz          %g1, 0, %o0                     /* Single       Group           */
 END(strpbrk)
+libc_hidden_builtin_def (strpbrk)
index 4662f540486d29fd9ff59bb0f5f3413a2f318d97..1af24854e9c5644da7ed5f965048093aa5db5ab5 100644 (file)
@@ -1,7 +1,7 @@
 /* strspn (str, ss) -- Return the length of the maximum initial segment
                       of S which contains only characters in ACCEPT.
    For SPARC v9.
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jj@ultra.linux.cz>
 
@@ -210,3 +210,4 @@ ENTRY(strspn)
        retl                                            /* CTI+IEU1     Group           */
         sub            %o0, %g4, %o0                   /* IEU0                         */
 END(strspn)
+libc_hidden_builtin_def (strspn)
index 1339036bdbe61025bcadc8c63c4ef4334170c784..136d6e57638c1d1f8f8db7744adf43c3dd1c1d4b 100644 (file)
@@ -1,5 +1,5 @@
 /* Highly optimized version for x86-64.
-   Copyright (C) 1997, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Based on i586 version contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -90,3 +90,4 @@ ENTRY (BP_SYM (memcpy))
        ret
 
 END (BP_SYM (memcpy))
+libc_hidden_builtin_def (memcpy)
index b95ca40b2ff52ff38dfb942012eaca447a6fa869..29afa63e7eb8fed7e6d4f7c363a4093dc6356a5b 100644 (file)
@@ -1,6 +1,6 @@
 /* memset/bzero -- set memory area to CH/0
    Optimized version for x86-64.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>.
 
@@ -129,3 +129,6 @@ ENTRY (memset)
        jmp     4b
 
 END (memset)
+#if !BZERO_P
+libc_hidden_builtin_def (memset)
+#endif
index e406e34b36227d073e4bdd7de4e0b0aaf894f84f..11b26696913e52177f826516aa91609d288a15aa 100644 (file)
@@ -257,3 +257,4 @@ ENTRY (BP_SYM (strcat))
        movq    %rdi, %rax      /* Source is return value.  */
        retq
 END (BP_SYM (strcat))
+libc_hidden_builtin_def (strcat)
index f862cb2739406d33054d190f44fc9cd121c99e10..a65779685132eb7ca31923aa3caabaaa9db80c9c 100644 (file)
@@ -288,3 +288,4 @@ ENTRY (BP_SYM (strchr))
 END (BP_SYM (strchr))
 
 weak_alias (BP_SYM (strchr), BP_SYM (index))
+libc_hidden_builtin_def (strchr)
index 6e6bdcbabd939cbfeea2244f9b95128eceeb80ea..ed6710b1ac4cb8c49258f25e62c5aaebc8f4f9ff 100644 (file)
@@ -1,5 +1,5 @@
 /* Highly optimized version for x86-64.
-   Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Based on i686 version contributed by Ulrich Drepper
    <drepper@cygnus.com>, 1999.
@@ -42,3 +42,4 @@ L(neq):       movl    $1, %eax
        cmovbl  %ecx, %eax
        ret
 END (BP_SYM (strcmp))
+libc_hidden_builtin_def (strcmp)
index f178b9b69c7ee4d0cb7bb20f8dc628eb19e3c2d1..a76787a139be82798a185ee41c3480af75f376bb 100644 (file)
@@ -154,3 +154,6 @@ ENTRY (BP_SYM (STRCPY))
 #endif
        retq
 END (BP_SYM (STRCPY))
+#ifndef USE_AS_STPCPY
+libc_hidden_builtin_def (strcpy)
+#endif
index b488161fd9146c25c674e3008c745f579e6f459e..7afa86b47b94e8a39569c8659eeb4413cc148e8b 100644 (file)
@@ -1,7 +1,7 @@
 /* strcspn (str, ss) -- Return the length of the initial segment of STR
                        which contains no characters from SS.
    For AMD x86-64.
-   Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1994-1997, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>.
    Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>.
@@ -121,3 +121,4 @@ L(4):       addq $256, %rsp         /* remove skipset */
 #endif
        ret
 END (strcspn)
+libc_hidden_builtin_def (strcspn)
index 4441ba750e054270b2b6a7f2a4a41a6d122257dd..fd950edaaafeb13b9f60f50e12771cd4ba60b926 100644 (file)
@@ -1,5 +1,5 @@
 /* strlen(str) -- determine the length of the string STR.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    Based on i486 version contributed by Ulrich Drepper <drepper@redhat.com>.
    This file is part of the GNU C Library.
 
@@ -136,3 +136,4 @@ ENTRY (strlen)
        subq %rdi, %rax         /* compute difference to string start */
        ret
 END (strlen)
+libc_hidden_builtin_def (strlen)
index a8f0c07a3fb9b107eca79cb4258f36f95122d8ee..76007cc31048e93e0f058bd905bac79367d8d8ff 100644 (file)
@@ -1,7 +1,7 @@
 /* strspn (str, ss) -- Return the length of the initial segment of STR
                        which contains only characters from SS.
    For AMD x86-64.
-   Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1994-1997, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>.
    Bug fixes by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>.
@@ -111,3 +111,4 @@ L(4):       addq $256, %rsp         /* remove stopset */
                                   non-valid character */
        ret
 END (strspn)
+libc_hidden_builtin_def (strspn)