]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Updated to fedora-glibc-20090408T1602 cvs/fedora-glibc-2_9_90-14
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Apr 2009 16:24:32 +0000 (16:24 +0000)
committerJakub Jelinek <jakub@redhat.com>
Wed, 8 Apr 2009 16:24:32 +0000 (16:24 +0000)
15 files changed:
ChangeLog
NEWS
crypt/Makefile
fedora/branch.mk
fedora/glibc.spec.in
localedata/ChangeLog
localedata/locales/ks_IN@devanagari
resolv/Versions
resolv/nss_dns/dns-host.c
resolv/res_hconf.c
string/stratcliff.c
sysdeps/unix/sysv/linux/kernel-features.h
sysdeps/x86_64/memchr.S
sysdeps/x86_64/strchrnul.S [new file with mode: 0644]
wcsmbs/wcsatcliff.c

index 4923d25b7371956cc23cf0c60aa85c2015dfc5af..ce7cbdc7040e663fce0c73ae251950752b36dcf4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2009-04-07  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/x86_64/strchrnul.S: New file.
+
+       * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
+       depending libcrypt on -lfreebl3.
+
+       * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
+       preadv/pwritev in 2.6.30.
+
+       * resolv/res_hconf.c (_res_hconf_trim_domain): Use strcasecmp
+       instead of __strcasecmp.
+       * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
+
+       * string/stratcliff.c (do_test): Add memchr tests..
+       * wcsmbs/wcsatcliff.c (MEMCHR): Define.
+       * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
+       first read quad word.
+
 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
 
        * string/strverscmp.c (__strverscmp): Fix last cleanups.
diff --git a/NEWS b/NEWS
index e969b61b589f3e4320b4632c6f09378582a32a36..c50a66bb435814a06660366ae7cb3c29238265e4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes.  2009-4-6
+GNU C Library NEWS -- history of user-visible changes.  2009-4-7
 Copyright (C) 1992-2008, 2009 Free Software Foundation, Inc.
 See the end for copying conditions.
 
@@ -37,7 +37,7 @@ Version 2.10
 
 * New locales: nan_TW@latin, ks_IN
 
-* Faster strlen, strchr, and memchr on x86-64.
+* Faster strlen, strchr, strchrnul, and memchr for x86-64.
   Implemented by Ulrich Drepper.
 
 \f
index 3f73d25ea2a0b0988db0f74a0a7448ccb29158a5..b9c87974744426a6cf7c655aa77cd91f0843a607 100644 (file)
@@ -44,7 +44,7 @@ ifeq ($(nss-crypt),yes)
 CPPFLAGS-sha256-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
 CPPFLAGS-sha512-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
 CPPFLAGS-md5-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
-$(objpfx)libcrypt.so: -lfreebl3
+LDLIBS-crypt.so = -lfreebl3
 else
 libcrypt-routines += md5 sha256 sha512
 
index 83f90a76ffbac7713a66f289f84477226f06ce57..040c0d225a24969a247c9d5fdabd28f92edb15c5 100644 (file)
@@ -3,5 +3,5 @@ glibc-branch := fedora
 glibc-base := HEAD
 DIST_BRANCH := devel
 COLLECTION := dist-f8
-fedora-sync-date := 2009-04-07 06:57 UTC
-fedora-sync-tag := fedora-glibc-20090407T0657
+fedora-sync-date := 2009-04-08 16:02 UTC
+fedora-sync-tag := fedora-glibc-20090408T1602
index eb4f745790ca05f165cc22271f2b9798e2a59916..62e55145ab0564150da21c6f4a2ac4926387d51a 100644 (file)
@@ -19,7 +19,7 @@
 Summary: The GNU libc libraries
 Name: glibc
 Version: @glibcversion@
-Release: 13
+Release: 14
 # GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
 # Things that are linked directly into dynamically linked programs
 # and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
@@ -320,7 +320,7 @@ CC="$GCC" CXX="$GXX" CFLAGS="$build_CFLAGS" ../configure --prefix=%{_prefix} \
        --with-headers=%{_prefix}/include --enable-bind-now \
        --with-tls --with-__thread --build %{nptl_target_cpu}-redhat-linux \
        --host %{nptl_target_cpu}-redhat-linux \
-       --disable-profile --enable-experimental-malloc --enable-nss-crypt
+       --disable-profile --enable-nss-crypt
 make %{?_smp_mflags} -r CFLAGS="$build_CFLAGS" PARALLELMFLAGS=-s
 
 cd ..
@@ -1009,6 +1009,10 @@ rm -f *.filelist*
 %endif
 
 %changelog
