Speed up x86-64 strcasestr a bit moew.
[glibc.git] / ChangeLog
blob4a22a079723db03379b18edda10aa0a1b1a6680c
1 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
4         lower-latency instructions.
6 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
8         * string/test-strcasestr.c: New file.
9         * string/test-strstr.c: New file.
10         * string/Makefile (strop-tests): Add strstr and strcasestr.
11         * string/str-two-way.h: Don't undefine MAX.
12         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14 2010-07-21  Andreas Schwab  <schwab@redhat.com>
16         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17         strcasestr-nonascii.
18         (CFLAGS-strcasestr-nonascii.c): Define.
19         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21         Remove unused attribute.
23 2010-07-20  Roland McGrath  <roland@redhat.com>
25         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
26         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
27         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28         like LD_HWCAP_MASK can disable hwcaps.
30 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
32         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
34 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
36         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
37         call in strcasestr.
38         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
39         __strcasestr_sse42_nonascii.
40         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
41         strcasestr-nonascii.c.
42         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
44 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
47         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
48         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
49         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
51 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
53         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
54         fcntl.
56 2010-07-06  Andreas Schwab  <schwab@redhat.com>
58         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
59         dl_signal_cerror.
61 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
63         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
64         _PC_PIPE_BUF using F_GETPIPE_SZ.
66 2010-07-05  Roland McGrath  <roland@redhat.com>
68         * manual/arith.texi (Rounding Functions): Fix rint description
69         implicit in round description.
71 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
73         * elf/Makefile: Fix linking for a few tests to make recent linker
74         happy.
76 2010-06-30  Andreas Schwab  <schwab@redhat.com>
78         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
79         $(common-objpfx)libc_nonshared.a.
81 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
83         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
84         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
85         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
86         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
87         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
88         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
89         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
91         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
92         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
93         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
94         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
95         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
96         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
97         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
98         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
99         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
105         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
106         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
107         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
108         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
109         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
110         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
111         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
112         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
113         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
114         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
115         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
116         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
132 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
134         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
135         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
136         * string/memmove.c (memmove): Renamed to ...
137         (MEMMOVE): ...this.  Default to memmove.
138         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
139         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
140         (END_CHK): Define.
141         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
142         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
143         mempcpy-ssse3-back memmove-ssse3-back.
144         * sysdeps/x86_64/multiarch/bcopy.S: New file .
145         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
146         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
147         * sysdeps/x86_64/multiarch/memcpy.S: New file.
148         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
149         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
150         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
151         * sysdeps/x86_64/multiarch/memmove.c: New file.
152         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
153         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
154         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
155         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
156         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
157         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
158         Define.
159         (index_Fast_Copy_Backward): Define.
160         (HAS_ARCH_FEATURE): Define.
161         (HAS_FAST_REP_STRING): Define.
162         (HAS_FAST_COPY_BACKWARD): Define.
164 2010-06-21  Andreas Schwab  <schwab@redhat.com>
166         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
167         Restore proper fallback handling.
169 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
171         [BZ #11701]
172         * posix/group_member.c (__group_member): Correct checking loop.
174         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
175         OOM in getpwuid_r correctly.  Return error number when the caller
176         should return, otherwise -1.
177         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
178         call returning > 0 value.
179         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
181 2010-06-07  Andreas Schwab  <schwab@redhat.com>
183         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
184         libc_nonshared.a from targets in modules-names.
186 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
188         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
189         requires it.
191 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
193         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
194         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
195         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
196         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
198 2010-06-02  Andreas Schwab  <schwab@redhat.com>
200         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
202 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
204         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
205         and F_GETPIPE_SZ.
206         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
207         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
208         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
209         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
210         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
211         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
213 2010-06-14  Roland McGrath  <roland@redhat.com>
215         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
217 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
219         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
220         __REDIRECT followed by __THROW.
221         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
222         * posix/getopt.h (getopt): Likewise.
224 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
226         * hurd/lookup-at.c (__file_name_lookup_at): Accept
227         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
228         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
229         in AT_FLAGS.
230         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
231         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
233 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
235         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
237 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
239         [BZ #11640]
240         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
241         Properly check family and model.
243 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
245         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
247 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
249         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
251 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
253         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
254         symbol reference.
256 2010-05-19  Andreas Schwab  <schwab@redhat.com>
258         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
259         symbol reference.
261 2010-05-21  Andreas Schwab  <schwab@redhat.com>
263         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
264         and internal_recvmmsg.
265         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
266         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
267         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
268         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
270         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
271         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
272         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
274 2010-05-20  Andreas Schwab  <schwab@redhat.com>
276         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
278 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
280         POWER7 optimizations.
281         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
282         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
284 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
286         * version.h: Update for 2.13 development version.
288 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
290         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
291         exceptions.  Return 0.
293 2010-05-07  Roland McGrath  <roland@redhat.com>
295         * elf/ldconfig.c (main): Add a const.
297 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
299         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
300         (args_options): Add no-idn option.
301         (ahosts_keys_int): Add idn_flags to ai_flags.
302         (parse_option): Handle 'i' option to clear idn_flags.
304         * malloc/malloc.c (_int_free): Possible race in the most recently
305         added check.  Only act on the data if no current modification
306         happened.
308 See ChangeLog.17 for earlier changes.