From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3874 invoked by alias); 29 Apr 2003 21:07:41 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 3805 invoked from network); 29 Apr 2003 21:07:39 -0000 Received: from unknown (HELO localhost.localdomain) (195.113.19.66) by sources.redhat.com with SMTP; 29 Apr 2003 21:07:39 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h3TL7ZqO016484; Tue, 29 Apr 2003 23:07:35 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id h3TL7ZKO016476; Tue, 29 Apr 2003 23:07:35 +0200 Date: Tue, 29 Apr 2003 21:07:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] libc_hidden_builtin_* Message-ID: <20030429210734.GI16629@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-04/txt/msg00081.txt.bz2 Hi! This patch makes the builtin functions bypass .plt if using recent enough gcc - on i686/NPTL I'm at 44 .plt slots in libc.so. I had to touch string-inlines.c (because otherwise there were some memset calls going through .plt) and while at it, I fixed the long standing problem where -O0 -D__USE_STRING_INLINES (or just with too much inlining) binaries/libraries compiled against i386 headers cannot be run against i686 libc.so and similarly such bins/libs compiled against i686 headers cannot be run against i386 libc.so. There is still one memmove call (in inet_mkadr.os) which needs another GCC patch to bypass .plt, plus if I counted well out of the remaining 43 libc.so .plt slots 11 could be still killed. Tested with make check and make check-abi. 2003-04-29 Jakub Jelinek * configure.in: Change __oline__ to $LINENO. (HAVE_BUILTIN_REDIRECTION): New check. * configure: Rebuilt. * 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. * intl/plural.c: Rebuilt. * 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 , 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. --- libc/include/libc-symbols.h.jj 2003-01-05 16:08:44.000000000 -0500 +++ libc/include/libc-symbols.h 2003-04-29 09:59:02.000000000 -0400 @@ -720,4 +720,16 @@ # 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 */ --- libc/include/string.h.jj 2002-08-28 06:58:01.000000000 -0400 +++ libc/include/string.h 2003-04-29 10:04:01.000000000 -0400 @@ -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))) --- libc/intl/plural.y.jj 2002-01-30 12:01:23.000000000 -0500 +++ libc/intl/plural.y 2003-04-29 11:38:52.000000000 -0400 @@ -32,6 +32,7 @@ #include #include +#include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, --- libc/intl/plural.c.jj 2002-06-21 05:36:33.000000000 -0400 +++ libc/intl/plural.c 2003-04-29 11:39:41.000000000 -0400 @@ -51,6 +51,7 @@ #include #include +#include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, --- libc/string/string-inlines.c.jj 2002-12-31 21:38:05.000000000 -0500 +++ libc/string/string-inlines.c 2003-04-29 12:27:41.000000000 -0400 @@ -1,39 +0,0 @@ -/* Copyright (C) 1999, 2002 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. */ - -/* and 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 */ - -/* This is to avoid PLT entries for the x86 version. */ -#define __memcpy_g __memcpy_g_internal -#define __strchr_g __strchr_g_internal - -#include - -#ifdef __memcpy_c -# undef __memcpy_g -strong_alias (__memcpy_g_internal, __memcpy_g) -# undef __strchr_g -strong_alias (__strchr_g_internal, __strchr_g) -#endif --- libc/sysdeps/alpha/alphaev6/memchr.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/alphaev6/memchr.S 2003-04-29 10:06:32.000000000 -0400 @@ -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 . @@ -190,3 +190,4 @@ weak_alias (__memchr, memchr) #if !__BOUNDED_POINTERS__ weak_alias (__memchr, __ubp_memchr) #endif +libc_hidden_builtin_def (memchr) --- libc/sysdeps/alpha/alphaev6/memcpy.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/alphaev6/memcpy.S 2003-04-29 10:09:34.000000000 -0400 @@ -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 . @@ -252,3 +252,4 @@ $nomoredata: nop # E : END(memcpy) +libc_hidden_builtin_def (memcpy) --- libc/sysdeps/alpha/alphaev6/memset.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/alphaev6/memset.S 2003-04-29 10:16:09.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/alpha/alphaev67/strcat.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/alphaev67/strcat.S 2003-04-29 10:21:09.000000000 -0400 @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2003 Free Software Foundation, Inc. Contributed by Richard Henderson , 1996. EV67 optimized by Rick Gorton . 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) --- libc/sysdeps/alpha/alphaev67/strchr.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/alphaev67/strchr.S 2003-04-29 10:24:23.000000000 -0400 @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2003 Free Software Foundation, Inc. Contributed by Richard Henderson , 1996. EV67 optimized by Rick Gorton . 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) --- libc/sysdeps/alpha/alphaev67/strlen.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/alphaev67/strlen.S 2003-04-29 10:34:02.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/alpha/alphaev67/strrchr.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/alphaev67/strrchr.S 2003-04-29 10:43:24.000000000 -0400 @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2003 Free Software Foundation, Inc. EV67 optimized by Rick Gorton . 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) --- libc/sysdeps/alpha/memchr.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/memchr.S 2003-04-29 10:06:12.000000000 -0400 @@ -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) --- libc/sysdeps/alpha/memset.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/memset.S 2003-04-29 10:15:58.000000000 -0400 @@ -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) --- libc/sysdeps/alpha/strcat.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strcat.S 2003-04-29 10:21:03.000000000 -0400 @@ -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 , 1996. @@ -69,3 +69,4 @@ $found: negq t1, t2 # clear all but jmp $31, __stxcpy END(strcat) +libc_hidden_builtin_def (strcat) --- libc/sysdeps/alpha/strchr.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strchr.S 2003-04-29 10:24:15.000000000 -0400 @@ -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) --- libc/sysdeps/alpha/strcmp.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strcmp.S 2003-04-29 10:27:28.000000000 -0400 @@ -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) --- libc/sysdeps/alpha/strcpy.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strcpy.S 2003-04-29 10:29:08.000000000 -0400 @@ -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 , 1996. @@ -39,3 +39,4 @@ ENTRY(strcpy) jmp $31, __stxcpy # do the copy END(strcpy) +libc_hidden_builtin_def (strcpy) --- libc/sysdeps/alpha/strlen.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strlen.S 2003-04-29 10:33:54.000000000 -0400 @@ -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 ret END(strlen) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/alpha/strncmp.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strncmp.S 2003-04-29 10:36:52.000000000 -0400 @@ -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) --- libc/sysdeps/alpha/strncpy.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strncpy.S 2003-04-29 10:40:38.000000000 -0400 @@ -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) --- libc/sysdeps/alpha/strrchr.S.jj 2001-08-23 12:49:20.000000000 -0400 +++ libc/sysdeps/alpha/strrchr.S 2003-04-29 10:43:18.000000000 -0400 @@ -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) --- libc/sysdeps/arm/memset.S.jj 2001-08-23 12:49:23.000000000 -0400 +++ libc/sysdeps/arm/memset.S 2003-04-29 10:16:15.000000000 -0400 @@ -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 @@ -65,3 +65,4 @@ ENTRY(memset) strb a2, [a4], $1 RETINSTR(mov,pc,lr) END(memset) +libc_hidden_builtin_def (memset) --- libc/sysdeps/arm/strlen.S.jj 2001-08-23 12:49:24.000000000 -0400 +++ libc/sysdeps/arm/strlen.S 2003-04-29 10:34:09.000000000 -0400 @@ -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 @@ -61,3 +61,4 @@ Llastword: @ drop through to here onc addne r0, r0, $1 @ must be zero) RETINSTR(mov,pc,lr) END(strlen) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/generic/memchr.c.jj 2001-08-23 12:49:33.000000000 -0400 +++ libc/sysdeps/generic/memchr.c 2003-04-29 10:07:10.000000000 -0400 @@ -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) --- libc/sysdeps/generic/memcpy.c.jj 2001-08-23 12:49:33.000000000 -0400 +++ libc/sysdeps/generic/memcpy.c 2003-04-29 10:09:46.000000000 -0400 @@ -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) --- libc/sysdeps/generic/memmove.c.jj 2001-08-23 12:49:33.000000000 -0400 +++ libc/sysdeps/generic/memmove.c 2003-04-29 11:13:47.000000000 -0400 @@ -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 --- libc/sysdeps/generic/memset.c.jj 2001-08-23 12:49:33.000000000 -0400 +++ libc/sysdeps/generic/memset.c 2003-04-29 10:16:23.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strcat.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strcat.c 2003-04-29 10:21:16.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strchr.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strchr.c 2003-04-29 10:24:47.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strcmp.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strcmp.c 2003-04-29 10:27:36.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strcpy.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strcpy.c 2003-04-29 10:29:19.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strcspn.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strcspn.c 2003-04-29 10:32:06.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strlen.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strlen.c 2003-04-29 10:34:17.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strncmp.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strncmp.c 2003-04-29 10:37:00.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strncpy.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strncpy.c 2003-04-29 10:40:44.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strpbrk.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strpbrk.c 2003-04-29 10:41:47.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strrchr.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strrchr.c 2003-04-29 10:43:33.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strspn.c.jj 2001-08-23 12:49:38.000000000 -0400 +++ libc/sysdeps/generic/strspn.c 2003-04-29 10:44:17.000000000 -0400 @@ -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) --- libc/sysdeps/generic/strstr.c.jj 2001-12-27 14:58:34.000000000 -0500 +++ libc/sysdeps/generic/strstr.c 2003-04-29 10:45:33.000000000 -0400 @@ -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) --- libc/sysdeps/generic/string-inlines.c.jj 2003-04-29 12:27:35.000000000 -0400 +++ libc/sysdeps/generic/string-inlines.c 2003-04-29 12:29:27.000000000 -0400 @@ -0,0 +1,35 @@ +/* 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. */ + +/* and 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 +#undef index +#undef rindex + +#undef __NO_INLINE__ +#include +#include --- libc/sysdeps/i386/i486/strcat.S.jj 2001-08-21 16:30:38.000000000 -0400 +++ libc/sysdeps/i386/i486/strcat.S 2003-04-29 10:21:34.000000000 -0400 @@ -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 . Optimised a little by Alan Modra @@ -267,3 +267,4 @@ L(8): /* GKM FIXME: check high bounds */ LEAVE RET_PTR END (BP_SYM (strcat)) +libc_hidden_builtin_def (strcat) --- libc/sysdeps/i386/i486/strlen.S.jj 2001-08-21 16:30:38.000000000 -0400 +++ libc/sysdeps/i386/i486/strlen.S 2003-04-29 10:35:08.000000000 -0400 @@ -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 . This file is part of the GNU C Library. @@ -136,3 +136,4 @@ L(2): CHECK_BOUNDS_HIGH (%eax, STR(%esp) LEAVE ret END (BP_SYM (strlen)) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/i386/i486/string-inlines.c.jj 2003-04-29 12:27:35.000000000 -0400 +++ libc/sysdeps/i386/i486/string-inlines.c 2003-04-29 14:18:03.000000000 -0400 @@ -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. */ + +/* and 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 +#undef index +#undef rindex + +#undef __NO_INLINE__ +#include +#include + +#ifdef __memcpy_c +# undef __memcpy_g +strong_alias (__memcpy_g_internal, __memcpy_g) +# undef __strchr_g +strong_alias (__strchr_g_internal, __strchr_g) +#endif + +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); +} --- libc/sysdeps/i386/i586/memcpy.S.jj 2001-08-23 12:49:52.000000000 -0400 +++ libc/sysdeps/i386/i586/memcpy.S 2003-04-29 10:09:55.000000000 -0400 @@ -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 , 1997. @@ -116,3 +116,4 @@ L(1): rep; movsb LEAVE RET_PTR END (BP_SYM (memcpy)) +libc_hidden_builtin_def (memcpy) --- libc/sysdeps/i386/i586/memset.S.jj 2001-08-23 12:49:52.000000000 -0400 +++ libc/sysdeps/i386/i586/memset.S 2003-04-29 10:17:22.000000000 -0400 @@ -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, @@ -114,3 +114,4 @@ L(2): shrl $2, %ecx /* convert byte coun RET_PTR #endif END (BP_SYM (memset)) +libc_hidden_builtin_def (memset) --- libc/sysdeps/i386/i586/strchr.S.jj 2001-08-23 12:49:52.000000000 -0400 +++ libc/sysdeps/i386/i586/strchr.S 2003-04-29 10:25:42.000000000 -0400 @@ -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, . @@ -339,3 +339,4 @@ END (BP_SYM (strchr)) #undef index weak_alias (BP_SYM (strchr), BP_SYM (index)) +libc_hidden_builtin_def (strchr) --- libc/sysdeps/i386/i586/strcpy.S.jj 2001-08-23 12:49:52.000000000 -0400 +++ libc/sysdeps/i386/i586/strcpy.S 2003-04-29 10:31:28.000000000 -0400 @@ -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 , 1997. @@ -159,3 +159,6 @@ L(end2): LEAVE RET_PTR END (BP_SYM (STRCPY)) +#ifndef USE_AS_STPCPY +libc_hidden_builtin_def (strcpy) +#endif --- libc/sysdeps/i386/i586/strlen.S.jj 2002-03-23 05:51:45.000000000 -0500 +++ libc/sysdeps/i386/i586/strlen.S 2003-04-29 10:35:22.000000000 -0400 @@ -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, . @@ -186,3 +186,4 @@ L(2): CHECK_BOUNDS_HIGH (%eax, STR(%esp) LEAVE ret END (BP_SYM (strlen)) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/i386/i686/memcpy.S.jj 2001-08-23 12:49:52.000000000 -0400 +++ libc/sysdeps/i386/i686/memcpy.S 2003-04-29 10:10:04.000000000 -0400 @@ -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 , 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) --- libc/sysdeps/i386/i686/memmove.S.jj 2003-02-04 02:51:36.000000000 -0500 +++ libc/sysdeps/i386/i686/memmove.S 2003-04-29 10:13:11.000000000 -0400 @@ -92,3 +92,4 @@ ENTRY (BP_SYM (memmove)) LEAVE RET_PTR END (BP_SYM (memmove)) +libc_hidden_builtin_def (memmove) --- libc/sysdeps/i386/i686/memset.S.jj 2001-08-23 12:49:52.000000000 -0400 +++ libc/sysdeps/i386/i686/memset.S 2003-04-29 10:17:29.000000000 -0400 @@ -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 , 1999. @@ -93,3 +93,4 @@ ENTRY (BP_SYM (memset)) RET_PTR #endif END (BP_SYM (memset)) +libc_hidden_builtin_def (memset) --- libc/sysdeps/i386/i686/strcmp.S.jj 2002-03-23 05:51:45.000000000 -0500 +++ libc/sysdeps/i386/i686/strcmp.S 2003-04-29 10:27:46.000000000 -0400 @@ -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 , 1999. @@ -69,3 +69,4 @@ L(chk): CHECK_BOUNDS_HIGH (%ecx, STR1(%e LEAVE ret END (BP_SYM (strcmp)) +libc_hidden_builtin_def (strcmp) --- libc/sysdeps/i386/memchr.S.jj 2001-08-23 12:49:48.000000000 -0400 +++ libc/sysdeps/i386/memchr.S 2003-04-29 10:07:46.000000000 -0400 @@ -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 Optimised a little by Alan Modra @@ -330,3 +330,4 @@ weak_alias (BP_SYM (__memchr), BP_SYM (m #if !__BOUNDED_POINTERS__ weak_alias (__memchr, __ubp_memchr) #endif +libc_hidden_builtin_def (memchr) --- libc/sysdeps/i386/memset.c.jj 2001-08-23 12:49:48.000000000 -0400 +++ libc/sysdeps/i386/memset.c 2003-04-29 10:17:13.000000000 -0400 @@ -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 --- libc/sysdeps/i386/strchr.S.jj 2002-08-12 09:27:53.000000000 -0400 +++ libc/sysdeps/i386/strchr.S 2003-04-29 10:25:28.000000000 -0400 @@ -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 Some optimisations by Alan Modra @@ -289,3 +289,4 @@ L(6): END (BP_SYM (strchr)) weak_alias (BP_SYM (strchr), BP_SYM (index)) +libc_hidden_builtin_def (strchr) --- libc/sysdeps/i386/strcspn.S.jj 2001-08-23 12:49:49.000000000 -0400 +++ libc/sysdeps/i386/strcspn.S 2003-04-29 10:32:30.000000000 -0400 @@ -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 Bug fixes by Alan Modra @@ -179,3 +179,4 @@ L(4): addl $256, %esp /* remove stopset LEAVE ret END (BP_SYM (strcspn)) +libc_hidden_builtin_def (strcspn) --- libc/sysdeps/i386/strlen.c.jj 2001-08-23 12:49:49.000000000 -0400 +++ libc/sysdeps/i386/strlen.c 2003-04-29 10:34:45.000000000 -0400 @@ -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) --- libc/sysdeps/i386/strpbrk.S.jj 2001-08-23 12:49:49.000000000 -0400 +++ libc/sysdeps/i386/strpbrk.S 2003-04-29 10:42:14.000000000 -0400 @@ -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 Bug fixes by Alan Modra 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) --- libc/sysdeps/i386/strrchr.S.jj 2001-08-23 12:49:49.000000000 -0400 +++ libc/sysdeps/i386/strrchr.S 2003-04-29 10:43:48.000000000 -0400 @@ -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 Some optimisations by Alan Modra @@ -331,3 +331,4 @@ L(2): CHECK_BOUNDS_HIGH (%eax, STR(%esp) END (BP_SYM (strrchr)) weak_alias (BP_SYM (strrchr), BP_SYM (rindex)) +libc_hidden_builtin_def (strrchr) --- libc/sysdeps/i386/strspn.S.jj 2001-08-23 12:49:49.000000000 -0400 +++ libc/sysdeps/i386/strspn.S 2003-04-29 10:44:30.000000000 -0400 @@ -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 Bug fixes by Alan Modra @@ -179,3 +179,4 @@ L(4): addl $256, %esp /* remove stopset LEAVE ret END (BP_SYM (strspn)) +libc_hidden_builtin_def (strspn) --- libc/sysdeps/i386/string-inlines.c.jj 2003-04-29 12:27:35.000000000 -0400 +++ libc/sysdeps/i386/string-inlines.c 2003-04-29 14:08:13.000000000 -0400 @@ -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. */ + +/* and 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 +#undef index +#undef rindex + +#undef __NO_INLINE__ +#include +#include + +/* 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); +} --- libc/sysdeps/ia64/memchr.S.jj 2001-08-20 07:27:49.000000000 -0400 +++ libc/sysdeps/ia64/memchr.S 2003-04-29 10:07:53.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/ia64/memcpy.S.jj 2002-10-11 10:24:54.000000000 -0400 +++ libc/sysdeps/ia64/memcpy.S 2003-04-29 10:10:18.000000000 -0400 @@ -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 . Rewritten for McKinley by Sverre Jarp, HP Labs/CERN @@ -409,6 +409,7 @@ ENTRY(memcpy) LOOP(48) LOOP(56) END(memcpy) +libc_hidden_builtin_def (memcpy) .rodata .align 8 --- libc/sysdeps/ia64/memmove.S.jj 2001-08-20 07:27:49.000000000 -0400 +++ libc/sysdeps/ia64/memmove.S 2003-04-29 10:13:19.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/ia64/memset.S.jj 2002-10-11 10:24:54.000000000 -0400 +++ libc/sysdeps/ia64/memset.S 2003-04-29 10:17:38.000000000 -0400 @@ -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 . Rewritten for McKinley by Sverre Jarp, HP Labs/CERN @@ -389,4 +389,4 @@ ENTRY(memset) br.ret.sptk.many rp ;; } END(memset) - +libc_hidden_builtin_def (memset) --- libc/sysdeps/ia64/strcat.S.jj 2001-08-20 07:27:50.000000000 -0400 +++ libc/sysdeps/ia64/strcat.S 2003-04-29 10:21:42.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/ia64/strchr.S.jj 2001-08-20 07:27:50.000000000 -0400 +++ libc/sysdeps/ia64/strchr.S 2003-04-29 10:25:50.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/ia64/strcmp.S.jj 2001-08-20 07:27:50.000000000 -0400 +++ libc/sysdeps/ia64/strcmp.S 2003-04-29 10:27:53.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/ia64/strcpy.S.jj 2001-08-20 07:27:50.000000000 -0400 +++ libc/sysdeps/ia64/strcpy.S 2003-04-29 10:29:38.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/ia64/strlen.S.jj 2001-08-20 07:27:50.000000000 -0400 +++ libc/sysdeps/ia64/strlen.S 2003-04-29 10:35:29.000000000 -0400 @@ -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 . 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 ld8 val2 = [str], 8 // bomb out here br.cond.sptk .back END(strlen) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/ia64/strncmp.S.jj 2001-08-20 07:27:50.000000000 -0400 +++ libc/sysdeps/ia64/strncmp.S 2003-04-29 10:37:06.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/ia64/strncpy.S.jj 2002-12-10 07:39:50.000000000 -0500 +++ libc/sysdeps/ia64/strncpy.S 2003-04-29 10:40:53.000000000 -0400 @@ -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 and Jakub Jelinek . @@ -229,3 +229,4 @@ ENTRY(strncpy) (p5) mov r[MEMLAT - 1] = r0 br.cond.sptk .back4 END(strncpy) +libc_hidden_builtin_def (strncpy) --- libc/sysdeps/m68k/memchr.S.jj 2001-08-23 12:49:59.000000000 -0400 +++ libc/sysdeps/m68k/memchr.S 2003-04-29 10:08:01.000000000 -0400 @@ -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 . @@ -229,3 +229,4 @@ weak_alias (__memchr, memchr) #if !__BOUNDED_POINTERS__ weak_alias (__memchr, __ubp_memchr) #endif +libc_hidden_builtin_def (memchr) --- libc/sysdeps/m68k/strchr.S.jj 2001-08-23 12:49:59.000000000 -0400 +++ libc/sysdeps/m68k/strchr.S 2003-04-29 10:25:57.000000000 -0400 @@ -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 . @@ -255,3 +255,4 @@ L(L9:) END(strchr) weak_alias (strchr, index) +libc_hidden_builtin_def (strchr) --- libc/sysdeps/mips/mips64/memcpy.S.jj 2003-04-13 16:44:12.000000000 -0400 +++ libc/sysdeps/mips/mips64/memcpy.S 2003-04-29 10:10:27.000000000 -0400 @@ -137,3 +137,4 @@ L(shfth): .set reorder END (memcpy) +libc_hidden_builtin_def (memcpy) --- libc/sysdeps/mips/mips64/memset.S.jj 2003-04-13 16:44:12.000000000 -0400 +++ libc/sysdeps/mips/mips64/memset.S 2003-04-29 10:17:42.000000000 -0400 @@ -89,3 +89,4 @@ L(exit): .set reorder END (memset) +libc_hidden_builtin_def (memset) --- libc/sysdeps/mips/memcpy.S.jj 2003-03-22 18:32:36.000000000 -0500 +++ libc/sysdeps/mips/memcpy.S 2003-04-29 10:10:23.000000000 -0400 @@ -133,3 +133,4 @@ L(shfth): .set reorder END (memcpy) +libc_hidden_builtin_def (memcpy) --- libc/sysdeps/mips/memset.S.jj 2003-03-22 18:32:36.000000000 -0500 +++ libc/sysdeps/mips/memset.S 2003-04-29 10:17:45.000000000 -0400 @@ -83,3 +83,4 @@ L(exit): .set reorder END (memset) +libc_hidden_builtin_def (memset) --- libc/sysdeps/powerpc/powerpc32/memset.S.jj 2003-03-20 05:58:53.000000000 -0500 +++ libc/sysdeps/powerpc/powerpc32/memset.S 2003-04-29 10:17:49.000000000 -0400 @@ -332,3 +332,4 @@ L(handletail32): b L(nondcbz) END (BP_SYM (memset)) +libc_hidden_builtin_def (memset) --- libc/sysdeps/powerpc/powerpc32/strchr.S.jj 2002-09-05 04:26:52.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc32/strchr.S 2003-04-29 10:26:11.000000000 -0400 @@ -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) --- libc/sysdeps/powerpc/powerpc32/strcmp.S.jj 2002-09-05 04:27:07.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc32/strcmp.S 2003-04-29 10:28:02.000000000 -0400 @@ -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) --- libc/sysdeps/powerpc/powerpc32/strcpy.S.jj 2002-09-05 04:27:23.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc32/strcpy.S 2003-04-29 10:29:45.000000000 -0400 @@ -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) --- libc/sysdeps/powerpc/powerpc32/strlen.S.jj 2002-09-05 04:27:34.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc32/strlen.S 2003-04-29 10:35:39.000000000 -0400 @@ -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) --- libc/sysdeps/powerpc/powerpc64/memcpy.S.jj 2003-03-18 17:58:31.000000000 -0500 +++ libc/sysdeps/powerpc/powerpc64/memcpy.S 2003-04-29 10:10:46.000000000 -0400 @@ -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) --- libc/sysdeps/powerpc/powerpc64/memset.S.jj 2003-03-20 05:58:53.000000000 -0500 +++ libc/sysdeps/powerpc/powerpc64/memset.S 2003-04-29 10:18:02.000000000 -0400 @@ -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. */ --- libc/sysdeps/powerpc/powerpc64/strchr.S.jj 2003-04-13 16:44:12.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc64/strchr.S 2003-04-29 10:26:20.000000000 -0400 @@ -138,3 +138,4 @@ L(foundit): END (BP_SYM (strchr)) weak_alias (BP_SYM (strchr), BP_SYM (index)) +libc_hidden_builtin_def (strchr) --- libc/sysdeps/powerpc/powerpc64/strcmp.S.jj 2003-04-23 14:11:55.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc64/strcmp.S 2003-04-29 10:28:06.000000000 -0400 @@ -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) --- libc/sysdeps/powerpc/powerpc64/strcpy.S.jj 2003-04-23 14:11:55.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc64/strcpy.S 2003-04-29 10:29:49.000000000 -0400 @@ -141,3 +141,4 @@ L(u1): stb rALT, 1(rDEST) blr END (BP_SYM (strcpy)) +libc_hidden_builtin_def (strcpy) --- libc/sysdeps/powerpc/powerpc64/strlen.S.jj 2003-04-13 16:44:13.000000000 -0400 +++ libc/sysdeps/powerpc/powerpc64/strlen.S 2003-04-29 10:35:43.000000000 -0400 @@ -171,3 +171,4 @@ L(done0): /* GKM FIXME: check high bound. */ blr END (BP_SYM (strlen)) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/powerpc/strcat.c.jj 2001-08-23 12:50:13.000000000 -0400 +++ libc/sysdeps/powerpc/strcat.c 2003-04-29 10:22:13.000000000 -0400 @@ -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) --- libc/sysdeps/sparc/sparc32/memchr.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc32/memchr.S 2003-04-29 10:08:09.000000000 -0400 @@ -144,3 +144,4 @@ weak_alias (__memchr, memchr) #if !__BOUNDED_POINTERS__ weak_alias (__memchr, __ubp_memchr) #endif +libc_hidden_builtin_def (memchr) --- libc/sysdeps/sparc/sparc32/memcpy.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc32/memcpy.S 2003-04-29 10:13:47.000000000 -0400 @@ -966,3 +966,5 @@ ENTRY(memcpy) /* %o0=dst %o1=src %o2=le 110: retl sub %o7, %g6, %o5 END(memcpy) +libc_hidden_builtin_def (memcpy) +libc_hidden_builtin_def (memmove) --- libc/sysdeps/sparc/sparc32/memset.S.jj 2001-08-23 12:50:21.000000000 -0400 +++ libc/sysdeps/sparc/sparc32/memset.S 2003-04-29 10:18:13.000000000 -0400 @@ -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 and Jakub Jelinek . @@ -150,5 +150,6 @@ ENTRY(memset) 0: retl nop END(memset) +libc_hidden_builtin_def (memset) weak_alias(__bzero, bzero) --- libc/sysdeps/sparc/sparc32/strcat.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc32/strcat.S 2003-04-29 10:22:20.000000000 -0400 @@ -346,3 +346,4 @@ ENTRY(strcat) retl mov %g2, %o0 END(strcat) +libc_hidden_builtin_def (strcat) --- libc/sysdeps/sparc/sparc32/strchr.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc32/strchr.S 2003-04-29 10:26:30.000000000 -0400 @@ -280,3 +280,5 @@ END(strrchr) weak_alias(strchr, index) weak_alias(strrchr, rindex) +libc_hidden_builtin_def (strchr) +libc_hidden_builtin_def (strrchr) --- libc/sysdeps/sparc/sparc32/strcmp.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc32/strcmp.S 2003-04-29 10:28:11.000000000 -0400 @@ -255,3 +255,4 @@ ENTRY(strcmp) jmpl %i7 + 8, %g0 restore %g4, %g0, %o0 END(strcmp) +libc_hidden_builtin_def (strcmp) --- libc/sysdeps/sparc/sparc32/strcpy.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc32/strcpy.S 2003-04-29 10:29:52.000000000 -0400 @@ -272,3 +272,4 @@ ENTRY(strcpy) retl mov %g2, %o0 END(strcpy) +libc_hidden_builtin_def (strcpy) --- libc/sysdeps/sparc/sparc32/strlen.S.jj 2001-08-23 12:50:21.000000000 -0400 +++ libc/sysdeps/sparc/sparc32/strlen.S 2003-04-29 10:35:49.000000000 -0400 @@ -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 . @@ -101,3 +101,4 @@ ENTRY(strlen) 13: retl sub %o4, %o1, %o0 END(strlen) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/sparc/sparc64/sparcv9b/memcpy.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/sparcv9b/memcpy.S 2003-04-29 10:11:42.000000000 -0400 @@ -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) --- libc/sysdeps/sparc/sparc64/memchr.S.jj 2001-08-23 12:50:22.000000000 -0400 +++ libc/sysdeps/sparc/sparc64/memchr.S 2003-04-29 10:08:26.000000000 -0400 @@ -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 and Jakub Jelinek . @@ -260,3 +260,4 @@ weak_alias (__memchr, memchr) #if !__BOUNDED_POINTERS__ weak_alias (__memchr, __ubp_memchr) #endif +libc_hidden_builtin_def (memchr) --- libc/sysdeps/sparc/sparc64/memcpy.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/memcpy.S 2003-04-29 10:11:29.000000000 -0400 @@ -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) --- libc/sysdeps/sparc/sparc64/memset.S.jj 2001-08-23 12:50:22.000000000 -0400 +++ libc/sysdeps/sparc/sparc64/memset.S 2003-04-29 10:18:31.000000000 -0400 @@ -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]; \ --- libc/sysdeps/sparc/sparc64/strcat.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/strcat.S 2003-04-29 10:22:26.000000000 -0400 @@ -337,3 +337,4 @@ ENTRY(strcat) retl /* CTI+IEU1 Group */ mov %g6, %o0 /* IEU0 */ END(strcat) +libc_hidden_builtin_def (strcat) --- libc/sysdeps/sparc/sparc64/strchr.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/strchr.S 2003-04-29 10:26:38.000000000 -0400 @@ -479,3 +479,5 @@ END(strrchr) weak_alias (strchr, index) weak_alias (strrchr, rindex) +libc_hidden_builtin_def (strchr) +libc_hidden_builtin_def (strrchr) --- libc/sysdeps/sparc/sparc64/strcmp.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/strcmp.S 2003-04-29 10:28:15.000000000 -0400 @@ -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) --- libc/sysdeps/sparc/sparc64/strcpy.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/strcpy.S 2003-04-29 10:29:56.000000000 -0400 @@ -242,3 +242,4 @@ ENTRY(strcpy) retl /* CTI+IEU1 Group */ mov %g6, %o0 /* IEU0 */ END(strcpy) +libc_hidden_builtin_def (strcpy) --- libc/sysdeps/sparc/sparc64/strcspn.S.jj 2001-08-23 12:50:22.000000000 -0400 +++ libc/sysdeps/sparc/sparc64/strcspn.S 2003-04-29 10:32:52.000000000 -0400 @@ -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 @@ -210,3 +210,4 @@ ENTRY(strcspn) retl /* CTI+IEU1 Group */ sub %o0, %g4, %o0 /* IEU0 */ END(strcspn) +libc_hidden_builtin_def (strcspn) --- libc/sysdeps/sparc/sparc64/strlen.S.jj 2001-08-23 12:50:22.000000000 -0400 +++ libc/sysdeps/sparc/sparc64/strlen.S 2003-04-29 10:35:58.000000000 -0400 @@ -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 and Jakub Jelinek . @@ -171,3 +171,4 @@ ENTRY(strlen) retl /* CTI+IEU1 Group */ sub %o0, %o1, %o0 /* IEU0 */ END(strlen) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/sparc/sparc64/strncmp.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/strncmp.S 2003-04-29 10:37:12.000000000 -0400 @@ -361,3 +361,4 @@ ENTRY(strncmp) ba,pt %xcc, 13b /* CTI */ add %o1, 8, %o1 /* IEU0 */ END(strncmp) +libc_hidden_builtin_def (strncmp) --- libc/sysdeps/sparc/sparc64/strncpy.S.jj 2003-01-30 05:01:49.000000000 -0500 +++ libc/sysdeps/sparc/sparc64/strncpy.S 2003-04-29 10:41:00.000000000 -0400 @@ -394,3 +394,4 @@ ENTRY(strncpy) ba,pt %xcc, 3b /* CTI */ sllx %o4, 56, %g3 /* IEU0 Group */ END(strncpy) +libc_hidden_builtin_def (strncpy) --- libc/sysdeps/sparc/sparc64/strpbrk.S.jj 2001-08-23 12:50:22.000000000 -0400 +++ libc/sysdeps/sparc/sparc64/strpbrk.S 2003-04-29 10:42:22.000000000 -0400 @@ -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 @@ -228,3 +228,4 @@ ENTRY(strpbrk) movrz %g1, 0, %o0 /* Single Group */ END(strpbrk) +libc_hidden_builtin_def (strpbrk) --- libc/sysdeps/sparc/sparc64/strspn.S.jj 2001-08-23 12:50:22.000000000 -0400 +++ libc/sysdeps/sparc/sparc64/strspn.S 2003-04-29 10:44:39.000000000 -0400 @@ -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 @@ -210,3 +210,4 @@ ENTRY(strspn) retl /* CTI+IEU1 Group */ sub %o0, %g4, %o0 /* IEU0 */ END(strspn) +libc_hidden_builtin_def (strspn) --- libc/sysdeps/sh/memcpy.S.jj 2003-01-03 08:06:58.000000000 -0500 +++ libc/sysdeps/sh/memcpy.S 2003-04-29 10:11:51.000000000 -0400 @@ -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 Optimized by Toshiyasu Morita @@ -197,3 +197,4 @@ L_exit: rts mov r3,r0 /* Return destination. */ END(memcpy) +libc_hidden_builtin_def (memcpy) --- libc/sysdeps/sh/memset.S.jj 2003-01-03 08:06:58.000000000 -0500 +++ libc/sysdeps/sh/memset.S 2003-04-29 10:18:38.000000000 -0400 @@ -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 Optimized by Toshiyasu Morita @@ -85,3 +85,4 @@ L_byte_exit: rts mov r7,r0 END(memset) +libc_hidden_builtin_def (memset) --- libc/sysdeps/sh/strlen.S.jj 2001-08-23 12:50:19.000000000 -0400 +++ libc/sysdeps/sh/strlen.S 2003-04-29 10:36:05.000000000 -0400 @@ -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 @@ -82,3 +82,4 @@ ENTRY(strlen) rts mov r2, r0 END(strlen) +libc_hidden_builtin_def (strlen) --- libc/sysdeps/s390/s390-32/memchr.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-32/memchr.S 2003-04-29 10:08:37.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-32/memcpy.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-32/memcpy.S 2003-04-29 10:12:02.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-32/memset.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-32/memset.S 2003-04-29 10:18:45.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-32/strcmp.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-32/strcmp.S 2003-04-29 10:28:24.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-32/strcpy.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-32/strcpy.S 2003-04-29 10:30:04.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-32/strncpy.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-32/strncpy.S 2003-04-29 10:41:07.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-64/memchr.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-64/memchr.S 2003-04-29 10:08:45.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-64/memcpy.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-64/memcpy.S 2003-04-29 10:12:13.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-64/memset.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-64/memset.S 2003-04-29 10:18:51.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-64/strcmp.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-64/strcmp.S 2003-04-29 10:28:30.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-64/strcpy.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-64/strcpy.S 2003-04-29 10:30:11.000000000 -0400 @@ -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) --- libc/sysdeps/s390/s390-64/strncpy.S.jj 2001-08-23 12:50:18.000000000 -0400 +++ libc/sysdeps/s390/s390-64/strncpy.S 2003-04-29 10:41:13.000000000 -0400 @@ -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) --- libc/sysdeps/x86_64/memcpy.S.jj 2002-08-31 13:33:34.000000000 -0400 +++ libc/sysdeps/x86_64/memcpy.S 2003-04-29 10:12:23.000000000 -0400 @@ -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 , 1997. @@ -90,3 +90,4 @@ ENTRY (BP_SYM (memcpy)) ret END (BP_SYM (memcpy)) +libc_hidden_builtin_def (memcpy) --- libc/sysdeps/x86_64/memset.S.jj 2002-08-31 13:42:25.000000000 -0400 +++ libc/sysdeps/x86_64/memset.S 2003-04-29 10:20:31.000000000 -0400 @@ -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 . @@ -129,3 +129,6 @@ ENTRY (memset) jmp 4b END (memset) +#if !BZERO_P +libc_hidden_builtin_def (memset) +#endif --- libc/sysdeps/x86_64/strcat.S.jj 2002-11-15 03:59:04.000000000 -0500 +++ libc/sysdeps/x86_64/strcat.S 2003-04-29 10:22:40.000000000 -0400 @@ -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) --- libc/sysdeps/x86_64/strchr.S.jj 2002-11-15 03:59:04.000000000 -0500 +++ libc/sysdeps/x86_64/strchr.S 2003-04-29 10:26:47.000000000 -0400 @@ -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) --- libc/sysdeps/x86_64/strcmp.S.jj 2002-08-31 13:41:24.000000000 -0400 +++ libc/sysdeps/x86_64/strcmp.S 2003-04-29 10:28:39.000000000 -0400 @@ -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 , 1999. @@ -42,3 +42,4 @@ L(neq): movl $1, %eax cmovbl %ecx, %eax ret END (BP_SYM (strcmp)) +libc_hidden_builtin_def (strcmp) --- libc/sysdeps/x86_64/strcpy.S.jj 2002-08-31 13:41:24.000000000 -0400 +++ libc/sysdeps/x86_64/strcpy.S 2003-04-29 10:30:53.000000000 -0400 @@ -154,3 +154,6 @@ ENTRY (BP_SYM (STRCPY)) #endif retq END (BP_SYM (STRCPY)) +#ifndef USE_AS_STPCPY +libc_hidden_builtin_def (strcpy) +#endif --- libc/sysdeps/x86_64/strcspn.S.jj 2002-08-31 13:41:24.000000000 -0400 +++ libc/sysdeps/x86_64/strcspn.S 2003-04-29 10:33:13.000000000 -0400 @@ -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 . Bug fixes by Alan Modra . @@ -121,3 +121,4 @@ L(4): addq $256, %rsp /* remove skipset #endif ret END (strcspn) +libc_hidden_builtin_def (strcspn) --- libc/sysdeps/x86_64/strlen.S.jj 2002-08-31 13:41:24.000000000 -0400 +++ libc/sysdeps/x86_64/strlen.S 2003-04-29 10:36:17.000000000 -0400 @@ -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 . 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) --- libc/sysdeps/x86_64/strspn.S.jj 2002-08-31 13:41:24.000000000 -0400 +++ libc/sysdeps/x86_64/strspn.S 2003-04-29 10:44:54.000000000 -0400 @@ -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 . Bug fixes by Alan Modra . @@ -111,3 +111,4 @@ L(4): addq $256, %rsp /* remove stopset non-valid character */ ret END (strspn) +libc_hidden_builtin_def (strspn) --- libc/configure.in.jj 2003-04-23 14:11:49.000000000 -0400 +++ libc/configure.in 2003-04-29 09:25:26.000000000 -0400 @@ -1384,8 +1384,8 @@ dnl AC_CHECK_ASM_UNDERSCORE([ACTION-IF-F AC_DEFUN(AC_CHECK_ASM_UNDERSCORE, [cat > conftest.$ac_ext < conftest.c < conftest.c < 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 <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.c <&6 else cat > conftest.c <&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 < - __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; - } -} --- libc/sysdeps/i386/Versions.jj 1999-05-17 13:23:56.000000000 -0400 +++ libc/sysdeps/i386/Versions 2003-04-29 16:44:49.000000000 -0400 @@ -9,7 +9,14 @@ libc { } GLIBC_2.1.1 { # extern inline functions used by - __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; } } Jakub