+* Wed Apr  8 2009 Jakub Jelinek <jakub@redhat.com> 2.9.90-14
+- update from trunk
+- temporarily disable experimental malloc
+
 * Tue Apr  7 2009 Jakub Jelinek <jakub@redhat.com> 2.9.90-13
 - update from trunk
   - fix strverscmp (#494457)
index 9c0a28b97969b0dbe6c775a6cb5c2baf7bb9af5f..8958c21bbc2e29105e387f92130b3271a9e84a49 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-07  Ulrich Drepper  <drepper@redhat.com>
+
+       * locales/ks_IN@devanagari: Replace duplicated information with copy.
+       Fix title.  Patch by Pravin Satpute <psatpute@redhat.com>.
+
 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
 
        * locales/ks_IN: New file.
index 2e55de75bf5c5046b0d325e6c7abd2212b2f47a4..ebc523481ce85dcc9cde4303026f834092afcef8 100644 (file)
@@ -1,11 +1,11 @@
 comment_char    %
 escape_char     /
-% Kashmiri language locale for India.
+% Kashmiri(devanagari) language locale for India.
 % Contributed by Rakesh Pandit <rakesh.pandit@gmail.com> and 
 % Pravin Satpute <psatpute@redhat.com>
 
 LC_IDENTIFICATION
-title      "Kashmiri language locale for India"
+title      "Kashmiri(devanagari) language locale for India"
 source     ""
 address    ""
 contact    ""
@@ -32,51 +32,20 @@ category  "ks_IN@devanagari:2008";LC_TELEPHONE
 END LC_IDENTIFICATION
 
 LC_CTYPE
-copy "i18n"
-
-translit_start
-include "translit_combining";""
-translit_end
+copy "ks_IN"
 END LC_CTYPE
 
 LC_COLLATE
-
-% Copy the template from ISO/IEC 14651
-copy "iso14651_t1"
-
+copy "ks_IN"
 END LC_COLLATE
 
 LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category.
-% These are generated based on XML base Locale difintion file
-% for IBM Class for Unicode/Java
-%
-int_curr_symbol       "<U0049><U004E><U0052><U0020>"
-currency_symbol       "<U0930><U0942>"
-mon_decimal_point     "<U002E>"
-mon_thousands_sep     "<U002C>"
-mon_grouping          3
-positive_sign         ""
-negative_sign         "<U002D>"
-int_frac_digits       2
-frac_digits           2
-p_cs_precedes         1
-p_sep_by_space        1
-n_cs_precedes         1
-n_sep_by_space        1
-p_sign_posn           1
-n_sign_posn           1
-%
+copy "ks_IN"
 END LC_MONETARY
 
 
 LC_NUMERIC
-% This is the POSIX Locale definition for the LC_NUMERIC  category.
-%
-decimal_point          "<U002E>"
-thousands_sep          "<U002C>"
-grouping               3
-%
+copy "ks_IN"
 END LC_NUMERIC
 
 
@@ -185,12 +154,7 @@ END LC_NAME
 
 
 LC_ADDRESS
-postal_fmt  "<U0025><U007A><U0025><U0063><U0025><U0054><U0025><U0073>/
-<U0025><U0062><U0025><U0065><U0025><U0072>"
-
-country_ab2 "<U0049><U004E>"
-country_ab3 "<U0049><U004E><U0044>"
-country_num 356
+copy "ks_IN"
 END LC_ADDRESS
 
 
index e5089f9c692ab8672ebb455c459cb1a35993f1ef..4b2e5e9dbcbe4e759d5282308b065acc4d332ad7 100644 (file)
@@ -102,7 +102,7 @@ libnss_dns {
     _nss_dns_gethostbyname_r; _nss_dns_getnetbyaddr_r;
     _nss_dns_getnetbyname_r; _nss_dns_getcanonname_r;
     _nss_dns_gethostbyaddr2_r;
-    _nss_dns_gethostbyname4_r;
+    _nss_dns_gethostbyname4_r;
   }
 }
 
