Use IFUNC on x86-64 memset
[glibc.git] / ChangeLog
blob005266c9c3bee2d22784f893045ad0bec19f4709
1 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
4         IFUNC support.
5         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6         memset-x86-64.
7         * sysdeps/x86_64/multiarch/bzero.S: New file.
8         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
9         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10         * sysdeps/x86_64/multiarch/memset.S: New file.
11         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
12         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13         Set bit_Prefer_SSE_for_memop for Intel processors.
14         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
15         Define.
16         (index_Prefer_SSE_for_memop): Define.
17         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
22         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
24 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
26         [BZ #12191]
27         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28         (__x86_64_raw_data_cache_size_half): Likewise.
29         (__x86_64_raw_shared_cache_size): Likewise.
30         (__x86_64_raw_shared_cache_size_half): Likewise.
32         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33         (__x86_64_raw_data_cache_size_half): Likewise.
34         (__x86_64_raw_shared_cache_size): Likewise.
35         (__x86_64_raw_shared_cache_size_half): Likewise.
36         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
38         and __x86_64_raw_shared_cache_size_half.  Round
39         __x86_64_data_cache_size_half, __x86_64_data_cache_size
40         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
41         to multiple of 256 bytes.
43 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
45         [BZ #12167]
46         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
47         of inacessible symlinks.  Verify result of symlink before returning it.
48         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
49         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
51 2010-10-28  Erich Ritz  <erichritz@gmail.com>
53         * math/math.h (isinf): Fix typo in comment.
55 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
57         * po/da.po: Update from translation team.
59 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
61         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
62         is added to the list.
64 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65             Ulrich Drepper  <drepper@gmail.com>
67         * elf/dl-object.c (_dl_new_object): Don't append the new object to
68         the global list here.  Move code to...
69         (_dl_add_to_namespace_list): ...here.  New function.
70         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
71         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
72         * elf/dl-load.c (lose): Don't remove the element from the list.
73         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
74         (_dl_map_object): Likewise.
76 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
78         [BZ #12159]
79         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
80         into all bytes of SSE register.
81         Patch by Richard Li <richardpku@gmail.com>.
83 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
85         [BZ #12140]
86         * malloc/malloc.c (_int_free): Fill correct number of bytes when
87         perturbing.
89 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
91         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
92         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
93         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
94         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
95         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
96         submachine.
97         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
99 2010-10-22  Andreas Schwab  <schwab@redhat.com>
101         * include/dlfcn.h (__RTLD_SECURE): Define.
102         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
103         mode & __RTLD_SECURE instead.
104         (open_path): Rename preloaded parameter to secure.
105         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
106         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
107         * elf/dl-deps.c (openaux): Likewise.
108         * elf/rtld.c (struct map_args): Remove is_preloaded.
109         (map_doit): Don't use it.
110         (dl_main): Likewise.
111         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
112         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
114 2010-09-09  Andreas Schwab  <schwab@redhat.com>
116         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
117         (sysd-rules-targets): Remove duplicates.
118         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
119         rtld-%.$o dependency.
121 2010-10-18  Andreas Schwab  <schwab@redhat.com>
123         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
124         _dl_map_object do it.
126 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
128         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
129         fast fma builtins, define the macros in the C99 standard.
130         (FP_FAST_FMAF): Likewise.
131         (FP_FAST_FMAL): Likewise.
132         * sysdeps/x86_64/bits/mathdef.h: Likewise.
134         * bits/mathdef.h: Update copyright year.
135         * sysdeps/powerpc/bits/mathdef.h: Likewise.
137 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
139         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
140         builtins, define the macros in the C99 standard.
141         (FP_FAST_FMAF): Likewise.
142         (FP_FAST_FMAL): Likewise.
143         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
144         multiply/add.
145         (FP_FAST_FMAF): Likewise.
147 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
149         [BZ #3268]
150         * math/libm-test.inc (fma_test): Some new testcases.
151         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
152         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
153         y and infinite z.  Do multiplication by C already in long double.
154         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
155         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
156         y and infinite z.  Do bitwise or of inexact bit into u.d.
157         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
158         * sysdeps/i386/fpu/s_fmaf.S: Removed.
159         * sysdeps/i386/fpu/s_fma.S: Removed.
160         * sysdeps/i386/fpu/s_fmal.S: Removed.
162 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
164         [BZ #3268]
165         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
166         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
167         computation is not scheduled after fetestexcept.  Fix value
168         of minimum denormal long double.
170 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
172         [BZ #3268]
173         * math/libm-test.inc (fma_test): Add some more tests.
174         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
175         correctly.
177 2010-10-15  Andreas Schwab  <schwab@redhat.com>
179         * scripts/data/localplt-s390-linux-gnu.data: New file.
180         * scripts/data/localplt-s390x-linux-gnu.data: New file.
182 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
184         [BZ #3268]
185         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
186         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
187         instead of dbl-64.
188         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
189         inlines.
190         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
191         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
192         if one of x and y is very large and the other is subnormal.
193         * sysdeps/s390/fpu/s_fmaf.c: New file.
194         * sysdeps/s390/fpu/s_fma.c: New file.
195         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
196         * sysdeps/powerpc/fpu/s_fma.S: New file.
197         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
198         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
199         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
201 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
203         [BZ #3268]
204         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
205         fma tests.
206         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
207         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
208         * sysdeps/i386/i686/multiarch/s_fma.c: Include
209         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
210         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
211         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
212         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
214 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
216         [BZ #12078]
217         * posix/regcomp.c (parse_branch): One more memory leak plugged.
218         * posix/bug-regex31.input: Add test case.
220 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
222         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
223         * posix/bug-regex31.input: New file.
225         [BZ #12078]
226         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
227         (parse_sub_exp): Fix last change, use postorder.
229         * posix/bug-regex31.c: New file.
230         * posix/Makefile: Add rules to build and run bug-regex31.
232         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
234         [BZ #12078]
235         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
237         [BZ #12108]
238         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
239         to have entries in sys_siglist.
241         [BZ #12093]
242         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
243         be NULL.
245 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
247         [BZ #3268]
248         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
249         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
250         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
251         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
252         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
253         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
254         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
255         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
256         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
257         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
258         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
259         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
260         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
261         * math/ftestexcept.c (fetestexcept): Likewise.
262         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
263         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
264         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
265         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
266         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
267         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
268         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
270 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
272         [BZ #12107]
273         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
274         newline.
276 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
278         * string/bug-strstr1.c: New file.
279         * string/Makefile: Add rules to build and run bug-strstr1.
281 2010-10-05  Eric Blake  <eblake@redhat.com>
283         [BZ #12092]
284         * string/str-two-way.h (two_way_long_needle): Always clear memory
285         when skipping input due to the shift table.
287 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
289         [BZ #12005]
290         * malloc/mcheck.c: Handle large requests.
292         [BZ #12077]
293         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
294         for strncmp and strncasecmp.
295         * string/stratcliff.c: Add tests for strcmp and strncmp.
296         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
298 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
300         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
301         __set_fpscr.
303 2010-09-30  Andreas Jaeger  <aj@suse.de>
305         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
306         (CGROUP_SUPER_MAGIC): Define.
307         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
308         Handle btrfs and cgroup file systems.
309         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
310         Likewise.
312 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
314         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
315         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
317 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
319         [BZ #12067]
320         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
321         trying to locate the ELF header.
323 2010-09-27  Andreas Schwab  <schwab@redhat.com>
325         [BZ #11611]
326         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
327         Mask out sign-bit copies when constructing f_fsid.
329 2010-09-24  Petr Baudis <pasky@suse.cz>
331         * debug/stack_chk_fail_local.c: Add missing licence exception.
332         * debug/warning-nop.c: Likewise.
334 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
336         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
337         implementing getdents64 using getdents syscall, set d_type if
338         __ASSUME_GETDENTS32_D_TYPE.
340 2010-09-16  Andreas Schwab  <schwab@redhat.com>
342         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
343         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
345 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
347         [BZ #12037]
348         * posix/unistd.h: Undo change of feature selection for ftruncate from
349         2010-01-11.
351 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
353         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
354         detection.
356 2010-09-20  Andreas Schwab  <schwab@redhat.com>
358         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
359         fanotify_mark.
360         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
362 2010-09-14  Andreas Schwab  <schwab@redhat.com>
364         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
365         variables after CHECK_SP call.
366         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
368 2010-09-13  Andreas Schwab  <schwab@redhat.com>
369             Ulrich Drepper  <drepper@redhat.com>
371         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
372         re-relocationg ld.so.
373         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
374         _dl_init_paths call.
375         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
376         here anymore.
378 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
380         * resolv/res_init.c (__res_vinit): Count the default server we added.
382 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
383             Ulrich Drepper  <drepper@redhat.com>
385         [BZ #11968]
386         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
387         (____longjmp_chk): Use %ebx for saving value across system call.
388         Add unwind info.
390 2010-09-06  Andreas Schwab  <schwab@redhat.com>
392         * manual/Makefile: Don't mix pattern rules with normal rules.
394 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
396         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
397         operation.
398         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
399         * libio/iofopncook.c (_IO_cookie_init): Likewise.
400         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
401         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
402         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
403         Likewise.
405 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
407         [BZ #11979]
408         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
409         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
411 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
413         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
414         * sysdeps/x86_64/addmul_1.S: Likewise.
415         * sysdeps/x86_64/lshift.S: Likewise.
416         * sysdeps/x86_64/mul_1.S: Likewise.
417         * sysdeps/x86_64/rshift.S: Likewise.
418         * sysdeps/x86_64/sub_n.S: Likewise.
419         * sysdeps/x86_64/submul_1.S: Likewise.
421 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
423         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
424         Define __sched_param instead of SCHED_* and sched_param when
425         <bits/sched.h> is included with __need_schedparam defined.
426         * bits/sched.h [__need_schedparam]
427         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
428         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
429         (__defined_schedparam): Define to 1.
430         (__sched_param): New structure, identical to sched_param.
431         (__need_schedparam): Undefine.
433 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
435         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
436         (epoll_create1): Declare.
438         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
440 2010-08-31  Andreas Schwab  <schwab@redhat.com>
442         [BZ #7066]
443         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
444         shifting retval into place.
446 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
448         * nis/rpcsvc/nis.h: Update copyright notice.
449         * nis/rpcsvc/nis.x: Likewise.
450         * nis/rpcsvc/nis_callback.h: Likewise.
451         * nis/rpcsvc/nis_callback.x: Likewise.
452         * nis/rpcsvc/nis_object.x: Likewise.
453         * nis/rpcsvc/nis_tags.h: Likewise.
454         * nis/rpcsvc/yp.h: Likewise.
455         * nis/rpcsvc/yp.x: Likewise.
456         * nis/rpcsvc/ypupd.h: Likewise.
457         * nis/yp_xdr.c: Likewise.
458         * nis/ypupdate_xdr.c: Likewise.
460         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
461         mainly the body of pmap_getport.  Add parameters to specify timeouts.
462         (pmap_getport): Use __libc_rpc_getport.
463         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
464         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
465         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
467 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
470         fanotify_mark.
472 2010-08-27  Roland McGrath  <roland@redhat.com>
474         * sysdeps/i386/i686/multiarch/Makefile
475         (CFLAGS-varshift.c): New variable.
477 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
479         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
480         * sysdeps/i386/i686/multiarch/varshift.c: New file.
482         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
484         * sysdeps/x86_64/strlen.S: Minimal code improvement.
486 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
488         * sysdeps/x86_64/strlen.S: Unroll the loop.
489         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
490         strlen-sse2 strlen-sse2-bsf.
491         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
492         __strlen_no_bsf if bit_Slow_BSF is set.
493         (__strlen_sse42): Removed.
494         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
495         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
497 2010-08-25  Roland McGrath  <roland@redhat.com>
499         * sysdeps/x86_64/multiarch/varshift.S: File removed.
500         * sysdeps/x86_64/multiarch/varshift.c: New file.
501         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
502         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
503         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
504         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
506 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
508         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
509         strlen-sse2 strlen-sse2-bsf.
510         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
511         __strlen_sse2_bsf if bit_Slow_BSF is unset.
512         (__strlen_sse2): Removed.
513         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
514         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
515         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
516         bit_Slow_BSF for Atom.
517         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
518         (index_Slow_BSF): Define.
519         (HAS_SLOW_BSF): Define.
521 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
523         [BZ #10851]
524         * resolv/res_init.c (__res_vinit): When no server address at all
525         is given default to loopback.
527 2010-08-24  Roland McGrath  <roland@redhat.com>
529         * configure.in: Remove config-name.h generation.
530         * configure: Regenerated.
531         * config-name.in: File removed.
532         * scripts/config-uname.sh: New file.
533         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
534         ($(objdir)config-name.h): New target.
536         * sunrpc/rpc_parse.h: Avoid nested comment.
538 2010-08-24  Richard Henderson  <rth@redhat.com>
539             Ulrich Drepper  <drepper@redhat.com>
540             H.J. Lu  <hongjiu.lu@intel.com>
542         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
543         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
544         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
545         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
546         _mm_alignr_epi8 with _mm_loadu_si128.
547         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
548         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
549         (__m128i_shift_right): Removed.
550         * sysdeps/i386/i686/multiarch/varshift.h: New file.
551         * sysdeps/i386/i686/multiarch/varshift.S: New file.
552         * sysdeps/x86_64/multiarch/varshift.h: New file.
553         * sysdeps/x86_64/multiarch/varshift.S: New file.
555 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
557         * configure.in: Move assembler checks to before sysdep dir checking.
559 2010-08-20  Petr Baudis  <pasky@suse.cz>
561         * LICENSES: Sync the sunrpc license.
563 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
565         * sunrpc/auth_des.c: Update copyright notice once again.
566         * sunrpc/auth_none.c: Likewise.
567         * sunrpc/auth_unix.c: Likewise.
568         * sunrpc/authdes_prot.c: Likewise.
569         * sunrpc/authuxprot.c: Likewise.
570         * sunrpc/bindrsvprt.c: Likewise.
571         * sunrpc/clnt_gen.c: Likewise.
572         * sunrpc/clnt_perr.c: Likewise.
573         * sunrpc/clnt_raw.c: Likewise.
574         * sunrpc/clnt_simp.c: Likewise.
575         * sunrpc/clnt_tcp.c: Likewise.
576         * sunrpc/clnt_udp.c: Likewise.
577         * sunrpc/clnt_unix.c: Likewise.
578         * sunrpc/des_crypt.c: Likewise.
579         * sunrpc/des_soft.c: Likewise.
580         * sunrpc/get_myaddr.c: Likewise.
581         * sunrpc/getrpcport.c: Likewise.
582         * sunrpc/key_call.c: Likewise.
583         * sunrpc/key_prot.c: Likewise.
584         * sunrpc/openchild.c: Likewise.
585         * sunrpc/pm_getmaps.c: Likewise.
586         * sunrpc/pm_getport.c: Likewise.
587         * sunrpc/pmap_clnt.c: Likewise.
588         * sunrpc/pmap_prot.c: Likewise.
589         * sunrpc/pmap_prot2.c: Likewise.
590         * sunrpc/pmap_rmt.c: Likewise.
591         * sunrpc/rpc/auth.h: Likewise.
592         * sunrpc/rpc/auth_unix.h: Likewise.
593         * sunrpc/rpc/clnt.h: Likewise.
594         * sunrpc/rpc/des_crypt.h: Likewise.
595         * sunrpc/rpc/key_prot.h: Likewise.
596         * sunrpc/rpc/netdb.h: Likewise.
597         * sunrpc/rpc/pmap_clnt.h: Likewise.
598         * sunrpc/rpc/pmap_prot.h: Likewise.
599         * sunrpc/rpc/pmap_rmt.h: Likewise.
600         * sunrpc/rpc/rpc.h: Likewise.
601         * sunrpc/rpc/rpc_des.h: Likewise.
602         * sunrpc/rpc/rpc_msg.h: Likewise.
603         * sunrpc/rpc/svc.h: Likewise.
604         * sunrpc/rpc/svc_auth.h: Likewise.
605         * sunrpc/rpc/types.h: Likewise.
606         * sunrpc/rpc/xdr.h: Likewise.
607         * sunrpc/rpc_clntout.c: Likewise.
608         * sunrpc/rpc_cmsg.c: Likewise.
609         * sunrpc/rpc_common.c: Likewise.
610         * sunrpc/rpc_cout.c: Likewise.
611         * sunrpc/rpc_dtable.c: Likewise.
612         * sunrpc/rpc_hout.c: Likewise.
613         * sunrpc/rpc_main.c: Likewise.
614         * sunrpc/rpc_parse.c: Likewise.
615         * sunrpc/rpc_parse.h: Likewise.
616         * sunrpc/rpc_prot.c: Likewise.
617         * sunrpc/rpc_sample.c: Likewise.
618         * sunrpc/rpc_scan.c: Likewise.
619         * sunrpc/rpc_scan.h: Likewise.
620         * sunrpc/rpc_svcout.c: Likewise.
621         * sunrpc/rpc_tblout.c: Likewise.
622         * sunrpc/rpc_util.c: Likewise.
623         * sunrpc/rpc_util.h: Likewise.
624         * sunrpc/rpcinfo.c: Likewise.
625         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
626         * sunrpc/rpcsvc/key_prot.x: Likewise.
627         * sunrpc/rpcsvc/klm_prot.x: Likewise.
628         * sunrpc/rpcsvc/mount.x: Likewise.
629         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
630         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
631         * sunrpc/rpcsvc/rex.x: Likewise.
632         * sunrpc/rpcsvc/rstat.x: Likewise.
633         * sunrpc/rpcsvc/rusers.x: Likewise.
634         * sunrpc/rpcsvc/sm_inter.x: Likewise.
635         * sunrpc/rpcsvc/spray.x: Likewise.
636         * sunrpc/rpcsvc/yppasswd.x: Likewise.
637         * sunrpc/rtime.c: Likewise.
638         * sunrpc/svc.c: Likewise.
639         * sunrpc/svc_auth.c: Likewise.
640         * sunrpc/svc_authux.c: Likewise.
641         * sunrpc/svc_raw.c: Likewise.
642         * sunrpc/svc_run.c: Likewise.
643         * sunrpc/svc_simple.c: Likewise.
644         * sunrpc/svc_tcp.c: Likewise.
645         * sunrpc/svc_udp.c: Likewise.
646         * sunrpc/svc_unix.c: Likewise.
647         * sunrpc/svcauth_des.c: Likewise.
648         * sunrpc/xcrypt.c: Likewise.
649         * sunrpc/xdr.c: Likewise.
650         * sunrpc/xdr_array.c: Likewise.
651         * sunrpc/xdr_float.c: Likewise.
652         * sunrpc/xdr_mem.c: Likewise.
653         * sunrpc/xdr_rec.c: Likewise.
654         * sunrpc/xdr_ref.c: Likewise.
655         * sunrpc/xdr_sizeof.c: Likewise.
656         * sunrpc/xdr_stdio.c: Likewise.
658         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
659         handling.
661 2010-08-19  Andreas Schwab  <schwab@redhat.com>
663         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
665 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
667         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
668         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
669         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
670         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
671         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
672         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
673         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
674         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
675         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
676         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
677         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
678         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
679         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
680         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
682 2010-07-26  Anton Blanchard  <anton@samba.org>
684         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
685         * malloc/arena.c (heap_trim): Likewise.
687 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
689         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
690         here.  Not...
691         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
692         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
694 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
696         * sysdeps/i386/elf/Makefile: New file.
698 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
700         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
701         from fanotify_init.
702         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
703         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
705 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
707         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
708         of strncasecmp_l.
709         * sysdeps/multiarch/strcmp.S: Likewise.
711 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
713         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
714         strncase_l-nonascii.
715         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
716         Add strncase_l-ssse3.
717         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
718         * sysdeps/x86_64/strcmp.S: Likewise.
719         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
720         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
721         * sysdeps/x86_64/strncase.S: New file.
722         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
723         * sysdeps/x86_64/strncase_l.S: New file.
724         * string/Makefile (strop-tests): Add strncasecmp.
725         * string/test-strncasecmp.c: New file.
727         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
728         warning.
730         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
731         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
733 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
735         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
737 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
739         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
740         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
741         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
743 2010-05-01  Alan Modra  <amodra@gmail.com>
745         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
746         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
747         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
748         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
749         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
750         tidying.  Don't tail-call __sigjmp_save for static lib.
751         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
752         save location.
753         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
754         (CALL_MCOUNT): Add eh info, and nop after bl.
755         (TAIL_CALL_SYSCALL_ERROR): New macro.
756         (PSEUDO_RET): Use it.
757         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
758         Correct save location of integer regs and cr.
759         (_dl_profile_resolve): Correct cr save location.  Delete nops
760         after bl when SHARED.  Reduce cfi size a little by better
761         placement of cfi directives.
762         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
763         make a stack frame.  Instead use parm save area as a temp.
764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
765         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
767         Don't make a stack frame for parent, use parm save area.
768         Increase child stack frame to 112 bytes.  Don't save unused reg,
769         and adjust reg usage.  Set up cfi on error recovery and
770         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
772         (__makecontext): Add dummy nop after jump to exit.
773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
774         Use correct parm save area and cr save, reduce stack frame.
775         Correct cfi for possible PSEUDO_RET frame setup.
776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
777         Branch to local label emitted by PSEUDO_RET rather than
778         __syscall_error.
780 2010-08-12  Andreas Schwab  <schwab@redhat.com>
782         [BZ #11904]
783         * locale/programs/locale.c (print_assignment): New function.
784         (show_locale_vars): Use it.
786 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
788         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
789         field.
790         (struct statfs64): Likewise.
791         (_STATFS_F_FLAGS): Define.
792         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
793         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
794         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
795         (ST_VALID): Define locally.
796         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
797         __statvfs_getflags, use the provided value.
798         * sysdeps/unix/sysv/linux/kernel-features.h: Define
799         __ASSUME_STATFS_F_FLAGS.
801         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
803         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
804         Add sys/fanotify.h.
805         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
806         fanotify_mask for GLIBC_2.13.
807         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
808         fanotify_init and fanotify_mark.
809         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
810         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
812         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
813         Add prlimit.
814         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
815         prlimit64 for GLIBC_2.13.
816         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
817         prlimit64.
818         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
819         syscall.
820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
821         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
822         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
823         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
824         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
825         add prlimit alias.
826         * sysdeps/unix/sysv/linux/prlimit.c: New file.
828         [BZ #11903]
829         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
830         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
832         * nss/Makefile: Add rules to build and run tst-nss-test1.
833         * shlib-versions: Add entry for libnss_test1.
834         * nss/nss_test1.c: New file.
835         * nss/tst-nss-test1.c: New file.
837         * nss/nsswitch.c (__nss_database_custom): Define new variable.
838         (__nss_configure_lookup): Set appropriate entry in
839         __nss_configure_lookup to true.
840         * nss/nsswitch.h: Define enum with indeces of databases in
841         databases and __nss_database_custom arrays.  Declare
842         __nss_database_custom.
843         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
844         to avoid using nscd when custom rules are installed.
845         * nss/getXXbyYY_r.c: Likewise.
846         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
848         * nss/nss_files/files-parse.c: Whitespace fixes.
850 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
852         [BZ #11883]
853         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
854         * posix/fnmatch_loop.c: Likewise.
856 2010-07-17  Andi Kleen  <ak@linux.intel.com>
858         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
859         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
860         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
861         * Versions.def [GLIBC_2.13]: Add.
863 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
865         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
866         Also fail if tpwd after pwuid call is NULL.
868 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
870         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
871         when converting to ms.
873 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
875         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
876         EOPNOTSUPP errors with ENOTTY.
877         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
878         EOPNOTSUPP errors with ENOTTY.
880 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
882         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
883         Add strcasecmp_l-ssse3.
884         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
885         strcasecmp.
886         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
887         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
888         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
890 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
892         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
894         * string/Makefile (strop-tests): Add strcasecmp.
895         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
896         strcasecmp_l-nonascii.
897         (gen-as-const-headers): Add locale-defines.sym.
898         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
899         * sysdeps/x86_64/strcasecmp.S: New file.
900         * sysdeps/x86_64/strcasecmp_l.S: New file.
901         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
902         * sysdeps/x86_64/locale-defines.sym: New file.
903         * string/test-strcasecmp.c: New file.
905         * string/test-strcasestr.c: Test both ends of the range of characters.
906         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
908 2010-07-29  Roland McGrath  <roland@redhat.com>
910         [BZ #11856]
911         * manual/locale.texi (Yes-or-No Questions): Fix example code.
913 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
915         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
916         for ld.so.
918 2010-07-27  Andreas Schwab  <schwab@redhat.com>
920         * manual/memory.texi (Malloc Tunable Parameters): Document
921         M_PERTURB.
923 2010-07-26  Roland McGrath  <roland@redhat.com>
925         [BZ #11840]
926         * configure.in (-fgnu89-inline check): Set and substitute
927         gnu89_inline, not libc_cv_gnu89_inline.
928         * configure: Regenerated.
929         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
931 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
933         * string/test-strnlen.c: New file.
934         * string/Makefile (strop-tests): Add strnlen.
935         * string/tester.c (test_strnlen): Add a few more test cases.
936         * string/tst-strlen.c: Better error reporting.
938         * sysdeps/x86_64/strnlen.S: New file.
940 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
942         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
943         lower-latency instructions.
945 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
947         * string/test-strcasestr.c: New file.
948         * string/test-strstr.c: New file.
949         * string/Makefile (strop-tests): Add strstr and strcasestr.
950         * string/str-two-way.h: Don't undefine MAX.
951         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
953 2010-07-21  Andreas Schwab  <schwab@redhat.com>
955         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
956         strcasestr-nonascii.
957         (CFLAGS-strcasestr-nonascii.c): Define.
958         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
959         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
960         Remove unused attribute.
962 2010-07-20  Roland McGrath  <roland@redhat.com>
964         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
965         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
966         ld.so.cache was broken.  With it, there is no way to disable dsocaps
967         like LD_HWCAP_MASK can disable hwcaps.
969 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
971         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
973 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
975         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
976         call in strcasestr.
977         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
978         __strcasestr_sse42_nonascii.
979         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
980         strcasestr-nonascii.c.
981         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
983 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
985         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
986         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
987         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
988         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
990 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
992         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
993         fcntl.
995 2010-07-06  Andreas Schwab  <schwab@redhat.com>
997         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
998         dl_signal_cerror.
1000 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
1002         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
1003         _PC_PIPE_BUF using F_GETPIPE_SZ.
1005 2010-07-05  Roland McGrath  <roland@redhat.com>
1007         * manual/arith.texi (Rounding Functions): Fix rint description
1008         implicit in round description.
1010 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
1012         * elf/Makefile: Fix linking for a few tests to make recent linker
1013         happy.
1015 2010-06-30  Andreas Schwab  <schwab@redhat.com>
1017         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
1018         $(common-objpfx)libc_nonshared.a.
1020 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
1022         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
1023         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
1024         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
1025         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
1026         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
1027         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
1028         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
1029         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
1030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
1031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
1032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
1033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
1034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
1035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
1036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
1037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
1038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
1039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
1040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
1041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
1042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
1043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
1044         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
1045         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
1046         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
1047         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
1048         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
1049         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
1050         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
1051         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
1052         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
1053         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
1054         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
1055         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
1056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
1057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
1058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
1059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
1060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
1061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
1062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
1063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
1064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
1066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
1067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
1068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
1069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
1071 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
1073         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
1074         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
1075         * string/memmove.c (memmove): Renamed to ...
1076         (MEMMOVE): ...this.  Default to memmove.
1077         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
1078         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
1079         (END_CHK): Define.
1080         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1081         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
1082         mempcpy-ssse3-back memmove-ssse3-back.
1083         * sysdeps/x86_64/multiarch/bcopy.S: New file .
1084         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
1085         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
1086         * sysdeps/x86_64/multiarch/memcpy.S: New file.
1087         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
1088         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
1089         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
1090         * sysdeps/x86_64/multiarch/memmove.c: New file.
1091         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
1092         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
1093         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
1094         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
1095         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
1096         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
1097         Define.
1098         (index_Fast_Copy_Backward): Define.
1099         (HAS_ARCH_FEATURE): Define.
1100         (HAS_FAST_REP_STRING): Define.
1101         (HAS_FAST_COPY_BACKWARD): Define.
1103 2010-06-21  Andreas Schwab  <schwab@redhat.com>
1105         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1106         Restore proper fallback handling.
1108 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
1110         [BZ #11701]
1111         * posix/group_member.c (__group_member): Correct checking loop.
1113         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
1114         OOM in getpwuid_r correctly.  Return error number when the caller
1115         should return, otherwise -1.
1116         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
1117         call returning > 0 value.
1118         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
1120 2010-06-07  Andreas Schwab  <schwab@redhat.com>
1122         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
1123         libc_nonshared.a from targets in modules-names.
1125 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
1127         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
1128         requires it.
1130 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
1132         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
1133         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
1134         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
1135         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
1137 2010-06-02  Andreas Schwab  <schwab@redhat.com>
1139         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
1141 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
1143         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
1144         and F_GETPIPE_SZ.
1145         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1146         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1147         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1148         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1149         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1150         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
1152 2010-06-14  Roland McGrath  <roland@redhat.com>
1154         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
1156 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
1158         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
1159         __REDIRECT followed by __THROW.
1160         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
1161         * posix/getopt.h (getopt): Likewise.
1163 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
1165         * hurd/lookup-at.c (__file_name_lookup_at): Accept
1166         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
1167         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
1168         in AT_FLAGS.
1169         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
1170         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
1172 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
1174         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
1176 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1178         [BZ #11640]
1179         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1180         Properly check family and model.
1182 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
1184         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
1186 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
1188         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
1190 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
1192         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
1193         symbol reference.
1195 2010-05-19  Andreas Schwab  <schwab@redhat.com>
1197         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
1198         symbol reference.
1200 2010-05-21  Andreas Schwab  <schwab@redhat.com>
1202         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
1203         and internal_recvmmsg.
1204         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
1205         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
1206         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
1207         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
1209         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
1210         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
1211         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
1213 2010-05-20  Andreas Schwab  <schwab@redhat.com>
1215         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
1217 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
1219         POWER7 optimizations.
1220         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
1221         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
1223 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
1225         * version.h: Update for 2.13 development version.
1227 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
1229         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
1230         exceptions.  Return 0.
1232 2010-05-07  Roland McGrath  <roland@redhat.com>
1234         * elf/ldconfig.c (main): Add a const.
1236 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
1238         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
1239         (args_options): Add no-idn option.
1240         (ahosts_keys_int): Add idn_flags to ai_flags.
1241         (parse_option): Handle 'i' option to clear idn_flags.
1243         * malloc/malloc.c (_int_free): Possible race in the most recently
1244         added check.  Only act on the data if no current modification
1245         happened.
1247 See ChangeLog.17 for earlier changes.