index a9462ae97ac1fdc10ff8526d81bd58c2f6013dc3..62e67e8b01bd42aedb85f200f5dadccce7370c9f 100644 (file)
@@ -824,7 +824,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
       switch (type)
        {
        case T_PTR:
-         if (__builtin_expect (__strcasecmp (tname, bp) != 0, 0))
+         if (__builtin_expect (strcasecmp (tname, bp) != 0, 0))
            {
              syslog (LOG_NOTICE | LOG_AUTH, AskedForGot, qname, bp);
              cp += n;
index 25f7397927c15b46dde4b194e951bf7476dad9fa..ed55bec29655079502f4519d6f940079091a1c6d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995-2006, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995-2006, 2007, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David Mosberger (davidm@azstarnet.com).
 
index 77fe2bcca9e7cf0fa54cc4380ff90168109436e2..f90616c260d1a4e425bbd6bd1dfbce2bbd66c783 100644 (file)
@@ -1,5 +1,5 @@
 /* Test for string function add boundaries of usable memory.
-   Copyright (C) 1996,1997,1999-2002,2003,2007 Free Software Foundation, Inc.
+   Copyright (C) 1996,1997,1999-2003,2007, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -46,6 +46,7 @@
 # define STPNCPY stpncpy
 # define MEMCPY memcpy
 # define MEMPCPY mempcpy
+# define MEMCHR memchr
 #endif
 
 
@@ -205,6 +206,37 @@ do_test (void)
            }
         }
 
+      /* memchr test */
+      for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+        {
+         for (middle = MAX (outer, nchars - 64); middle < nchars; ++middle)
+           {
+             adr[middle] = L('V');
+
+             CHAR *cp = MEMCHR (&adr[outer], L('V'), 3 * size);
+
+             if (cp - &adr[outer] != middle - outer)
+               {
+                 printf ("%s flunked for outer = %d, middle = %d\n",
+                         STRINGIFY (MEMCHR), outer, middle);
+                 result = 1;
+               }
+
+             adr[middle] = L('T');
+           }
+        }
+      for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+        {
+         CHAR *cp = MEMCHR (&adr[outer], L('V'), nchars - outer);
+
+         if (cp != NULL)
+           {
+             printf ("%s flunked for outer = %d\n",
+                     STRINGIFY (MEMCHR), outer);
+             result = 1;
+           }
+        }
+
       /* This function only exists for single-byte characters.  */
 #ifndef WCSTEST
       /* rawmemchr test */
index a640765b5c62d8c59851e9eb3dd8487f9268669b..5f1ffdb9c530262feda077df15855ca189bf60d1 100644 (file)
 
 /* Support for preadv and pwritev was added in 2.6.30.  */
 #if __LINUX_KERNEL_VERSION >= 0x02061e \
-    && (defined __i386__ || defined __x86_64__)
+    && (defined __i386__ || defined __x86_64__ || defined __powerpc__)
 # define __ASSUME_PREADV       1
 # define __ASSUME_PWRITEV      1
 #endif
index 15484cb9f35c16dc19acab18d622e80447d11cb6..644362d565fd5b4d592296d30da22b8b9c8cba9d 100644 (file)
@@ -37,12 +37,12 @@ ENTRY (memchr)
        shl     %cl, %esi
        pmovmskb %xmm0, %ecx
        andl    %esi, %ecx
-       movl    $0, %esi
+       movl    $16, %esi
        jnz     1f
        cmpq    %rsi, %rdx
        jle     3f
 
-2:     movdqa  16(%rdi,%rsi), %xmm0
+2:     movdqa  (%rdi,%rsi), %xmm0
        leaq    16(%rsi), %rsi
        pcmpeqb %xmm1, %xmm0
        pmovmskb %xmm0, %ecx
@@ -54,10 +54,10 @@ ENTRY (memchr)
 3:     xorl    %eax, %eax
        ret
 
-1:     leaq    (%rdi,%rsi), %rax
+1:     leaq    -16(%rdi,%rsi), %rax
        bsfl    %ecx, %ecx
        addq    %rcx, %rax
-       addq    %rcx, %rsi
+       leaq    -16(%rsi,%rcx), %rsi
        cmpq    %rsi, %rdx
        jle     3b
        ret
diff --git a/sysdeps/x86_64/strchrnul.S b/sysdeps/x86_64/strchrnul.S
new file mode 100644 (file)
index 0000000..576027a
--- /dev/null
@@ -0,0 +1,63 @@
+/* strchrnul (str, ch) -- Return pointer to first occurrence of CH in STR
+       or terminating NUL byte.
+   For AMD x86-64.
+   Copyright (C) 2009 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.  */
+
+#include <sysdep.h>
+
+
+       .text
+ENTRY (__strchrnul)
+       movd    %esi, %xmm1
+       movq    %rdi, %rcx
+       punpcklbw %xmm1, %xmm1
+       andq    $~15, %rdi
+       pxor    %xmm2, %xmm2
+       punpcklbw %xmm1, %xmm1
+       orl     $0xffffffff, %esi
+       movdqa  (%rdi), %xmm0
+       pshufd  $0, %xmm1, %xmm1
+       subq    %rdi, %rcx
+       movdqa  %xmm0, %xmm3
+       leaq    16(%rdi), %rdi
+       pcmpeqb %xmm1, %xmm0
+       pcmpeqb %xmm2, %xmm3
+       shl     %cl, %esi
+       pmovmskb %xmm0, %edx
+       pmovmskb %xmm3, %ecx
+       orl     %edx, %ecx
+       andl    %esi, %ecx
+       jnz     1f
+
+2:     movdqa  (%rdi), %xmm0
+       leaq    16(%rdi), %rdi
+       movdqa  %xmm0, %xmm3
+       pcmpeqb %xmm1, %xmm0
+       pcmpeqb %xmm2, %xmm3
+       pmovmskb %xmm0, %edx
+       pmovmskb %xmm3, %ecx
+       orl     %edx, %ecx
+       jz      2b
+
+1:     bsfl    %ecx, %edx
+       leaq    -16(%rdi,%rdx), %rax
+       ret
+END (__strchrnul)
+
+weak_alias (__strchrnul, strchrnul)
index 22db60763fbb08e261747a3b807adce5001e4b8b..b29571f2948e35b991b01f33cfd46a2cf0543ce7 100644 (file)
@@ -15,6 +15,7 @@
 #define STPNCPY wcpncpy
 #define MEMCPY wmemcpy
 #define MEMPCPY wmempcpy
+#define MEMCHR wmemchr
 
 
 #include "../string/stratcliff.c"