Avoid "inexact" exceptions in i386/x86_64 ceil functions (bug 15479).
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #15479]
4         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
5         floating-point environment rather than just control word.
6         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
7         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
8         floating-point environment, with "invalid" exceptions merged in,
9         rather than just control word.
10         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
11         * math/libm-test.inc (ceil_test_data): Do not allow spurious
12         "inexact" exceptions.
13
14 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
15
16         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
17         __libc_vfork.
18         (__vfork) [IS_IN (libc)]: Remove alias.
19         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
20         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
21         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
22
23 2016-06-24  Torvald Riegel  <triegel@redhat.com>
24
25         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
26         of atomic_compare_and_exchange_bool_rel.
27         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
28         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
29         catomic_compare_and_exchange_bool_rel): Remove.
30         * sysdeps/aarch64/atomic-machine.h
31         (atomic_compare_and_exchange_bool_rel): Likewise.
32         * sysdeps/alpha/atomic-machine.h
33         (atomic_compare_and_exchange_bool_rel): Likewise.
34         * sysdeps/arm/atomic-machine.h
35         (atomic_compare_and_exchange_bool_rel): Likewise.
36         * sysdeps/mips/atomic-machine.h
37         (atomic_compare_and_exchange_bool_rel): Likewise.
38         * sysdeps/microblaze/atomic-machine.h
39         ( __arch_compare_and_exchange_bool_8_rel,
40         __arch_compare_and_exchange_bool_16_rel): Likewise.
41         * sysdeps/powerpc/atomic-machine.h
42         ( __arch_compare_and_exchange_bool_8_rel,
43         __arch_compare_and_exchange_bool_16_rel): Likewise.
44         * sysdeps/powerpc/powerpc32/atomic-machine.h
45         ( __arch_compare_and_exchange_bool_32_rel,
46         __arch_compare_and_exchange_bool_64_rel): Likewise.
47         * sysdeps/powerpc/powerpc64/atomic-machine.h
48         ( __arch_compare_and_exchange_bool_32_rel,
49         __arch_compare_and_exchange_bool_64_rel): Likewise.
50         * sysdeps/tile/atomic-machine.h
51         (atomic_compare_and_exchange_bool_rel): Likewise.
52
53 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
54
55         [BZ #20296]
56         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
57         when either argument is a NaN.
58         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
59         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
60
61         * math/libm-test.inc (snan_value_ld): New macro.
62         (isgreater_test_data): Add sNaN tests.
63         (isgreaterequal_test_data): Likewise.
64         (isless_test_data): Likewise.
65         (islessequal_test_data): Likewise.
66         (islessgreater_test_data): Likewise.
67         (isunordered_test_data): Likewise.
68         (nextafter_test_data): Likewise.
69         (nexttoward_test_data): Likewise.
70         (remainder_test_data): Likewise.
71         (remquo_test_data): Likewise.
72         (significand_test_data): Likewise.
73         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
74
75 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
76
77         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
78         environment macros are defined.
79         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
80
81 2016-06-23  Florian Weimer  <fweimer@redhat.com>
82
83         [BZ #20191]
84         Implement vtable verification in libio.
85         * Makerules (shlib.lds): Place __libc_IO_vtables section.
86         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
87         * debug/vdprintf_chk.c (__vdprintf_chk): Call
88         _IO_new_file_init_internal instead of _IO_file_init.
89         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
90         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
91         * libio/Makefile (routines): Add vtables.
92         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
93         (_IO_init): Remove, not for internal use.
94         (_IO_init_internal): Declare, internal replacement for _IO_init.
95         (_IO_file_init): Remove, not for internal use.
96         (_IO_new_file_init): Remove, not for internal use.
97         (_IO_new_file_init_internal): Declare, internal replacement for
98         _IO_new_file_init.
99         (_IO_old_file_init): Remove, not for internal use.
100         (_IO_old_file_init_internal): Declare, internal replacement for
101         _IO_old_file_init.
102         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
103         internal use.
104         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
105         Declare.
106         (libio_vtable): New macro.
107         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
108         functions.
109         * libio/fileops.c (_IO_new_file_init_internal): Rename from
110         _IO_new_file_init.
111         (_IO_new_file_init): New externally visible wrapper which disables
112         vtable verification.
113         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
114         Define as vtables.
115         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
116         (_IO_init): New externally visible wrapper which disables
117         vtable verification.
118         * libio/iofdopen.c (_IO_new_fdopen): Call
119         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
120         comment.
121         * libio/iofopen.c (__fopen_internal): Call
122         _IO_new_file_init_internal instead of _IO_file_init.
123         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
124         Define as vtables.
125         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
126         _IO_new_file_init_internal instead of _IO_file_init.
127         * libio/iopopen.c (_IO_new_popen): Likewise.
128         (_IO_proc_jumps): Define as vtable.
129         * libio/iovdprintf.c (_IO_vdprintf): Call
130         _IO_new_file_init_internal instead of _IO_file_init.
131         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
132         (__open_memstream): Call _IO_init_internal instead of _IO_init.
133         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
134         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
135         _IO_old_file_init.
136         (_IO_old_file_init): New externally visible wrapper which disables
137         vtable verification.
138         (_IO_old_file_jumps): Define as vtable.
139         * libio/oldiofdopen.c (_IO_old_fdopen): Call
140         _IO_old_file_init_internal instead of _IO_old_file_init.
141         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
142         * libio/oldiopopen.c (_IO_old_popen): Likewise.
143         (_IO_old_proc_jumps): Define as vtable.
144         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
145         Define as vtables.
146         * libio/vtables.c: New file.
147         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
148         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
149         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
150         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
151         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
152         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
153         instead of _IO_init.
154
155 2016-06-23  Florian Weimer  <fweimer@redhat.com>
156
157         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
158
159 2016-06-23  Florian Weimer  <fweimer@redhat.com>
160
161         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
162         potentially unused.
163
164 2016-06-22  Florian Weimer  <fweimer@redhat.com>
165
166         * test-skeleton.c (write_message): New function.
167         * malloc/tst-mallocfork2.c (write_message): Remove.
168         * debug/tst-longjmp_chk2.c (write_indented): New function.
169         (write_message): Remove.
170         (stackoverflow_handler): Call write_indented.
171
172 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
173
174         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
175         "inexact" exceptions after fnstenv.
176         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
177         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
178         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
179
180 2015-06-22  Zack Weinberg  <zackw@panix.com>
181
182         * sysdeps/generic/bits/hwcap.h: Moved to ...
183         * bits/hwcap.h: Here.
184
185 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
186
187         * sysdeps/aarch64/memcpy.S (memcpy):
188         Further tuning for performance.
189
190 2016-06-21  Florian Weimer  <fweimer@redhat.com>
191
192         [BZ #20284]
193         * malloc/arena.c (reused_arena): Do not return NULL if we start
194         out with a non-corrupted arena.
195
196 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
197
198         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
199         * misc/tst-preadvwritev.c: New file.
200         * misc/tst-preadvwritev64.c: Likewise.
201         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
202         usage.
203         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
204         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
205         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
206         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
207
208 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
209
210         [BZ #19654]
211         * sysdeps/x86_64/fpu/Makefile: Added new tests.
212         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
213         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
214         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
215         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
216         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
217         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
218         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
219         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
220         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
221         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
222         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
223         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
224         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
225         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
226         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
227         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
228         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
229         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
230         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
231         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
232         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
233         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
234         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
235         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
236         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
237
238 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
239
240         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
241         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
242
243 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
244
245         * sysdeps/aarch64/memcpy.S (memcpy):
246         Rewrite of optimized memcpy and memmove.
247         * sysdeps/aarch64/memmove.S (memmove): Remove
248         memmove code (merged into memcpy.S).
249
250 2016-06-20  Florian Weimer  <fweimer@redhat.com>
251
252         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
253         * sysdeps/generic/dl-dtv.h: New file.
254         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
255         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
256         (dtv_t): Remove.
257         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
258         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
259         (dtv_t): Remove.
260         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
261         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
262         (dtv_t): Remove.
263         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
264         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
265         (dtv_t): Remove.
266         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
267         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
268         (dtv_t): Remove.
269         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
270         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
271         (dtv_t): Remove.
272         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
273         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
274         (dtv_t): Remove.
275         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
276         (dtv_t): Remove.
277         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
278         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
279         (dtv_t): Remove.
280         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
281         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
282         (dtv_t): Remove.
283         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
284         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
285         (dtv_t): Remove.
286         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
287         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
288         (dtv_t): Remove.
289         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
290         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
291         (dtv_t): Remove.
292         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
293         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
294         (dtv_t): Remove.
295         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
296         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
297         (dtv_t): Remove.
298         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
299         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
300         (dtv_t): Remove.
301
302 2016-06-20  Florian Weimer  <fweimer@redhat.com>
303
304         Revert symbol poisoning of  __malloc_initialize_hook.
305         * include/stdc-predef.h (__malloc_initialize_hook): Remove
306         poisoning.
307         * malloc/Makefile: Remove un-poisoning.
308         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
309         instead of old__malloc_initialize_hook.
310         * malloc/malloc-hooks.h: Likewise.
311         * malloc/malloc.c: Likewise.
312         * malloc/mcheck-init.c: Likewise.
313
314 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
315
316         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
317
318 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
319
320         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
321         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
322         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
323         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
324
325 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
326
327         * NEWS: Mention addition of nextup and nextdown.
328         * manual/arith.texi: Document nextup and nextdown.
329         * manual/libm-err-tab.pl: Add nextup and nextdown.
330         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
331         * math/Versions (libm): Add GLIBC_2.24.
332         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
333         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
334         Add new test.
335         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
336         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
337         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
338         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
339         (nextup_test_data): Likewise.
340         (nextdown_test_data): Likewise.
341         * math/s_nextdown.c: New file.
342         * math/s_nextdownf.c: Likewise.
343         * math/s_nextdownl.c: Likewise.
344         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
345         F(nextup): New function.
346         F(nextdown): Likewise.
347         * math/tgmath.h: Add nextup and nextdown.
348         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
349         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
350         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
351         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
352         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
353         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
354         Add nextup and nextdown.
355         (CFLAGS-nldbl-nextup.c): New variable.
356         (CFLAGS-nldbl-nextdown.c): Likewise.
357         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
358         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
359         * sysdeps/nacl/libm.abilist: Update.
360         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
361         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
362         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
363         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
364         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
365         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
366         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
367         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
368         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
369         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
370         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
371         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
374         Likewise.
375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
377         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
378         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
379         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
380         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
381         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
382         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
383         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
384         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
385         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
386         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
387         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
388
389 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
390
391         * manual/pattern.texi: Fix typos & grammar errors.
392
393 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
394
395         * manual/search.texi: Fix typos & grammar errors.
396
397 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
398
399         * manual/message.texi: Fix typos & grammar errors.
400
401 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
402
403         * manual/contrib.texi: Fix spelling typos.
404         * manual/crypt.texi: Likewise.
405         * manual/filesys.texi: Likewise.
406         * manual/locale.texi: Likewise.
407         * manual/message.texi: Likewise.
408         * manual/nss.texi: Likewise.
409         * manual/string.texi: Likewise.
410
411 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
412
413         * manual/locale.texi: Fix typos & grammar errors.
414
415 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
416
417         * manual/charset.texi: Fix typos & grammar errors.
418
419 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
420
421         * manual/string.texi: Fix typos.
422
423 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
424
425         * manual/ctype.texi: Fix typos.
426
427 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
428
429         * manual/memory.texi: Fix various typos & grammar errors.
430
431 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
432
433         [BZ #20255]
434         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
435         * math/libm-test.inc (fdim_test_data): Add another test.
436
437         [BZ #6796]
438         [BZ #20255]
439         [BZ #20256]
440         * math/s_fdim.c: Include <math_private.h>.
441         (__fdim): Use math_narrow_eval on result.
442         * math/s_fdimf.c: Include <math_private.h>.
443         (__fdimf): Use math_narrow_eval on result.
444         * sysdeps/i386/fpu/s_fdim.S: Remove file.
445         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
446         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
447         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
448         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
449         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
450         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
451         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
452         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
453         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
454         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
455         * math/libm-test.inc (fdim_test_data): Expect errno setting on
456         overflow.  Add sNaN tests.
457
458         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
459         fpclassify.
460         * math/s_fdimf.c (__fdimf): Likewise.
461         * math/s_fdiml.c (__fdiml): Likewise.
462
463 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
464
465         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
466         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
467         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
468         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
469         ifunc'ed strcasecmp/strncasecmp.
470         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
471         [EALIGN]: Removed.
472         [END]: Likewise.
473         [__strcasecmp]: Define instead of the above to control symbol name.
474         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
475         for __strcasecmp_power8.
476         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
477         for __strncasecmp_power8.
478         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
479         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
480         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
481         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
482         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
483         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
484
485 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
486
487         [BZ #20252]
488         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
489         arguments when second argument is a NaN.
490         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
491         qNaN tests.
492
493         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
494         (conj_test_data): Likewise.
495         (copysign_test_data): Likewise.
496         (creal_test_data): Likewise.
497         (fma_test_data): Likewise.
498         (fmod_test_data): Likewise.
499
500         [BZ #20250]
501         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
502         itself.
503         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
504         zero input to itself.
505         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
506         Likewise.
507         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
508         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
509         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
510         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
511         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
512
513 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
514
515         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
516         * nptl/tst-cancel4-common.c: New file.
517         * nptl/tst-cancel4-common.h: Likewise.
518         * nptl/tst-cancel4.c: Move common definitions to
519         tst-cancel4-common.{c,h} file.
520         * nptl/tst-cancel4_1.c: New test.
521         * nptl/tst-cancel4_2.c: New test.
522
523 2016-06-13  Florian Weimer  <fweimer@redhat.com>
524
525         [BZ #20248]
526         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
527         (write_message): New function.
528         (stackoverflow_handler): Call it instead of printf, to avoid
529         excessive stack usage by printf.
530         (do_test): Restore SIGSEGV, SIGBUS default handlers.
531
532 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
533
534         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
535         (prio_inherit_missing): Remove define.
536         * sysdeps/unix/sysv/linux/arm/kernel-features.h
537         (__ASSUME_FUTEX_LOCK_PI): Likewise.
538         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
539         Likewise.
540         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
541         (__ASSUME_FUTEX_LOCK_PI): Likewise.
542         * sysdeps/unix/sysv/linux/mips/kernel-features.h
543         (__ASSUME_FUTEX_LOCK_PI): Likewise.
544         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
545         (__ASSUME_FUTEX_LOCK_PI): Likewise.
546
547 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
548
549         [BZ #19670]
550         [BZ #19672]
551
552         * io/test-lfs.c (do_prepare): Use xmalloc.
553         * io/tst-fcntl.c (do_prepare): Likewise.
554         * libio/tst-fopenloc.c (do_bz17916): Likewise.
555         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
556         * login/tst-utmp.c (do_prepare): Likewise.
557         * posix/tst-exec.c (do_prepare): Likewise.
558         * posix/tst-pathconf.c (prepare): Likewise.
559         * posix/tst-spawn.c (do_prepare): Likewise.
560         * posix/tst-truncate.c (do_prepare): Likewise.
561         * rt/tst-aio.c (do_prepare): Likewise.
562         * rt/tst-aio64.c (do_prepare): Likewise.
563
564 2016-06-11  Florian Weimer  <fweimer@redhat.com>
565
566         [BZ #20237]
567         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
568         (get*ent): Set entidx to NULL during initialization.  If entidx is
569         NULL, start iteration from the beginning.
570
571 2016-06-11  Florian Weimer  <fweimer@redhat.com>
572
573         * malloc/malloc.c (musable): Return correct size for dumped fake
574         mmapped chunk.
575
576 2016-06-11  Florian Weimer  <fweimer@redhat.com>
577
578         [BZ #20222]
579         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
580         (_IO_cookie_write): Likewise.
581         (_IO_cookie_seek): Likewise.
582         (_IO_cookie_close): Likewise.
583         (_IO_old_cookie_seek): Likewise.
584         (set_callbacks): New function.
585         (_IO_cookie_init): Call set_callbacks to copy callbacks.
586
587 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
588
589         * locale/programs/localedef.c (oldstyle_tables): Remove.
590         * locale/programs/localedef.h (oldstyle_tables): Likewise.
591
592 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
593
594         [BZ #20240]
595         * math/Makefile (CFLAGS-s_modf.c): New variable.
596         (CFLAGS-s_modff.c): Likewise.
597         (CFLAGS-s_modfl.c): Likewise.
598         * math/libm-test.inc (modf_test_data): Add sNaN tests.
599
600 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
601
602         [BZ #20215]
603         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
604         [!__GNUC_PREREQ (3,2)]: Likewise.
605
606 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
607
608         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
609         (msghdr.msg_controllen): Likewise.
610         (cmsghdr.cmsg_len): Likewise.
611         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
612         ptw-oldsendmsg.
613         (CFLAGS-oldrecvmsg.c): Remove rule.
614         (CFLAGS-oldsendmsg.c): Likewise.
615         (CFLAGS-recvmsg.c): Add rule.
616         (CFLAGS-sendmsg.c): Likewise.
617         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
618         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
619         (CFLAGS-recvmsg.c): Remove rule.
620         (CFLAGS-sendmsg.c): Likewise.
621         (CFLAGS-oldrecvmsg.c): Likewise.
622         (CFLAGS-oldsendmsg.c): Likewise.
623         (CFLAGS-recvmmsg.c): Likewise.
624         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
625         to kernel defined interfaces.
626         (msghdr.msg_controllen): Likewise.
627         (cmsghdr.cmsg_len): Likewise.
628         (msghdr.__glibc_reserved1): Remove member.
629         (msghdr.__glibc_reserved2): Likewise.
630         (cmsghdr.__glibc_reserved1): Likewise.
631         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
632         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
633         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
634         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
635         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
636         version.
637         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
638         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
639         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
640         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
641         Remove recvmsg and sendmsg.
642         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
643         Likewise.
644         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
645         Likewise.
646         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
647         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
648         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
649         Likewise.
650         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
651         Likewise.
652         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
653         [libc] (GLIBC_2.24): Likewise.
654         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
655         Likewise.
656         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
657         Likewise.
658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
659         [libc] (GLIBC_2.24): Likewise.
660         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
661         Likewise.
662         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
663         Likewise.
664         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
665         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
666         Likewise.
667         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
668         Likewise.
669         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
670         Likewise.
671         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
672         Likewise.
673         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
674         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
675         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
676         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
677         version for {recv,send,recm,sendm}msg.
678         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
679         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
680         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
681         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
682         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
683         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
684         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
685         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
686         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
687         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
688         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
689         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
691         Likewise.
692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
693         Likewise.
694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
696         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
697         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
698         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
699         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
700         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
701         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
702         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
703         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
704         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
705         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
706         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
707
708 2016-06-10  Florian Weimer  <fweimer@redhat.com>
709
710         [BZ #19564]
711         Remove __malloc_initialize_hook from the API.
712         * malloc/malloc.h (__malloc_initialize_hook): Remove.
713         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
714         #pragma GCC poison.
715         * malloc/malloc-hooks.h: New file.
716         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
717         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
718         (old__malloc_initialize_hook): Rename from
719         __malloc_initialize_hook to evade poisoning.  Turn into compat
720         symbol.
721         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
722         __malloc_initialize_hook.
723         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
724         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
725         * manual/memory.texi (Hooks for Malloc): Remove
726         __malloc_initialize_hook.  Adjust hook example.
727
728 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
729
730         [BZ #20235]
731         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
732         itself.
733         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
734         * math/libm-test.inc (log2_test_data): Add sNaN tests.
735
736         [BZ #20234]
737         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
738         infinity or NaN input to itself.
739
740         [BZ #20233]
741         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
742         to itself.
743
744         [BZ #20232]
745         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
746         itself.
747
748 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
749
750         * sysdeps/x86_64/start.S (_start): Always indirect branch to
751         __libc_start_main via GOT.
752
753 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
754
755         * sysdeps/x86_64/memcopy.h: New file.
756         * sysdeps/x86_64/wordcopy.c: Likewise.
757
758 2016-06-09  Florian Weimer  <fweimer@redhat.com>
759
760         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
761         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
762         <cstdlib>.
763         (optimization_barrier): New.
764         (do_test): Use it.  Call quick_exit in the global namespace.
765         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
766         instead of <cstdlib>, <thread>.
767         (optimization_barrier): New.
768         (non_main_thread): Adjust declaration.  Call optimization_barrier.
769         Call quick_exit in the global namespace.
770         (do_test): Call optimization_barrier.  Use pthread_create,
771         pthread_join instead of std::thread.
772
773 2016-06-09  Andreas Schwab  <schwab@suse.de>
774
775         [BZ #19755]
776         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
777         new entries in auto-propagate mode.
778         * nscd/grpcache.c (cache_addgr): Likewise.
779
780 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
781
782         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
783         New functions.
784         (add_temp_file): Use them.
785
786 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
787
788         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
789
790 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
791
792         [BZ #20229]
793         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
794         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
795         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
796
797         [BZ #20228]
798         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
799         itself.
800         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
801         * math/libm-test.inc (log10_test_data): Add sNaN tests.
802
803         [BZ #20227]
804         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
805         itself.
806         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
807         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
808         * math/libm-test.inc (log_test_data): Add sNaN tests.
809
810         [BZ #20226]
811         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
812         itself.
813         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
814         * math/libm-test.inc (exp_test_data): Add sNaN tests.
815         (exp10_test_data): Likewise.
816         (expm1_test_data): Likewise.
817
818         [BZ #20225]
819         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
820         itself.
821         * math/s_ldexpf.c (__ldexpf): Likewise.
822         * math/s_ldexpl.c (__ldexpl): Likewise.
823         * math/w_scalbln.c (__w_scalbln): Likewise.
824         * math/w_scalblnf.c (__w_scalblnf): Likewise.
825         * math/w_scalblnl.c (__w_scalblnl): Likewise.
826         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
827         (scalbln_test_data): Likewise.
828
829         [BZ #20224]
830         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
831         argument to itself.
832         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
833
834 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
835
836         [BZ #19776]
837         * sysdeps/x86_64/memcpy.S: Make it dummy.
838         * sysdeps/x86_64/mempcpy.S: Likewise.
839         * sysdeps/x86_64/memmove.S: New file.
840         * sysdeps/x86_64/memmove_chk.S: Likewise.
841         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
842         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
843         * sysdeps/x86_64/memmove.c: Removed.
844         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
845         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
846         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
847         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
848         Likewise.
849         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
850         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
851         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
852         memcpy-sse2-unaligned, memmove-avx-unaligned,
853         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
854         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
855         (__libc_ifunc_impl_list): Replace
856         __memmove_chk_avx512_unaligned_2 with
857         __memmove_chk_avx512_unaligned.  Remove
858         __memmove_chk_avx_unaligned_2.  Replace
859         __memmove_chk_sse2_unaligned_2 with
860         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
861         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
862         with __memmove_avx512_unaligned.  Replace
863         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
864         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
865         with __memcpy_chk_avx512_unaligned.  Remove
866         __memcpy_chk_avx_unaligned_2.  Replace
867         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
868         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
869         Replace __memcpy_avx512_unaligned_2 with
870         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
871         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
872         with __mempcpy_chk_avx512_unaligned.  Remove
873         __mempcpy_chk_avx_unaligned_2.  Replace
874         __mempcpy_chk_sse2_unaligned_2 with
875         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
876         Replace __mempcpy_avx512_unaligned_2 with
877         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
878         Replace __mempcpy_sse2_unaligned_2 with
879         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
880         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
881         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
882         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
883         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
884         (ENTRY): Removed.
885         (END): Likewise.
886         (ENTRY_CHK): Likewise.
887         (libc_hidden_builtin_def): Likewise.
888         Don't include ../memcpy.S.
889         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
890         __memcpy_chk_avx512_unaligned_erms and
891         __memcpy_chk_avx512_unaligned.  Use
892         __memcpy_chk_avx_unaligned_erms and
893         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
894         Default to __memcpy_chk_sse2_unaligned.
895         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
896         Change function suffix from unaligned_2 to unaligned.
897         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
898         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
899         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
900         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
901         (ENTRY): Removed.
902         (END): Likewise.
903         (ENTRY_CHK): Likewise.
904         (libc_hidden_builtin_def): Likewise.
905         Don't include ../mempcpy.S.
906         (mempcpy): New.  Add a weak alias.
907         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
908         __mempcpy_chk_avx512_unaligned_erms and
909         __mempcpy_chk_avx512_unaligned.  Use
910         __mempcpy_chk_avx_unaligned_erms and
911         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
912         Default to __mempcpy_chk_sse2_unaligned.
913
914 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
915
916         [BZ #19881]
917         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
918         into ...
919         * sysdeps/x86_64/memset.S: This.
920         (__bzero): Removed.
921         (__memset_tail): Likewise.
922         (__memset_chk): Likewise.
923         (memset): Likewise.
924         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
925         defined.
926         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
927         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
928         (__memset_zero_constant_len_parameter): Check SHARED instead of
929         PIC.
930         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
931         memset-avx2 and memset-sse2-unaligned-erms.
932         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
933         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
934         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
935         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
936         (__bzero): Enabled.
937         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
938         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
939         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
940         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
941         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
942         (memset): Removed.
943         (__memset_chk): Likewise.
944         (MEMSET_SYMBOL): New.
945         (libc_hidden_builtin_def): Replace __memset_sse2 with
946         __memset_sse2_unaligned.
947         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
948         __memset_chk_sse2 and __memset_chk_avx2 with
949         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
950         Use __memset_chk_sse2_unaligned_erms or
951         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
952         __memset_chk_avx512_unaligned_erms and
953         __memset_chk_avx512_unaligned.
954
955 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
956
957         * math/gen-auto-libm-test.c (fp_format_desc): remove
958         suffix member.
959         (output_generic_value): Remove usage of suffix member,
960         and the resulting unuse of the fp_format argument.
961         (output_for_one_input_case): Remove unused fp_format
962         parameter.
963
964         * math/auto-libm-test-out: Regenerate.
965
966         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
967         usage with TEST_COND_ibm128.
968         (TEST_COND_flt_32): Remove.
969         (TEST_COND_dbl_64): Remove.
970         (TEST_COND_ldbl_96_intel): Remove.
971         (TEST_COND_ldbl_96_m68k): Remove.
972         (TEST_COND_ldbl_128): Remove.
973
974 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
975
976         * auto-libm-test-in:
977         Replace flt-32 usage with binary32.
978         Replace dbl-64 usage with binary64.
979         Replace ldbl-intel-96 usage with intel96.
980         Replace ldbl-m68k-96 usage with m68k96.
981         Replace ldbl-128ibm usage with ibm128.
982         Replace ldbl-128 usage with binary128.
983
984         * auto-libm-test-out: Regenerate.
985
986 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
987
988         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
989         (parse_ulps): Dynamically generate type name matching
990         string from all_floats.
991         (get_ulps): Generate the ulps as an array instead.
992         (output_ulps): Dynamically compose the type based
993         on the number of supported formats, and print
994         the indices as type specific helper macros.
995
996         * math/libm-test.inc: Remove comment about CHOOSE.
997         (ulp_data): Generate the type in libm-test-ulps.h.
998         (ULP_IDX): New macro.
999         (find_ulps): Update usage of max_ulp.
1000
1001         * math/test-double-vlen2.h (CHOOSE): Remove.
1002         * math/test-double-vlen4.h (CHOOSE): Likewise.
1003         * math/test-double-vlen8.h (CHOOSE): Likewise.
1004         * math/test-float.c (CHOOSE): Likewise.
1005         * math/test-float-finite.c (CHOOSE): Likewise.
1006         * math/test-double.c (CHOOSE): Likewise.
1007         * math/test-double-finite.c (CHOOSE): Likewise.
1008         * math/test-idouble.c (CHOOSE): Likewise.
1009         * math/test-ifloat.c (CHOOSE): Likewise.
1010         * math/test-ildoubl.c (CHOOSE): Likewise.
1011         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1012         * math/test-ldouble.c (CHOOSE): Likewise.
1013
1014         * math/test-float.h (TEST_FLOAT): Remove.
1015         * math/test-double.h (TEST_DOUBLE): Likewise.
1016         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1017
1018 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1019
1020         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1021         (parse_args): Strip C suffix from floating point literals
1022         typed with 'f' and wrap them with LIT().
1023
1024         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1025         (test_ff_f_data_nexttoward): Rename to
1026         (test_fj_f_data): New struct.
1027         (nexttoward_test_data): Relabel tests as
1028         TEST_fj_f instead of TEST_ff_f.
1029
1030 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1031
1032         Emacs bug 23726.
1033         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1034         (__libc_realloc): Correct size computation for dumped fake mmapped
1035         chunks.
1036
1037 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1038
1039         [BZ #20219]
1040         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1041         to itself.
1042         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1043
1044         [BZ #20218]
1045         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1046         to itself.
1047         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1048
1049 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1050
1051         [BZ #20195]
1052         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1053         check to ...
1054         (init_cpu_features): Here.
1055
1056 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1057
1058         [BZ #20214]
1059         * sysdeps/unix/sysv/linux/bits/in.h
1060         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1061          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1062         Define to 1.
1063         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1064          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1065         Define to 0.
1066         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1067         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1068
1069 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1070
1071         [BZ #20198]
1072         * stdlib/Makefile (tests): Add tst-quick_exit, and
1073         tst-thread-quick_exit.
1074         [ifeq ($(have-cxx-thread_local),yes)]
1075         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1076         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1077         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1078         (LDLIBS-tst-thread-quick_exit): Likewise.
1079         [ifneq ($(have-cxx-thread_local),yes)]
1080         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1081         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1082         If run_dtors is true call __call_tls_dtors.
1083         (exit): Call __run_exit_handlers with run_dtors set to true.
1084         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1085         definition.
1086         * stdlib/quick_exit.c (quick_exit): Remove function.
1087         (__new_quick_exit): New function.
1088         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1089         function.
1090         * stdlib/tst-quick_exit.cc: New file.
1091         * stdlib/tst-thread-quick_exit.cc: New file.
1092         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1093         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1094         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1095         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1096         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1097         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1098         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1099         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1100         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1101         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1102         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1103         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1104         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1105         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1106         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1107         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1112         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1113         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1114         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1115         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1116         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1117         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1118         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1119         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1120         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1121         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1122
1123 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1124
1125         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1126         a typo in comments.
1127
1128 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1129
1130         [BZ #20213]
1131         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1132         argument to itself.
1133         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1134
1135 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1136
1137         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1138         required flags.
1139         (CFLAGS-pwritev64.c): Likewise.
1140         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1141         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1142         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1143         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1144         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1145         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1146         syscall from auto-generation.
1147         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1148         [WORDSIZE == 64] (pwritev64): Remove macro.
1149         [!PWRITEV] (PWRITEV): Likewise.
1150         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1151         [!PWRITEV] (PWRITE): Likewise.
1152         [!PWRITEV] (OFF_T): Likewise.
1153         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1154         (LO_HI_LONG): Remove macro.
1155         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1156         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1157         (PWRITEV): Remove macro.
1158         (PWRITEV_REPLACEMENTE): Likewise.
1159         (PWRITE): Likewise.
1160         (OFF_T): Likewise.
1161         (pwritev64): New function.
1162         * nptl/tst-cancel4.c (tf_writev): Add test.
1163
1164         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1165         required flags.
1166         (CFLAGS-preadv64.c): Likewise.
1167         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1168         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1169         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1170         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1171         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1172         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1173         syscall from auto-generation.
1174         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1175         [WORDSIZE == 64] (preadv64): Remove macro.
1176         [!PREADV] (PREADV): Likewise.
1177         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1178         [!PREADV] (PREAD): Likewise.
1179         [!PREADV] (OFF_T): Likewise.
1180         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1181         (LO_HI_LONG): Remove macro.
1182         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1183         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1184         (PREADV): Remove macro.
1185         (PREADV_REPLACEMENTE): Likewise.
1186         (PREAD): Likewise.
1187         (OFF_T): Likewise.
1188         (preadv64): New function.
1189         * nptl/tst-cancel4.c (tf_preadv): Add test.
1190
1191 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1192
1193         [BZ #20212]
1194         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1195         argument to itself.
1196         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1197
1198 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1199
1200         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1201         New symbol defined as libc_hidden_def.
1202         (strcasestr): Became a weak alias to __strcasestr.
1203         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1204         according to multi-arch support.  Move __stpncpy hidden
1205         definition from here to...
1206         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1207         symbol stpncpy.
1208         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1209         libc_hidden_builtin_def.
1210         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1211         memset symbol to use when multi-arch support is available.
1212
1213 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1214
1215         * dlfcn/tst-rec-dlopen.c: Include string.h.
1216
1217 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1218
1219         * manual/install.texi: Remove mention of --without-tls
1220         * INSTALL: Regenerate.
1221
1222 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1223
1224         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1225         Remove.
1226         (call_function, interposed_malloc_called): New variables.
1227         (malloc): New function.
1228         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1229         and clear call_function as needed.
1230
1231 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1232
1233         * include/wchar.h (__wmemset): Use __typeof.
1234
1235 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1236
1237         * include/wchar.h (__wmemset): Declare function without typeof.
1238
1239 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1240
1241         [BZ #20205]
1242         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1243         exponent when incrementing negative subnormal with low mantissa
1244         word zero.
1245         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1246         Add another test.
1247
1248 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1249
1250         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1251         __wmemset instead of wmemset.
1252
1253 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1254
1255         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1256         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1257         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1258         __USE_KERNEL_IPV6_DEFS to 0.
1259         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1260         Update comment.
1261
1262 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1263
1264         [BZ #19861]
1265         Do not use IFUNC resolver with potentially unrelocated symbol.
1266         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1267         (DEFINE_FORK): Remove macro and inline definition.
1268         (fork_alias): Renamed from fork_ifunc.
1269         (__fork_alias): Renamed from __fork_ifunc.
1270
1271 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1272
1273         [BZ 19653]
1274         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1275         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1276
1277 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1278
1279         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1280         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1281         i386-linux-gnu).
1282         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1283         Set to no.
1284         * sysdeps/mach/hurd/configure: Refresh.
1285
1286 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1287
1288         [BZ #20178]
1289         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1290         on failure instead of exit.
1291
1292 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1293
1294         [BZ #3629]
1295         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1296         of POSIX.1-2008.
1297
1298 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1299
1300         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1301           Use PLT entry for calling _hurd_self_sigstate.
1302
1303 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1304
1305         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1306         available logical processors with SMT level type sharing L2
1307         cache for Intel processors.
1308
1309 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1310
1311         [BZ #20160]
1312         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1313         argument to itself before returning the result.
1314         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1315         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1316         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1317         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1318         Likewise.
1319         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1320         Likewise.
1321         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1322         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1323         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1324         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1325         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1326         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1327
1328         [BZ #20160]
1329         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1330         argument to itself before returning the result.
1331         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1332         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1333         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1334         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1335         Likewise.
1336         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1337         Likewise.
1338         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1339         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1340         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1341         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1342         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1343         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1344
1345 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1346
1347         * libm-test.inc: Replace usage of M_El with
1348         (lit_e): New macro.
1349
1350 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1351
1352         * libm-test.inc: Replace usage of M_PI_4l with
1353         (lit_pi_4_d): New macro.
1354
1355 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1356
1357         * libm-test.inc: Replace usage of M_PIl with
1358         (lit_pi): New macro.
1359
1360 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1361
1362         * libm-test.inc: Replace usage of M_PI2l with
1363         (lit_pi_2_d): New macro.
1364
1365         * math/test-double.h (LITM): New macro.
1366         * math/test-float.h (LITM): Likewise.
1367         * math/test-ldouble.h (LITM): Likewise.
1368
1369 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1370
1371         * libm-test.inc (M_PI_34l): Rename to
1372         (lit_pi_3_m_4_d): New Macro.
1373         (M_PI_34_LOG10El): Rename to
1374         (lit_pi_3_m_4_ln10_m_d): New Macro.
1375         (M_PI2_LOG10El): Rename to
1376         (lit_pi_2_ln10_m_d):  New Macro.
1377         (M_PI4_LOG10El): Rename to
1378         (lit_pi_4_ln10_m_d):  New Macro.
1379         (M_PI_LOG10El): Rename to
1380         (lit_pi_ln10_d):  New Macro.
1381
1382 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1383
1384         [BZ #20157]
1385         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1386         determine whether to negate low half if [_ARCH_PPCGR], and integer
1387         comparison otherwise.
1388         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1389         determine whether to negate low half.
1390
1391         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1392         (NO_TEST_INLINE_DOUBLE): Likewise.
1393         (TEST_COND_x86_64): Likewise.
1394         (TEST_COND_x86): Likewise.
1395         (M_PI_6l): Likewise.
1396
1397 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1398
1399         * math/libm-test.inc:
1400         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1401         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1402         (TEST_LDOUBLE): Update usage to evaluate as true if
1403         the guarded tests match the property being tested.
1404         (LDBL_MAX_EXP): Change to MAX_EXP.
1405         (LDBL_MIN_EXP): Change to MIN_EXP.
1406         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1407         nexttoward tests.
1408
1409 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1410
1411         * math/libm-test.inc:
1412         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1413         (TYPE_MIN): Likewise.
1414         (TYPE_TRUE_MIN): Likewise.
1415         (TYPE_MAX): Likewise.
1416         (MIN_EXP): Likewise.
1417         (MAX_EXP): Likewise.
1418         (MANT_DIG): Likewise.
1419
1420         (FSTR_MAX): New macro.
1421         (__CONCATX): Likewise.
1422         (QTYPE_STR): Likewise.
1423         (TEST_COND_binary32): Likewise.
1424         (TEST_COND_binary64): Likewise.
1425         (TEST_COND_binary128): Likewise.
1426         (TEST_COND_ibm128): Likewise.
1427         (TEST_COND_intel96): Likewise.
1428         (TEST_COND_m68k96): Likewise.
1429
1430         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1431         (TEST_COND_dbl_64): Likewise.
1432         (TEST_COND_ldbl_96_intel): Likewise.
1433         (TEST_COND_ldbl_96_m68k): Likewise.
1434         (TEST_COND_ldbl_128): Likewise.
1435         (TEST_COND_ldbl_128ibm): Likewise.
1436
1437         (plus_zero): Redefine using LIT macro.
1438         (minus_zero): Likewise.
1439         (plus_infty): Redefine as (INF).
1440         (minux_infty): Redefine as (-INF).
1441         (max_value): Redefine as TYPE_MAX.
1442         (min_value): Redefine as TYPE_MIN.
1443         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1444
1445         (print_float): Refactor to use snprintf to convert FLOAT values
1446         to string. This brings it closer to dropin replacement of strtof
1447         for the TS 18661 defined types.
1448         (update_stats): Likewise.
1449         (print_complex_function_ulps): Likewise.
1450         (print_max_error): Likewise.
1451         (print_complex_max_error): Likewise.
1452         (check_float_internal): Likewise.
1453
1454         * math/test-float.h (PREFIX): New macro.
1455         (LIT): Likewise.
1456         (TYPE_STR): Likewise.
1457         (FTOSTR): Likewise.
1458
1459         * math/test-double.h (PREFIX): New macro.
1460         (LIT): Likewise.
1461         (TYPE_STR): Likewise.
1462         (FTOSTR): Likewise.
1463
1464         * math/test-ldouble.h (PREFIX): New macro.
1465         (LIT): Likewise.
1466         (TYPE_STR): Likewise.
1467         (FTOSTR): Likewise.
1468
1469 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1470
1471         [BZ #20156]
1472         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1473         to itself when zero or not finite.
1474         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1475         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1476         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1477         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1478
1479 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1480
1481         [BZ #20153]
1482         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1483         x * x + x for infinities and NaNs.
1484
1485         [BZ #20151]
1486         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1487         argument to itself before returning result.
1488         (__ieee754_y0l): Likewise.
1489         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1490         (__ieee754_y1l).
1491
1492         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1493         (atan_test_data): Likewise.
1494         (ceil_test_data): Likewise.
1495         (cos_test_data): Likewise.
1496         (cosh_test_data): Likewise.
1497         (erf_test_data): Likewise.
1498         (exp2_test_data): Likewise.
1499         (fabs_test_data): Likewise.
1500         (floor_test_data): Likewise.
1501         (ilogb_test_data): Likewise.
1502         (j0_test_data): Likewise.
1503         (j1_test_data): Likewise.
1504         (jn_test_data): Likewise.
1505         (lgamma_test_data): Likewise.
1506         (lrint_test_data): Likewise.
1507         (llrint_test_data): Likewise.
1508         (logb_test_data): Likewise.
1509         (lround_test_data): Likewise.
1510         (llround_test_data): Likewise.
1511         (nearbyint_test_data): Likewise.
1512         (rint_test_data): Likewise.
1513         (round_test_data): Likewise.
1514         (sin_test_data): Likewise.
1515         (sincos_test_data): Likewise.
1516         (sinh_test_data): Likewise.
1517         (sqrt_test_data): Likewise.
1518         (tan_test_data): Likewise.
1519         (tanh_test_data): Likewise.
1520         (tgamma_test_data): Likewise.
1521         (trunc_test_data): Likewise.
1522         (y0_test_data): Likewise.
1523         (y1_test_data): Likewise.
1524         (yn_test_data): Likewise.
1525
1526         * math/libm-test.inc: Update comment about NaN testing.
1527         (TEST_SNAN): New macro.
1528         (snan_value): Likewise.
1529         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1530         (fpclassify_test_data): Add sNaN tests.
1531         (isfinite_test_data): Likewise.
1532         (isinf_test_data): Likewise.
1533         (isnan_test_data): Likewise.
1534         (isnormal_test_data): Likewise.
1535         (issignaling_test_data): Likewise.
1536         (signbit_test_data): Likewise.
1537         * math/gen-libm-test.pl (%beautify): Add snan_value.
1538         (show_exceptions): Add argument $test_snan.
1539         (parse_args): Handle snan_value as non-finite.  Update call to
1540         show_exceptions.
1541         * math/Makefile (libm-test-no-inline-cflags): Add
1542         -fsignaling-nans.
1543
1544 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1545
1546         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1547         (CFLAGS-oldsendmsg.c): Add rule.
1548         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1549         Correct recvmsg symbol name.
1550         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1551         Likewise.
1552
1553 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1554
1555         * sysdeps/unix/sysv/linux/Makefile
1556         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1557         oldsendmmsg.
1558         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1559         sendmmsg.
1560         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1561         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1562         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1563         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1565         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1566         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1567         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1568         Likewise.
1569         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1570         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1571         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1572         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1573         iovlen and controllen fields to adjust to POSIX specification.
1574         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1575
1576         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1577         and change to correct expected type.
1578         (msghdr.msg_controllen): Likewise.
1579         (cmsghdr.cmsg_len): Likewise.
1580         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1581         expected POSIX assumption about the size.
1582         (msghdr.msg_controllen): Likewise.
1583         (msghdr.__glibc_reserved1): Likewise.
1584         (msghdr.__glibc_reserved2): Likewise.
1585         (cmsghdr.cmsg_len): Likewise.
1586         (cmsghdr.__glibc_reserved1): Likewise.
1587         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1588         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1589         (CFLAGS-sendmsg.c): Remove rule.
1590         (CFLAGS-recvmsg.c): Likewise.
1591         (CFLAGS-oldsendmsg.c): Add rule.
1592         (CFLAGS-oldrecvmsg.c): Likewise.
1593         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1594         recvmsg and sendmsg.
1595         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1596         Likewise.
1597         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1598         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1599         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1600         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1601         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1602         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1603         Likewise.
1604         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1605         Likewise.
1606         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1607         Likewise.
1608         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1609         Likewise.
1610         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1611         Likewise.
1612         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1613         Likewise.
1614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1615         (GLIBC_2.24): Likewise.
1616         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1617         Likewise.
1618         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1619         Likewise.
1620         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1621         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1622         Likewise.
1623         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1624         Likewise.
1625         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1626         Likewise.
1627         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1628         (GLIBC_2.24): Likewise.
1629         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1630         Likewise.
1631         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1632         Likewise.
1633         * sysdeps/unix/sysv/linux/Makefile
1634         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1635         (CFLAGS-sendmsg.c): Add rule.
1636         (CFLAGS-recvmsg.c): Likewise.
1637         (CFLAGS-oldsendmsg.c): Likewise.
1638         (CFLAGS-oldrecvmsg.c): Likewise.
1639         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1640         initialization.
1641         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1642         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1643         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1644         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1645         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1646         iovlen and controllen fields to adjust to POSIX specification.
1647         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1648         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1649         added recvmsg and sendmsg.
1650         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1651         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1652         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1653         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1654         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1655         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1656         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1657         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1658         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1659         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1660         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1661         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1663         Likewise.
1664         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1666         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1667         Likewise.
1668         Likewise.
1669         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1670         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1671         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1672         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1673         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1674         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1675         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1676         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1677         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1678         Likewise.
1679         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1680         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1681
1682         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1683         from auto-generation.
1684         (sendmsg): Likewise.
1685         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1686         (sendmsg): Likewise.
1687         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1688         (sendmsg): Likewise.
1689         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1690         (sendmsg): Likewise.
1691         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1692         (sendmsg): Likewise.
1693         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1694         (sendmsg): Likewise.
1695         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1696         Likewise.
1697         (sendmsg): Likewise.
1698         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1699         (sendmsg): Likewise.
1700         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1701         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1702         Remove.
1703         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1704         Likewise.
1705         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1706         Undefine.
1707         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1708         Likewise.
1709         * sysdeps/unix/sysv/linux/kernel-features.h
1710         (__ASSUME_SENDMSG_SYSCALL): Define.
1711         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1712         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1713         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1714         Remove.
1715         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1716         Likewise.
1717         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1718         Undefine.
1719         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1720         Likewise.
1721         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1722         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1723         Remove.
1724         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1725         Likewise.
1726         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1727         Undefine.
1728         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1729         Likewise.
1730         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1731         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1732         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1733         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1734         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1735         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1736         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1737         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1738         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1739
1740 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1741
1742         * stdlib/gen-tst-strtod-round.c: Add backslash to
1743         compile command in comment.
1744         (printfp): Remove the literal suffix, and define an infinite
1745         value as INF to avoid expansion clash with INFINITY.
1746         (round_str): Remove the literal suffix.
1747         (round_for_all): Likewise, remove the now duplicate ldbl-64
1748         entry, and remove some magic constants.
1749
1750         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1751         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1752         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1753         (_CONCAT): New macro.
1754         (CONCAT): Likewise.
1755         (CHOOSE_ld): Likewise.
1756         (CHOOSE_f): Likewise.
1757         (CHOOSE_d): Likewise.
1758         (FTYPE_MEMBER): Likewise.
1759         (BOOL_MEMBER): Likewise.
1760         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1761         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1762         (_XNTRY): Likewise.
1763         (XNTRY): Likewise.
1764         (_ENTRY): Likewise.
1765         (ENTRY): Likewise.
1766         (test_exactness): Generate members via macro.
1767         (test_results): Likewise.
1768         (test): Update members.
1769         (TEST): Redefine using new macros.
1770         (INF): New macro.
1771         (fetestmodes): New structure.
1772         (do_test): Refactor to be type generic.
1773         (test_in_one_mode): Refactor duplicate code into
1774         (GEN_ONE_TEST): New macro.
1775
1776         * stdlib/tst-strtod-round-data.h: Regenerate.
1777
1778         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1779         Extend to pass additional arbitrary parameters to
1780         generators.
1781
1782 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1783
1784         [BZ #15479]
1785         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1786         floating-point state after first floating-point operation on
1787         input.  Restore full floating-point state instead of just rounding
1788         mode.
1789         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1790         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1791         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1792         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1793         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1794
1795         [BZ #15479]
1796         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1797         floating-point state after first floating-point operation on
1798         input.  Restore full floating-point state instead of just rounding
1799         mode.
1800         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1801         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1802         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1803         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1804         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1805
1806 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1807
1808         [BZ #19727]
1809         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1810         valid high surrogate.
1811         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1812         of an utf16 surrogate.
1813         * iconv/gconv_simple.c (BODY): Likewise.
1814         * iconvdata/bug-iconv12.c: New file.
1815         * iconvdata/Makefile (tests): Add bug-iconv12.
1816
1817 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1818
1819         [BZ #19726]
1820         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1821         outptrp in case of an illegal input.
1822         * iconv/tst-iconv6.c: New file.
1823         * iconv/Makefile (tests): Add tst-iconv6.
1824
1825 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1826
1827         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1828         an error in case of a value in range of an utf16 low surrogate.
1829
1830 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1831
1832         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1833         an error in case of a value in range of an utf16 low surrogate.
1834
1835 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1836
1837         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1838         Move to ...
1839         * sysdeps/s390/Makefile: ... here.
1840         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1841         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1842         (BRANCH_ON_COUNT): New define.
1843         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1844         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1845         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1846         run on s390-32, too.
1847         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1848         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1849         run on s390-32, too.
1850         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1851         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1852         run on s390-32, too.
1853
1854 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1855
1856         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1857         etf3eh or new vector loop-variant.
1858
1859 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1860
1861         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1862         etf3eh or new vector loop-variant.
1863
1864 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1865
1866         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1867         or new vector loop-variant.
1868
1869 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1870
1871         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1872         Rename to TR_LOOP and usage of tr instead of troo instruction.
1873
1874 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1875
1876         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1877         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1878
1879 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1880
1881         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1882         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1883         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1884         New override define.
1885         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1886
1887 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1888
1889         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1890         * sysdeps/s390/configure.ac: Add test for S390 vector register
1891         support in gcc.
1892         * sysdeps/s390/configure: Regenerated.
1893
1894 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1895
1896         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1897         Install file from $(objpfx)gconv-modules.
1898         ($(objpfx)gconv-modules): Concatenate architecture specific file
1899         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1900         * sysdeps/s390/gconv-modules: New file.
1901         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1902         Deleted.
1903         ($(objpfx)gconv-modules-s390): Deleted.
1904         (sysdeps-gconv-modules): New variable.
1905
1906 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1907
1908         [BZ #15479]
1909         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1910         of immediate operand to rounding instruction.
1911         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1912         Likewise.
1913         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1914         Likewise.
1915         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1916         Likewise.
1917
1918 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1919
1920         * math/libm-test.inc (MIN_EXP): Directly define as
1921         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1922
1923 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1924
1925         * math/libm-test.inc (MANT_DIG): Directly define as
1926         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1927
1928 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1929
1930         * stdlib/gen-tst-strtod-round.c (main):
1931           Change usage to more closely match the generated
1932           output.  Add usage and compilation instructions.
1933           (string_to_fp): Add and use FILE* parameter as
1934           output target.
1935           (print_fp): Likewise.
1936           (round_str): Likewise.
1937           (round_for_all): Likewise.
1938         * stdlib/tst-strtod-round.c (tests): Move into
1939         * stdlib/tst-strtod-round-data.h: New file.
1940
1941 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1942
1943         [BZ #15479]
1944         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1945         (__round): Do not force "inexact" exception.
1946         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1947         variable.
1948         (__round): Do not force "inexact" exception.
1949         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1950         (__roundf): Do not force "inexact" exception.
1951         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1952         (__roundl): Do not force "inexact" exception.
1953         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1954         (__roundl): Do not force "inexact" exception.
1955         * math/libm-test.inc (round_test_data): Do not allow spurious
1956         "inexact" exceptions.
1957
1958         [BZ #15479]
1959         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1960         exception in comment.
1961         (huge): Remove variable.
1962         (__floor): Do not force "inexact" exception.
1963         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1964         "inexact" exception in comment.
1965         (huge): Remove variable.
1966         (__floor): Do not force "inexact" exception.
1967         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1968         exception in comment.
1969         (huge): Remove variable.
1970         (__floorf): Do not force "inexact" exception.
1971         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1972         exception in comment.
1973         (huge): Remove variable.
1974         (__floorl): Do not force "inexact" exception.
1975
1976         [BZ #15479]
1977         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1978         exception in comment.
1979         (huge): Remove variable.
1980         (__ceil): Do not force "inexact" exception.
1981         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1982         "inexact" exception in comment.
1983         (huge): Remove variable.
1984         (__ceil): Do not force "inexact" exception.
1985         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1986         (__ceilf): Do not force "inexact" exception.
1987         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1988         exception in comment.
1989         (huge): Remove variable.
1990         (__ceill): Do not force "inexact" exception.
1991
1992 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1993
1994         * config.h.in (BIND_NOW): New.
1995         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1996         * configure: Regenerated.
1997         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1998         indirect branch via the GOT slot.
1999
2000 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2001
2002         [BZ #19765]
2003         * sysdeps/s390/mempcpy.S: New File.
2004         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2005         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2006         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2007         Add mempcpy variants.
2008         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2009         (memcpy): Adjust to be usable from mempcpy entry point.
2010         (__memcpy_mvcle): Likewise.
2011         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2012         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2013         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2014         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2015         (__memcpy_z10): Likewise.
2016         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2017
2018 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2019
2020         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2021         Remove __GI_ symbol.
2022         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2023         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2024         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2025         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2026         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2027         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2028
2029 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2030
2031         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2032         Use cghi instead of chi to compare 64bit value.
2033
2034 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2035
2036         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2037         Jump to 1MB check before executing mvc-loop.
2038
2039 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2040
2041         [BZ #6527]
2042         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2043         unconditionally.
2044         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2045
2046 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2047
2048         * stdlib/tst-strtod6.c (do_test): Use new type generic
2049         invocation of the test function.
2050         (test): Refactor into ...
2051         (TEST_STRTOD): New macro base function.
2052
2053 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2054
2055         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2056         (TEST_STRTOD): New macro.
2057         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2058
2059 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2060
2061         * stdlib/tst-strtod6.c (do_test): Use new type generic
2062         invocation of the test function.
2063         (test): Refactor into ...
2064         (TEST_STRTOD): New macro base function.
2065
2066 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2067
2068         CVE-2016-4429
2069         [BZ #20112]
2070         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2071         payload.
2072
2073 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2074
2075         [BZ #20111]
2076         * bits/sockaddr.h (_SS_SIZE): Define.
2077         * bits/socket.h (_SS_SIZE): Remove.
2078         (_SS_PADSIZE): Adjust to account for all padding.
2079         (struct sockaddr_storage): Update comment.  Avoid implicit
2080         padding.
2081         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2082         (_SS_PADSIZE): Adjust to account for all padding.
2083         (struct sockaddr_storage): Update comment.  Avoid implicit
2084         padding.
2085         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2086         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2087         (_SS_PADSIZE): Adjust to account for all padding.
2088         (struct sockaddr_storage): Update comment.  Avoid implicit
2089         padding.
2090         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2091         __SS_SIZE is 126 in this version.
2092         * inet/tst-sockaddr.c: New file.
2093         * inet/Makefile (tests): Add tst-sockaddr.c
2094         (tst-sockaddr.c): Compile with non-strict aliasing.
2095
2096 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2097
2098         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2099         [XPG3 || XPG4].
2100         (NL_ARGMAX): Also expect for [XPG3].
2101         (NL_LANGMAX): Likewise.
2102         (NL_MSGMAX): Likewise.
2103         (NL_NMAX): Likewise.
2104         (NL_SETMAX): Likewise.
2105         (NL_TEXTMAX): Likewise.
2106         (NZERO): Likewise.
2107         (TMP_MAX): Likewise.
2108         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2109         variable.
2110
2111         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2112         (PF_MAX): Update value.
2113         (AF_KCM): New macro.
2114         (SOL_NETBEUI): Likewise.
2115         (SOL_LLC): Likewise.
2116         (SOL_DCCP): Likewise.
2117         (SOL_NETLINK): Likewise.
2118         (SOL_TIPC): Likewise.
2119         (SOL_RXRPC): Likewise.
2120         (SOL_PPPOL2TP): Likewise.
2121         (SOL_BLUETOOTH): Likewise.
2122         (SOL_PNPIPE): Likewise.
2123         (SOL_RDS): Likewise.
2124         (SOL_IUCV): Likewise.
2125         (SOL_CAIF): Likewise.
2126         (SOL_ALG): Likewise.
2127         (SOL_NFC): Likewise.
2128         (SOL_KCM): Likewise.
2129         (MSG_BATCH): New enum value and macro.
2130
2131 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2132
2133         [BZ #18185]
2134         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2135         sharing L2 cache to 2 for Knights Landing.
2136
2137 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2138
2139         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2140         (FTW_DP): Do not expect for [XPG3 || XPG4].
2141         (FTW_SL): Do not expect for [XPG3].
2142         (FTW_SLN): Likewise.
2143         (FTW_PHYS): Likewise.
2144         (FTW_MOUNT): Likewise.
2145         (FTW_DEPTH): Likewise.
2146         (FTW_CHDIR): Likewise.
2147         (nftw): Likewise.
2148         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2149         variable.
2150
2151 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2152
2153         * manual/errno.texi: Fix various typos & grammar errors.
2154
2155 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2156
2157         * manual/intro.texi: Fix duplicated typo.
2158
2159 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2160
2161         [BZ #13304]
2162         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2163         <float.h>, <math_private.h> and <stdlib.h>.
2164         (add_split): New function.
2165         (mul_split): Likewise.
2166         (ext_val): New typedef.
2167         (store_ext_val): New function.
2168         (mul_ext_val): New function.
2169         (compare): New function.
2170         (add_split_ext): New function.
2171         (__fmal): After checking for Inf, NaN and zero, compute result as
2172         an exact sum of scaled double values in round-to-nearest before
2173         adding those up and adjusting for other rounding modes.
2174         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2175         tests of fma.
2176         * math/auto-libm-test-out: Regenerated.
2177
2178 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2179
2180         [BZ #20119]
2181         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2182         processor level type mask for CPUID with EAX == 11.
2183
2184 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2185
2186         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2187         logical threads if the HTT bit is 0.
2188         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2189         (index_cpu_HTT): Likewise.
2190         (reg_HTT): Likewise.
2191
2192 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2193
2194         [BZ #20115]
2195         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2196         Remove alignments on jump targets.
2197
2198 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2199
2200         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2201         (getpwent): Likewise.
2202         (setpwent): Likewise.
2203         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2204         variable.
2205
2206         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2207         (remque): Likewise.
2208         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2209         variable.
2210
2211 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2212
2213         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2214         not being tested.
2215
2216 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2217
2218         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2219         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2220         call.
2221         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2222         (__condvar_cleanup1): Likewise.
2223
2224 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2225
2226         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2227         New
2228         (__pthread_unwind): Renamed to ...
2229         (PTHREAD_UNWIND): This.
2230         (__pthread_enable_asynccancel): Replace
2231         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2232
2233 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2234
2235         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2236         (CLONE_NEWCGROUP): New macro.
2237
2238         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2239         (Q_GETNEXTQUOTA): New macro.
2240
2241 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2242
2243         [BZ #19907]
2244         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2245         buffer updated by the previous run.
2246         * string/test-memcpy.c (do_one_test): Likewise.
2247         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2248         * string/test-memmove.c (do_one_test): Likewise.
2249
2250 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2251
2252         [BZ #20094]
2253         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2254         not [__USE_XOPEN].
2255         (unlockpt): Likewise.
2256         (ptsname): Likewise.
2257         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2258         variable.
2259
2260         [BZ #20076]
2261         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2262         instead of [__USE_UNIX98].
2263         (S_ISSOCK): Likewise.
2264         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2265         variable.
2266
2267         [BZ #20074]
2268         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2269         [__USE_POSIX].
2270         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2271         variable.
2272
2273         [BZ #20051]
2274         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2275         (ttyslot): Do not declare.
2276         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2277         (ttyslot): New prototype.
2278         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2279         variable.
2280         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2281
2282 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2283
2284         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2285
2286 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2287
2288         Fix race condition in tst-mallocfork2, use fewer resources.
2289         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2290         to current process group.
2291         (signal_sender): Yield in the non-sleeping case.
2292
2293 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2294
2295         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2296         (ecvt): Likewise.
2297         (fcvt): Likewise.
2298         (gcvt): Likewise.
2299         (getsubopt): Likewise.
2300         (grantpt): Likewise.
2301         (initstate): Likewise.
2302         (l64a): Likewise.
2303         (mktemp): Likewise.
2304         (mkstemp): Likewise.
2305         (ptsname): Likewise.
2306         (random): Likewise.
2307         (realpath): Likewise.
2308         (setstate): Likewise.
2309         (srandom): Likewise.
2310         (ttyslot): Likewise.
2311         (unlockpt): Likewise.
2312         (valloc): Likewise.
2313
2314         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2315         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2316         variable.
2317
2318 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2319
2320         [BZ #20072]
2321         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2322         init_cpu_features only if SHARED is defined.
2323         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2324
2325 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2326
2327         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2328         non-inclusive caches on Intel processors.
2329
2330 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2331
2332         * malloc/malloc.c (dumped_main_arena_start)
2333         (dumped_main_arena_end): New variables.
2334         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2335         (do_check_chunk): Skip dumped fake mmapped chunks.
2336         (munmap_chunk): Likewise.
2337         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2338         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2339         mmapped chunks.
2340         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2341         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2342         and dumped_main_arena_end to cover the dumped heap.
2343
2344 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2345
2346         * conform/data/time.h-data (getdate_err): Do not expect for
2347         [XPG3].
2348         (getdate): Likewise.
2349         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2350         variable.
2351
2352         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2353         (F_ULOCK): Likewise.
2354         (F_TEST): Likewise.
2355         (F_TLOCK): Likewise.
2356         (useconds_t): Likewise.
2357         (intptr_t): Do not expect for [XPG3] or [XPG4].
2358         (brk): Do not expect for [XPG3]
2359         (fchown): Likewise.
2360         (fchdir): Likewise.
2361         (ftruncate): Likewise.
2362         (getdtablesize): Likewise.
2363         (gethostid): Likewise.
2364         (getpagesize): Likewise.
2365         (getpgid): Likewise.
2366         (getsid): Likewise.
2367         (getwd): Likewise.
2368         (lchown): Likewise.
2369         (lockf): Likewise.
2370         (readlink): Likewise.
2371         (sbrk): Likewise.
2372         (setpgrp): Likewise.
2373         (setregid): Likewise.
2374         (setreuid): Likewise.
2375         (symlink): Likewise.
2376         (sync): Likewise.
2377         (truncate): Likewise.
2378         (ualarm): Likewise.
2379         (usleep): Likewise.
2380         (vfork): Likewise.
2381         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2382         variable.
2383
2384         [BZ #20054]
2385         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2386         not [__USE_UNIX98].
2387         * conform/data/unistd.h-data (gethostname): Do not expect for
2388         [XPG3].
2389
2390         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2391         [!POSIX] (S_IFBLK): Likewise.
2392         [!POSIX] (S_IFCHR): Likewise.
2393         [!POSIX] (S_IFIFO): Likewise.
2394         [!POSIX] (S_IFREG): Likewise.
2395         [!POSIX] (S_IFDIR): Likewise.
2396         [!POSIX] (S_IFLNK): Likewise.
2397         [!POSIX] (S_IFSOCK): Likewise.
2398         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2399         variable.
2400         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2401
2402 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2403
2404         * sysdeps/aarch64/memset.S (__memset):
2405         Rewrite of optimized memset.
2406
2407 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2408
2409         [BZ #19703]
2410         Partially async-signal-safe fork for single-threaded processes.
2411         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2412         variable.  Do not acquire and reset/release malloc and libio locks
2413         in single-threaded processes.
2414         * malloc/tst-mallocfork2.c: New file.
2415         * malloc/Makefile (tests): Add it.
2416
2417 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2418
2419         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2420         argument.  Use scratch buffer instead of extend_alloca.
2421         (gethosts): Use scratch buffer instead of extend_alloca.
2422         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2423         extend_alloca.
2424         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2425
2426 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2427
2428         [BZ #20055]
2429         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2430         instead of [__USE_UNIX98].
2431         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2432         [__USE_UNIX98].
2433         * conform/data/termios.h-data (tcgetsid): Do not expect for
2434         [XPG3].
2435         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2436         variable.
2437         (test-xfail-XPG4/termios.h/conform): Likewise.
2438
2439 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2440
2441         Do not use mcheck in localedef.
2442         * locale/programs/localedef.c (turn_on_mcheck)
2443         (__malloc_initialize_hook): Remove.
2444
2445 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2446
2447         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2448         * sysdeps/s390/s390-64/Makefile: Likewise.
2449
2450 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2451
2452         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2453         Remove ifunc-defines.sym.
2454         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2455         Likewise.
2456         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2457         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2458         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2459         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2460         rtld-global-offsets.sym.
2461         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2462         * sysdeps/x86/cpu-features-offsets.sym: This.
2463         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2464         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2465
2466 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2467
2468         [BZ #20073]
2469         * io/sys/stat.h (fchmod): Declare for
2470         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2471         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2472         variable.
2473
2474         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2475         [XPG3] (S_IFSOCK): Likewise.
2476         [XPG3] (S_ISVTX): Likewise.
2477         [XPG3] (S_ISLNK): Likewise.
2478         [XPG3] (S_ISSOCK): Likewise.
2479         [XPG3] (fchmod): Likewise.
2480         [XPG3] (lstat): Likewise.
2481         [XPG3] (mknod): Likewise.
2482
2483         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2484         [XPG3].  Expect type long and XFAIL for [XPG4].
2485         (st_blocks): Likewise.
2486
2487         [BZ #20044]
2488         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2489         (pthread_atfork): New prototype.
2490         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2491         variable.
2492
2493         [BZ #20043]
2494         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2495         prototype.
2496
2497 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2498
2499         [BZ #20017]
2500         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2501         gmtime.
2502
2503 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2504
2505         [BZ #19994]
2506         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2507         flag in _res.options.
2508
2509 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2510
2511         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2512         [XPG3 || XPG4].
2513         (blksize_t): Likewise.
2514         (clockid_t): Likewise.
2515         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2516         variable.
2517         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2518
2519 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2520
2521         * sysdeps/unix/sysv/linux/s390/init-first.c:
2522         Add VDSO_SYMBOL(getcpu).
2523         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2524         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2525         Add VDSO_SYMBOL(getcpu).
2526         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2527         New define HAVE_GETCPU_VSYSCALL.
2528         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2529
2530 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2531
2532         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2533         instead of <sysdeps/x86_64/cacheinfo.c>.
2534         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2535         * sysdeps/x86/cacheinfo.c: Here.
2536
2537 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2538
2539         * malloc/malloc-internal.h: Adjust header file guard.
2540
2541 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2542
2543         [BZ #19787]
2544         * inet/getnameinfo.c (check_sprintf_result): New function.
2545         (CHECKED_SNPRINTF): New macro.
2546         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2547         to the host buffer.
2548         (gni_host_local): Use checked_copy to copy the host name.
2549         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2550         (gni_serv_local): Use checked_copy to copy the service name.
2551         (getnameinfo): Remove unnecessary truncation of result buffers.
2552
2553 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2554
2555         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2556         in case of inet_ntop failure.
2557
2558 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2559
2560         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2561         avoid long lines.
2562         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2563         variables.
2564         (gni_host_inet, gni_host_local): Add comment.
2565         (gni_host): Add comment.  Use temporary to avoid long lines.
2566
2567 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2568
2569         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2570         registers specifiers where general purpose registers specifiers should
2571         have been used.
2572
2573 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2574
2575         [BZ #19779]
2576         CVE-2016-1234
2577         Avoid copying names of directory entries.
2578         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2579         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2580         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2581         (struct readdir_result): New type.
2582         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2583         (GL_READDIR): New macros.
2584         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2585         (convert_dirent, convert_dirent64): New functions.
2586         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2587         convert_dirent64.  Adjust references to the readdir result.
2588         * sysdeps/unix/sysv/linux/i386/glob64.c:
2589         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2590         * posix/bug-glob2.c (LONG_NAME): Define.
2591         (filesystem): Add LONG_NAME.
2592         (my_DIR): Increase the size of room_for_dirent.
2593
2594 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2595
2596         [BZ #20041]
2597         * misc/sys/select.h (__need_timespec): Only define if
2598         [__USE_XOPEN2K].
2599         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2600         variable.
2601         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2602         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2603         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2604
2605 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2606             Segher Boessenkool  <segher@gcc.gnu.org>
2607
2608         [BZ #20004]
2609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2610         (__novec_swapcontext): Add missing load.
2611
2612 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2613
2614         [BZ #20023]
2615         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2616         <time.h>.
2617         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2618         variable.
2619         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2620
2621 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2622
2623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2624         flags CLONE_VM compare.
2625
2626 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2627
2628         [BZ #20031]
2629         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2630         completely empty.
2631
2632 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2633
2634         [BZ #19573]
2635         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2636         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2637         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2638         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2639         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2640         (hesiod_free_list): Mark as hidden.
2641         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2642         res_set, res_get.
2643         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2644         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2645         (hesiod_init): Remove obsolete res_ninit call.
2646         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2647         (hesiod_bind): Do not call init.
2648         (get_txt_records): Use res_mkquery, res_send instead of
2649         res_nmkquery, res_nsend.
2650         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2651         instead of _nss_hesiod_init.
2652         (_nss_hesiod_initgroups_dyn): Likewise.
2653         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2654         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2655         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2656
2657 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2658
2659         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2660         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2661
2662 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2663
2664         * hesiod/hesiod.h: Remove RCS keyword.
2665         * hesiod/hesiod_p.h: Likewise.
2666
2667         * hesiod/hesiod.c: Likewise.
2668
2669 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2670
2671         [BZ #12450]
2672         * locale/iso-639.def: Add Samogitian/sgs.
2673
2674 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2675
2676         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2677
2678         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2679
2680 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2681             Carlos O'Donell  <carlos@redhat.com>
2682
2683         [BZ #19072]
2684         * grp/Makefile (headers): Add grp-merge.h
2685         (routines): Add grp-merge.
2686         * grp/getgrgid_r.c: Include grp-merge.h.
2687         (DEEPCOPY_FN): Define.
2688         (MERGE_FN): Define.
2689         * grp/getgrname_r.c: Include grp-merge.h.
2690         (DEEPCOPY_FN): Define.
2691         (MERGE_FN): Define.
2692         * grp/grp-merge.c: New file.
2693         * grp/grp-merge.h: New file.
2694         * include/grp-merge.h: New file.
2695         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2696         __copy_grp@GLIBC_PRIVATE.
2697         * manual/nss.texi (Actions in the NSS configuration): Describe
2698         return, continue, and merge.
2699         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2700         (DEEPCOPY_FN): Define.
2701         (MERGE_FN): Define.
2702         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2703         (DEEPCOPY_FN): Define.
2704         (MERGE_FN): Define.
2705         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2706         [!MERGE_FN]: Define __merge_einval.
2707         (CHECK_MERGE): Define.
2708         (REENTRANT_NAME): Process merge if do_merge is true.
2709         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2710         (__nss_getent_r): Likewise.
2711         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2712         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2713
2714 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2715
2716         [BZ #20012]
2717         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2718         length to calculate the buffer to read.
2719         (fmemopen_write): Set the buffer position based on bytes written.
2720         (fmemopen_seek): Return EINVAL for invalid whence modes.
2721
2722         [BZ #19957]
2723         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2724         tst-getpid2.
2725         (test): Add tst-clone2.
2726         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2727         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2728         pid/tid fields for CLONE_VM.
2729         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2730         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2731         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2732         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2733         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2734         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2735         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2736         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2738         Likewise.
2739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2740         Likewise.
2741         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2742         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2743         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2744         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2745         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2746         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2747         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2748         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2749
2750 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2751
2752         [BZ #19642]
2753         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2754         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2755         (gni_serv_local, gni_serv): New functions extracted from
2756         getnameinfo.
2757         (getnameinfo): Call gni_host and gni_serv to perform the
2758         processing.  Always free scratch buffer.
2759
2760 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2761
2762         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2763         remaining bytes in the dest string, with zeros.
2764
2765 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2766
2767         [BZ #20010]
2768         CVE-2016-3706
2769         * sysdeps/posix/getaddrinfo.c
2770         (convert_hostent_to_gaih_addrtuple): New function.
2771         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2772         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2773         AF_INET data.
2774
2775 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2776
2777         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2778         callback function gl_readdir.
2779         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2780         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2781         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2782         memcpy to copy the name.
2783         * manual/pattern.texi (Calling Glob): Document requirements for
2784         implementations of the gl_readdir callback function.
2785         * manual/examples/mkdirent.c: New example.
2786         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2787         per the manual guidance.
2788         * posix/tst-gnuglob.c (my_readdir): Likewise.
2789
2790 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2791
2792         [BZ #20014]
2793         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2794         not [__USE_POSIX].
2795         (getchar_unlocked): Likewise.
2796         (putc_unlocked): Likewise.
2797         (putchar_unlocked): Likewise.
2798         (flockfile): Likewise.
2799         (ftrylockfile): Likewise.
2800         (funlockfile): Likewise.
2801         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2802         variable.
2803         (test-xfail-XPG4/stdio.h/conform): Likewise.
2804
2805         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2806         Expect constant.
2807         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2808         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2809         variable.
2810         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2811         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2812
2813         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2814         [__USE_LARGEFILE64] (off64_t): Likewise.
2815         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2816         variable.
2817
2818 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2819
2820         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2821
2822 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2823
2824         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2825         * resolv/res_init.c: Likewise.
2826         * resolv/res_mkquery.c: Likewise.
2827
2828 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2829
2830         * resolv/res_init.c (isascii): Do not define.  Use definition in
2831         <ctype.h>.
2832         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2833         (LOG_AUTH): Remove.
2834         (SPRINTF): Remove, adjust caller.
2835         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2836
2837 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2838
2839         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2840         SUNSECURITY conditional.
2841         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2842
2843 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2844
2845         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2846         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2847         Remove BSD-related preprocessor conditionals.
2848         * conf/portability.h: Remove.
2849
2850 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2851
2852         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2853         * resolv/res_data.c: Likewise.
2854
2855 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2856
2857         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2858         * resolv/res_data.c: Remove code conditional on ultrix.
2859
2860 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2861
2862         * resolv/res_init.c (RFC1535): Do not define.  Remove
2863         RFC1535 preprocessor conditionals.
2864         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2865         because there configuration options which make the resolver
2866         behavior different.
2867
2868 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2869
2870         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2871         RESOLVSORT preprocessor conditionals.
2872         * resolv/nss_dns/dns-host.c: Likewise.
2873         * resolv/res_init.c: Likewise.
2874
2875 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2876
2877         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2878         is never defined.
2879
2880 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2881
2882         * inet/inet_lnaof.c: Remove SCSS keyword.
2883         * inet/inet_mkadr.c: Likewise.
2884         * inet/inet_net.c: Likewise.
2885         * inet/inet_netof.c: Likewise.
2886         * inet/rcmd.c: Likewise.
2887         * inet/rexec.c: Likewise.
2888         * inet/ruserpass.c: Likewise.
2889
2890 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2891
2892         * resolv/inet_addr.c: Remove _LIBC conditionals.
2893         * resolv/res_data.c: Likewise.
2894         * resolv/res_init.c: Likewise.
2895         * resolv/res_mkquery.c: Likewise.
2896         * resolv/res_libc.c: Update comment.
2897         * resolv/README: Update.
2898
2899 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2900
2901         * resolv/gethnamaddr.c: Remove SCSS keyword.
2902         * resolv/herror.c: Likewise.
2903         * resolv/inet_addr.c: Likewise.
2904         * resolv/inet_net_ntop.c: Likewise.
2905         * resolv/inet_net_pton.c: Likewise.
2906         * resolv/inet_neta.c: Likewise.
2907         * resolv/inet_ntop.c: Likewise.
2908         * resolv/inet_pton.c: Likewise.
2909         * resolv/ns_date.c: Remove RCS keyword.
2910         * resolv/ns_name.c: Likewise.
2911         * resolv/ns_netint.c: Likewise.
2912         * resolv/ns_parse.c: Likewise.
2913         * resolv/ns_print.c: Likewise.
2914         * resolv/ns_samedomain.c: Likewise.
2915         * resolv/ns_ttl.c: Likewise.
2916         * resolv/nsap_addr.c: Likewise.
2917         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2918         * resolv/res_data.c: Remove RCS keyword.
2919         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2920         * resolv/res_init.c: Likewise.
2921         * resolv/res_mkquery.c: Likewise.
2922         * resolv/res_query.c: Likewise.
2923         * resolv/res_send.c: Likewise.
2924
2925 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2926
2927         * conform/data/stdio.h-data (fdopen): Expect also for
2928         [XPG3 || XPG4].
2929
2930         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2931         (fseeko): Likewise.
2932         (ftello): Likewise.
2933         (ftrylockfile): Likewise.
2934         (funlockfile): Likewise.
2935         (getc_unlocked): Likewise.
2936         (getchar_unlocked): Likewise.
2937         (putc_unlocked): Likewise.
2938         (putchar_unlocked): Likewise.
2939
2940 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2941
2942         [BZ #19868]
2943         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2944         DNS packet syntax checks (which were not needed before).  Skip
2945         over non-PTR records.
2946
2947 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2948
2949         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2950         definition.  Include <stddef.h> instead.
2951
2952 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2953
2954         [BZ #19831]
2955         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2956         function.
2957         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2958         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2959
2960 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2961
2962         [BZ #19862]
2963         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2964         (getanswer_r): Do not call syslog.
2965         (gaih_getanswer_slice): Likewise.
2966         * resolv/gethnamaddr.c (AskedForGot): Remove.
2967         (getanswer): Do not call syslog.
2968         (gethostbyaddr): Likewise.
2969
2970 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2971
2972         * conform/data/signal.h-data (union sigval): Expect also if
2973         [XOPEN2K].
2974         (struct sigevent): Likewise.
2975         (SIGEV_NONE): Likewise.
2976         (SIGEV_SIGNAL): Likewise.
2977         (SIGEV_THREAD): Likewise.
2978         (SIGRTMIN): Likewise.
2979         (SIGRTMAX): Likewise.
2980         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2981         variable.
2982         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2983
2984 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2985
2986         [BZ #19830]
2987         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2988         (gaih_getanswer_slice): Likewise.
2989         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2990         Also check for availability of RR metadata.
2991
2992 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2993
2994         [BZ #19825]
2995         * resolv/res_send.c (send_vc): Remove early *resplen2
2996         initialization.  Set *resplen2 on socket error.  Call
2997         close_and_return_error for other errors.
2998
2999 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3000
3001         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3002         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3003         (SCM_IUCV_TRGCLS): New define.
3004
3005 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3006
3007         [BZ #20005]
3008         * libio/fmemopen.c (fmemopen_write): Update internal position after
3009         write.
3010         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3011         * stdio-common/tst-fmemopen4.c: New file..
3012
3013 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3014
3015         [BZ #19996]
3016         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3017         not [__USE_XOPEN2K].
3018         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3019         variable.
3020
3021         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3022         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3023         variable.
3024
3025         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3026         [__USE_XOPEN2K8].
3027         [__USE_LARGEFILE64] (off64_t): Likewise.
3028         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3029         variable.
3030
3031 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3032
3033         [BZ #19989]
3034         * libio/stdio.h (cuserid): Do not declare if
3035         [__USE_XOPEN2K && !__USE_GNU].
3036         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3037         variable.
3038
3039 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3040
3041         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3042         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3043         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3044         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3045         ifunc'ed strcspn.
3046         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3047         [EALIGN]: Removed.
3048         [END]: Likewise
3049         [STRSPN]: Define instead of the above to control symbol name.
3050         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3051         New file.
3052         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3053         Likewise.
3054         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3055         Likewise.
3056         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3057         Likewise.
3058         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3059         [INITIAL_MASK]: New macro.
3060         [STRCSPN]: Likewise.
3061         [UPDATE_MASK]: Likewise.
3062         [USE_AS_STRCSPN]: Lisewise.
3063
3064 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3065
3066         [BZ #19931]
3067         * stdio-common/tst-vfprintf-width-prec.c: New file.
3068         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3069         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3070         (generated): Add mtrace-related files.
3071         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3072         (tst-%-mem.out): New pattern rule, replaces
3073         tst-printf-bz18872-mem.out.
3074         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3075         specifier, deallocate any previously allocated work buffer.
3076
3077 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3078
3079         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3080         Add nop before __startcontext, add explaining comments.
3081
3082 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3083
3084         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3085         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3086         completely different API.
3087
3088         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3089         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3090         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3091         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3092         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3093         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3094         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3095         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3096         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3097         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3098
3099 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3100
3101         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3102
3103 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3104
3105         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3106         when it is the default of 0.
3107
3108 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3109
3110         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3111         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3112         (sysdep_routines): Add new strcasestr targets.
3113         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3114         (__libc_ifunc_impl_list): Likewise.
3115         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3116         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3117         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3118         * sysdeps/powerpc/powerpc64/power8/Makefile:
3119         New file to add strcasestr-ppc64 to sysdep_routines.
3120         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3121         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3122
3123 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3124
3125         * benchtests/Makefile (wcsmbs-benchset): Include only for
3126         native builds and runs.
3127         (LOCALES): Likewise.
3128         (bench-build): Build timing-type here instead of the bench
3129         target.  Generate locale only for native builds.
3130         * benchtests/README: Add note for cross-building.
3131
3132         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3133
3134         * benchtests/README: Update README to include instructions on
3135         using bench-build.
3136
3137         * Makefile.in (bench-build): New target.
3138         * Rules (PHONY): Add bench-build target.
3139         * benchtests/Makefile (bench): Depend on bench-build.
3140         (bench-build): New target.
3141
3142 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3143
3144         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3145         profil_reply_port.
3146         (profile_waiter): Do not initialize profil_reply_port.
3147         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3148         frequency instead of tick length in us.
3149
3150 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3151
3152         [BZ #18712]
3153         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3154         (__old_mempcpy_small): Likewise.
3155         (__old_strcpy_small): Likewise.
3156         (__old_stpcpy_small): Likewise.
3157         (__old_strpbrk_c2): Fix compat symbol name.
3158         (__old_strpbrk_c3): Likewise.
3159         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3160         (__mempcpy_small): Remove.
3161         (__strcpy_small): Remove.
3162         (__stpcpy_small): Remove.
3163
3164 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3165
3166         [BZ #19400]
3167         * locale/iso-639.def: Add the Talossan/tzl language.
3168
3169 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3170
3171         [BZ #16983]
3172         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3173         comment.  Add "ln" to strchr check on postal_fmt.
3174
3175 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3176
3177         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3178         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3179         tel_dom_fmt.
3180
3181 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3182
3183         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3184         (sysdep_routines): Added __strlen_power8.
3185         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3186         __strlen_power8 entry.
3187         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3188         Implementation for POWER8.
3189         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3190         for __strlen_power8.
3191         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3192         Implementation for POWER8.
3193
3194 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3195
3196         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3197
3198 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3199
3200         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3201         Goldmont and Airmont processors.
3202
3203 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3204
3205         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3206         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3207         (__STRING2_SMALL_GET32): Remove.
3208         (memset): Remove.
3209         (__memset_1): Remove.
3210         (__memset_gc): Remove.
3211         (__mempcpy): Remove.
3212         (mempcpy): Remove.
3213         (__mempcpy_args): Remove.
3214         (strchr): Remove.
3215         (strcpy): Remove.
3216         (strcpy_args): Remove.
3217         (__stpcpy_args): Remove.
3218         (__strcmp_cc): Remove.
3219         (__strcmp_gc): Remove.
3220         (strstr): Remove.
3221
3222 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3223
3224         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3225         * nis/nis_call.c (nis_server_cache_add): Likewise.
3226
3227 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3228
3229         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3230
3231 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3232
3233         * malloc/arena.c (__malloc_fork_lock_parent)
3234         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3235         internal_function attribute.
3236
3237 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3238
3239         * stdio-common/printf_fp.c (__printf_fp_l):
3240         Rename ___printf_fp_l to __printf_fp_l and
3241         remove strong alias. Use libc_hidden_def instead
3242         of ldbl_hidden_def macro.
3243
3244 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3245
3246         Remove malloc hooks from fork handler.  They are no longer needed
3247         because malloc runs right before fork, and no malloc calls from
3248         other fork handlers are not possible anymore.
3249         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3250         declarations.
3251         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3252         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3253         (atfork_recursive_cntr): Remove.
3254         (__malloc_fork_lock_parent): Do not override malloc hooks and
3255         thread_arena.
3256         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3257         thread_arena.
3258         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3259         thread_arena instead of save_arena.
3260
3261 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3262
3263         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3264         (thread_atfork, thread_atfork_static): Remove.
3265         * sysdeps/mach/hurd/malloc-machine.h:
3266         (thread_atfork, thread_atfork_static): Remove.
3267
3268 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3269
3270         [BZ #19431]
3271         Run the malloc fork handler as late as possible to avoid deadlocks.
3272         * malloc/malloc-internal.h: New file.
3273         * malloc/malloc.c: Include it.
3274         * malloc/arena.c (ATFORK_MEM): Remove.
3275         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3276         Update comment.
3277         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3278         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3279         Remove outdated comment.
3280         (ptmalloc_init): Do not call thread_atfork.  Remove
3281         thread_atfork_static.
3282         * malloc/tst-malloc-fork-deadlock.c: New file.
3283         * Makefile (tests): Add tst-malloc-fork-deadlock.
3284         (tst-malloc-fork-deadlock): Link against libpthread.
3285         * manual/memory.texi (Aligned Memory Blocks): Update safety
3286         annotation comments.
3287         * sysdeps/nptl/fork.c (__libc_fork): Call
3288         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3289         __malloc_fork_unlock_child.
3290         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3291
3292 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3293
3294         [BZ #19613]
3295         Remove union wait.
3296         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3297         (w_stopsig, w_stopval): Remove.
3298         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3299         stat_loc argument.
3300         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3301         (__WAIT_STATUS_DEFN): Remove.
3302         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3303         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3304         (wait, wait3, wait4): Use int * for the stat_loc argument.
3305         * posix/wait.c (__wait): Likewise.
3306         * posix/wait3.c (__wait3): Likewise.
3307         * posix/wait4.c (__wait4): Likewise.
3308         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3309         (__WAIT_STATUS_DEFN): Remove.
3310         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3311         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3312         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3313         argument.
3314         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3315         * sysdeps/posix/wait3.c (__wait3): Likewise.
3316         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3317         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3318         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3319         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3320         stat_loc argument.
3321         * manual/process.texi (BSD Wait Functions): Remove union wait.
3322
3323 2016-04-13  Andreas Schwab  <schwab@suse.de>
3324
3325         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3326         (test-extras): Add tst-tlsalign-vars.
3327         * math/Makefile: Wrap long lines.
3328         (libm-vec-test-wrappers): Define.
3329         (test-extras): Add $(libm-vec-test-wrappers).
3330         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3331         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3332         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3333         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3334         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3335         (extra-test-objs): Add corresponding objects.
3336
3337 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3338
3339         [BZ #19928]
3340         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3341         New.
3342         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3343         times of shared cache size.
3344         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3345         (VMOVNT): New.
3346         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3347         (VMOVNT): Likewise.
3348         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3349         (VMOVNT): Likewise.
3350         (VMOVU): Changed to movups for smaller code sizes.
3351         (VMOVA): Changed to movaps for smaller code sizes.
3352         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3353         comments.
3354         (PREFETCH): New.
3355         (PREFETCH_SIZE): Likewise.
3356         (PREFETCHED_LOAD_SIZE): Likewise.
3357         (PREFETCH_ONE_SET): Likewise.
3358         Rewrite to use forward and backward loops, which move 4 vector
3359         registers at a time, to support overlapping addresses and use
3360         non temporal store if size is above the threshold and there is
3361         no overlap between destination and source.
3362
3363 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3364
3365         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3366         Include dl-vdso.
3367         * sysdeps/unix/sysv/linux/mips/Versions: Add
3368         __vdso_clock_gettime.
3369         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3370         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3371         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3372         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3373         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3374         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3375         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3376         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3377         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3378
3379 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3380
3381         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3382         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3383         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3384         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3385         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3386         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3389         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3390         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3391         syscalls generation.
3392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3393         [__NR_pwrite64] (__NR_write): Remove define.
3394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3395         [__NR_pwrite64] (__NR_write): Remove define.
3396         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3397         Remove define.
3398         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3399         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3400         Remove define.
3401         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3402         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3403         Linux implementation as base.
3404         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3405
3406         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3407         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3408         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3409         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3412         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3413         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3414         syscall generation.
3415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3416         [__NR_pread64] (__NR_pread): Remove define.
3417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3418         [__NR_pread64] (__NR_pread): Likewise.
3419         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3420         define.
3421         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3422         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3423         Remove define.
3424         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3425         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3426         Linux implementation as base.
3427         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3428         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3429         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3430
3431         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3432         definition.
3433         (__ALIGNMENT_COUNT): Likewise.
3434         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3435         (__ALIGNMENT_COUNT): Likewise.
3436         (SYSCALL_LL): New define.
3437         (SYSCALL_LL64): Likewise.
3438         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3439         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3440         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3441         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3442
3443         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3444         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3445         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3446         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3447         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3448         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3449
3450 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3451
3452         [BZ #19865]
3453         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3454         original buffer before retry.
3455
3456 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3457
3458         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3459         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3460         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3461         GLRO(dl_auxv) list.
3462         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3463         including <ldsodefs.h>.
3464         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3465
3466 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3467
3468         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3469         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3470         $(CPPFLAGS).
3471
3472 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3473
3474         [BZ #17950]
3475         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3476         Add -mfpmath=387.
3477
3478 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3479
3480         * sysdeps/i386/configure.ac: Change == to = when calling test.
3481         * sysdeps/x86_64/configure.ac: Likewise.
3482         * sysdeps/i386/configure: Regenerated.
3483         * sysdeps/x86_64/configure: Likewise.
3484
3485 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3486
3487         [BZ #16137]
3488         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3489         * benchtests/bench-strcoll.c (input_files): Likewise.
3490         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3491         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3492         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3493
3494 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3495
3496         [BZ #19929]
3497         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3498         [__USE_XOPEN2K8 && !__USE_GNU].
3499         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3500         variable.
3501
3502         [BZ #19925]
3503         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3504         define if [!__USE_MISC && __USE_XOPEN2K].
3505         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3506         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3507         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3508         Likewise.
3509         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3510         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3511         variable.
3512         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3513
3514 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3515
3516         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3517         (sysdep_routines): Add new strspn targets.
3518         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3519         (__libc_ifunc_impl_list): Add strspn.
3520         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3521         New file.
3522         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3523         Likewise.
3524         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3525         Likewise.
3526         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3527         Likewise.
3528
3529 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3530
3531         * misc/hsearch_r.c: Include <limits.h>.
3532
3533 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3534
3535         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3536
3537 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3538
3539         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3540         (MEMCPY_SYMBOL): New.
3541         (MEMPCPY_SYMBOL): Likewise.
3542         (MEMMOVE_CHK_SYMBOL): Likewise.
3543         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3544         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3545         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3546         Provide alias for memcpy in libc.a and ld.so.
3547
3548 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3549
3550         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3551         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3552         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3553         Disabled fro now.
3554         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3555         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3556
3557 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3558
3559         * benchtests/Makefile (string-benchset): Add memcpy-large,
3560         memmove-large and memset-large.
3561         * benchtests/bench-memcpy-large.c: New file.
3562         * benchtests/bench-memmove-large.c: Likewise.
3563         * benchtests/bench-memmove-large.c: Likewise.
3564         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3565
3566 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3567
3568         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3569         32-bit displacement to avoid long nop between instructions.
3570
3571 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3572
3573         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3574         a comment on VMOVU and VMOVA.
3575
3576 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3577
3578         [BZ #19633]
3579         Use specified locale for number formatting in strfmon_l.
3580         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3581         (__nl_lookup_word): New inline functions.
3582         * include/printf.h (__print_fp_l): Declare.
3583         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3584         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3585         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3586         (___printf_fp): New function.
3587         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3588         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3589         * stdlib/tst-strfmon_l.c (do_test): New test.
3590         * stdlib/Makefile (tests): Add kt.
3591         (LOCALES): Build additional locales.
3592         (tst-strfmon_l.out): Require locales.
3593
3594 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3595
3596         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3597         if not in libc.
3598         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3599         Likewise.
3600         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3601         Likewise.
3602         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3603         Likewise.
3604
3605 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3606
3607         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3608         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3609         with unaligned_erms.
3610         (__memmove_erms): Skip if source == destination.
3611         (__memmove_unaligned_erms): Don't check source == destination
3612         first.
3613
3614 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3615
3616         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3617         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3618
3619 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3620
3621         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3622         * string/strspn.c (strspn): Likewise.
3623
3624 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3625
3626         * benchtests/bench-memset.c (do_test): Support 64-byte
3627         alignment.
3628         (test_main): Test 64-byte alignment.
3629
3630 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3631
3632         * benchtests/bench-memmove.c (test_main): Test 64-byte
3633         alignment.
3634
3635 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3636
3637         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3638
3639 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3640
3641         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3642         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3643         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3644
3645         * string/strpbrk.c (strpbrk): Rewrite function.
3646         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3647         (__strpbrk_c2): Likewise.
3648         (__strpbrk_c3): Likewise.
3649         * string/string-inlines.c
3650         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3651         Likewise.
3652         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3653         Likewise.
3654
3655         * string/strspn.c (strcspn): Rewrite function.
3656         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3657         (__strspn_c1): Remove inline function.
3658         (__strspn_c2): Likewise.
3659         (__strspn_c3): Likewise.
3660         * string/string-inlines.c
3661         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3662         compatibility symbol.
3663         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3664         Likewise.
3665         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3666         Likewise.
3667         * string/string-inlines.c: Include generic version.
3668
3669 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3670             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3671
3672         * string/Version (libc): Add GLIBC_2.24.
3673         * string/strcspn.c (strcspn): Rewrite function.
3674         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3675         (__strcspn_c1): Remove inline function.
3676         (__strcspn_c2): Likewise.
3677         (__strcspn_c3): Likewise.
3678         * string/string-inline.c
3679         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3680         compatibility symbol.
3681         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3682         Likewise.
3683         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3684         Likewise.
3685         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3686
3687 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3688
3689         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3690         Use ahi instead of aghi to adjust stack pointer.
3691
3692 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3693
3694         [BZ #19853]
3695         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3696         TEST to take significant digits as second parameter.
3697         [TEST]: Redefine in terms of TEST_N taking 30
3698         significant digits.
3699         (do_test): Add test case to demonstrate precision
3700         failure in the ldbl-128ibm printf.
3701         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3702         (__mpn_extract_long_double): Carry 7 extra intermediate
3703         bits of precision to aide computing difference when
3704         signs differ.
3705
3706 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3707
3708         [BZ #19881]
3709         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3710         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3711         memset-avx512-unaligned-erms.
3712         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3713         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3714         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3715         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3716         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3717         __memset_sse2_unaligned_erms, __memset_erms,
3718         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3719         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3720         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3721         file.
3722         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3723         Likewise.
3724         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3725         Likewise.
3726         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3727         Likewise.
3728
3729 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3730
3731         [BZ #19776]
3732         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3733         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3734         memmove-avx512-unaligned-erms.
3735         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3736         (__libc_ifunc_impl_list): Test
3737         __memmove_chk_avx512_unaligned_2,
3738         __memmove_chk_avx512_unaligned_erms,
3739         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3740         __memmove_chk_sse2_unaligned_2,
3741         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3742         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3743         __memmove_avx512_unaligned_erms, __memmove_erms,
3744         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3745         __memcpy_chk_avx512_unaligned_2,
3746         __memcpy_chk_avx512_unaligned_erms,
3747         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3748         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3749         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3750         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3751         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3752         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3753         __mempcpy_chk_avx512_unaligned_erms,
3754         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3755         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3756         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3757         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3758         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3759         __mempcpy_erms.
3760         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3761         file.
3762         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3763         Likwise.
3764         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3765         Likwise.
3766         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3767         Likwise.
3768
3769 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3770
3771         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3772         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3773         (La_s390_64_regs): Likewise.
3774         (La_s390_32_retval): Append vector register lrv_v24.
3775         (La_s390_64_retval): Likeweise.
3776         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3777         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3778         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3779         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3780
3781 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3782
3783         [BZ #19916]
3784         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3785         to create a non-vector/vector version for _dl_runtime_resolve and
3786         _dl_runtime_profile. Move implementation to ...
3787         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3788         (_dl_runtime_resolve) Save and restore fpr/vrs.
3789         (_dl_runtime_profile) Save and restore vrs and fix some issues
3790         if _dl_call_pltexit is called.
3791         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3792         Choose the correct resolver function if running on a machine with vx.
3793         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3794         to create a non-vector/vector version for _dl_runtime_resolve and
3795         _dl_runtime_profile. Move implementation to ...
3796         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3797         (_dl_runtime_resolve) Save and restore fpr/vrs.
3798         (_dl_runtime_profile) Save and restore vrs and fix some issues
3799         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3800         Choose the correct resolver function if running on a machine with vx.
3801
3802 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3803
3804         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3805
3806 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3807
3808         [BZ #19509]
3809         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3810         skip_map != NULL.
3811         * elf/tst-dlsym-error.c: New file.
3812         * elf/Makefile (tests): Add tst-dlsym-error.
3813         (tst-dlsym-error): Link against libdl.
3814
3815 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3816
3817         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3818         (__ASSUME_FUTIMESAT): Remove macro.
3819         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3820
3821 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3822
3823         [BZ #19879]
3824         CVE-2016-3075
3825         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3826         copy name.
3827
3828 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3829
3830         [BZ #19837]
3831         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3832         error if parse_line fails.
3833
3834 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3835
3836         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3837         (index_cpu_ERMS): Likewise.
3838         (reg_ERMS): Likewise.
3839
3840 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3841
3842         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3843         PER_LINUX_FDPIC): Add.
3844
3845 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3846
3847         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3848         memcpy-avx512-no-vzeroupper.
3849         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3850         to ...
3851         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3852         (MEMCPY): Don't define.
3853         (MEMCPY_CHK): Likewise.
3854         (MEMPCPY): Likewise.
3855         (MEMPCPY_CHK): Likewise.
3856         (MEMPCPY_CHK): Renamed to ...
3857         (__mempcpy_chk_avx512_no_vzeroupper): This.
3858         (MEMPCPY_CHK): Renamed to ...
3859         (__mempcpy_chk_avx512_no_vzeroupper): This.
3860         (MEMCPY_CHK): Renamed to ...
3861         (__memmove_chk_avx512_no_vzeroupper): This.
3862         (MEMCPY): Renamed to ...
3863         (__memmove_avx512_no_vzeroupper): This.
3864         (__memcpy_avx512_no_vzeroupper): New alias.
3865         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3866
3867 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3868
3869         [BZ #18858]
3870         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3871         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3872         and mempcpy-avx512-no-vzeroupper.
3873         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3874         New.
3875         (MEMPCPY): Likewise.
3876         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3877         (MEMPCPY_CHK): New.
3878         (MEMPCPY): Likewise.
3879         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3880         (MEMPCPY): Likewise.
3881         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3882         (MEMPCPY): Likewise.
3883         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3884         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3885         Likewise.
3886         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3887         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3888
3889 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3890              Amit Pawar  <Amit.Pawar@amd.com>
3891
3892         [BZ #19583]
3893         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3894         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3895         processors.  Set Fast_Copy_Backward for AMD Excavator
3896         processors.
3897         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3898         New.
3899         (index_arch_Fast_Unaligned_Copy): Likewise.
3900         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3901         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3902
3903 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3904
3905         [BZ #19791]
3906         * resolv/res_send.c (close_and_return_error): New function.
3907         (send_dg): Initialize *resplen2 after reopen failure.  Call
3908         close_and_return_error for error returns.  On error paths without
3909         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3910         successful return.
3911
3912 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3913
3914         [BZ# 19860]
3915         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3916         zero if the compiler does not provide the AVX512F bit.
3917
3918 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3919
3920         [BZ #19848]
3921         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3922         from 8 to 4.
3923         (__ieee754_powl): Compare integer exponent against 4 not 8.
3924         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3925         from 8 to 4.
3926         (__ieee754_powl): Compare integer exponent against 4 not 8.
3927         * math/auto-libm-test-in: Add more tests of pow.
3928         * math/auto-libm-test-out: Regenerated.
3929         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3931
3932 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3933
3934         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3935         Make code unconditional.
3936         [!__NR_utimensat]: Remove conditional code.
3937         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3938         Make code unconditional.
3939         [!__NR_utimensat]: Remove conditional code.
3940         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3941         Make code unconditional.
3942         [!__NR_utimensat]: Remove conditional code.
3943
3944 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3945
3946         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3947         Make code unconditional.
3948
3949 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3950
3951         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3952         call-clobbered %eax on retry path.
3953         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3954
3955 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3956
3957         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3958         Don't set %rcx twice before "rep movsb".
3959
3960 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3961
3962         [BZ #19583]
3963         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3964         inline.  Check family before setting family, model and
3965         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3966         bits here.
3967         (init_cpu_features): Replace HAS_CPU_FEATURE and
3968         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3969         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3970         for Intel processors with usable AVX2.  Call get_common_indeces
3971         for other processors with family == NULL.
3972         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3973         (CPU_FEATURES_ARCH_P): Likewise.
3974         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3975         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3976
3977 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3978
3979         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3980         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3981         $(shared-thread-library) instead of hardcoding the path to libpthread.
3982
3983 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3984
3985         * sysdeps/unix/sysv/linux/kernel-features.h
3986         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3987         * sysdeps/unix/sysv/linux/getdents.c
3988         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3989         [!have_no_getdents64_defined]: Likewise.
3990         (__GETDENTS): Remove __have_no_getdents64 conditional.
3991
3992 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3993
3994         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3995         Remove macro.
3996         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3997         <kernel-features.h>.
3998         (signalfd) [__NR_signalfd4]: Make code unconditional.
3999         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4000
4001 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4002
4003         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4004         style.
4005
4006 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4007
4008         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4009         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4010         __pthread_unwind.
4011         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4012         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4013         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4014         (__condvar_cleanup1): Likewise.
4015
4016 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4017
4018         [BZ #19822]
4019         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4020         move it to the final $@ location.
4021
4022 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4023
4024         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4025         access where posix_spawn success and pid argument is null.
4026         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4027         success case.
4028
4029 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4030
4031         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4032
4033         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4034
4035         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4036         and __fcntl.
4037         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4038         __fcntl only.
4039         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4040         adding attribute_hidden to __open and __fcntl.
4041
4042         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4043         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4044         depend on libc-modules.h,
4045         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4046
4047 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4048
4049         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4050         Remove macro.
4051         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4052         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4053         entry.
4054
4055         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4056         Remove macro.
4057         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4058         include <kernel-features.h>.
4059         [!__ASSUME_FALLOCATE]: Remove conditional code.
4060         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4061
4062 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4063
4064         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4065         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4066         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4067         (_ZGVdN4v_cos_avx2): Likewise.
4068         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4069         (_ZGVdN4v_cos): Likewise.
4070         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4071         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4072         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4073         (_ZGVdN4v_exp_avx2): Likewise.
4074         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4075         (_ZGVdN4v_exp): Likewise.
4076         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4077         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4078         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4079         (_ZGVdN4v_log_avx2): Likewise.
4080         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4081         (_ZGVdN4v_log): Likewise.
4082         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4083         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4084         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4085         (_ZGVdN4vv_pow_avx2): Likewise.
4086         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4087         (_ZGVdN4vv_pow): Likewise.
4088         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4089         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4090         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4091         (_ZGVdN4v_sin_avx2): Likewise.
4092         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4093         (_ZGVdN4v_sin): Likewise.
4094         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4095         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4096         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4097         (_ZGVdN4vvv_sincos_avx2): Likewise.
4098         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4099         (_ZGVdN4vvv_sincos): Likewise.
4100         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4101         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4102         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4103         (_ZGVbN4v_cosf_sse4): Likewise.
4104         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4105         (_ZGVdN8v_cosf_avx2): Likewise.
4106         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4107         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4108         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4109         (_ZGVbN4v_expf_sse4): Likewise.
4110         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4111         (_ZGVdN8v_expf_avx2): Likewise.
4112         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4113         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4114         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4115         (_ZGVbN4v_logf_sse4): Likewise.
4116         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4117         (_ZGVdN8v_logf_avx2): Likewise.
4118         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4119         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4120         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4121         (_ZGVbN4vv_powf_sse4): Likewise.
4122         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4123         (_ZGVdN8vv_powf_avx2): Likewise.
4124         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4125         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4126         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4127         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4128         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4129         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4130         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4131         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4132         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4133         (_ZGVbN4v_sinf_sse4): Likewise.
4134         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4135         (_ZGVdN8v_sinf_avx2): Likewise.
4136         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4137         Use JUMPTARGET to call callee.
4138         (WRAPPER_IMPL_SSE2_ff): Likewise.
4139         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4140         (WRAPPER_IMPL_AVX): Likewise.
4141         (WRAPPER_IMPL_AVX_ff): Likewise.
4142         (WRAPPER_IMPL_AVX_fFF): Likewise.
4143         (WRAPPER_IMPL_AVX512): Likewise.
4144         (WRAPPER_IMPL_AVX512_ff): Likewise.
4145         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4146         Likewise.
4147         (WRAPPER_IMPL_SSE2_ff): Likewise.
4148         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4149         (WRAPPER_IMPL_AVX): Likewise.
4150         (WRAPPER_IMPL_AVX_ff): Likewise.
4151         (WRAPPER_IMPL_AVX_fFF): Likewise.
4152         (WRAPPER_IMPL_AVX512): Likewise.
4153         (WRAPPER_IMPL_AVX512_ff): Likewise.
4154         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4155
4156 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4157
4158         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4159         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4160         qualifier.
4161         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4162         internal_function qualifiers.
4163
4164 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4165
4166         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4167         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4168         * math/atest-exp.c (exp_mpn): Mark chk unused.
4169         * math/atest-exp2.c (exp_mpn): Likwise.
4170         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4171         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4172
4173 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4174
4175         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4176         Remove macro.
4177         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4178         <kernel-features.h>.
4179         [__NR_ppoll]: Make code unconditional.
4180         [!__ASSUME_PPOLL]: Remove conditional code.
4181
4182         * sysdeps/unix/sysv/linux/kernel-features.h
4183         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4184         (__ASSUME_ACCEPT4): Likewise.
4185         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4186         Define.
4187         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4188         Likewise.
4189         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4190         Likewise.
4191         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4192         Likewise.
4193         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4194         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4195         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4196         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4197         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4198         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4199         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4200         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4201         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4202         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4203         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4204         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4205         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4206         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4207         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4208         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4209         Likewise.
4210         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4211         Likewise.
4212         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4213         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4214         0x040300].
4215         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4216         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4217         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4218         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4219         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4220         0x030300].
4221         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4222         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4223         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4224         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4225         0x040300].
4226         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4227         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4228         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4229         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4230         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4231         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4232         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4233         0x030300].
4234         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4235         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4236         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4237         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4238         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4239         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4240         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4241         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4242         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4243         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4244         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4245         0x040300].
4246         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4247         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4248         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4249         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4250         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4251         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4252         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4253         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4254         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4255         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4256         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4257         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4258         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4259         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4260         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4261         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4262         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4263         Likewise.
4264         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4265         Likewise.
4266
4267 2016-03-15  Andreas Schwab  <schwab@suse.de>
4268
4269         [BZ #19257]
4270         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4271         statp->_u._ext.nscount as loop count.
4272
4273 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4274
4275         * math/test-signgam-finite-c99.c: Also #undef
4276         __LIBC_INTERNAL_MATH_INLINES.
4277         * math/test-signgam-main.c: Likewise.
4278
4279 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4280
4281         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4282         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4283         (MADV_FREE): Likewise.
4284         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4285         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4286         EPOLLEXCLUSIVE.
4287
4288 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4289
4290         * timezone/README: Remove mention of checktab.awk. Mention wiki
4291         SharedSourceFiles.
4292
4293 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4294
4295         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4296         WUNTRACED.
4297
4298 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4299
4300         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4301         order to match the type of p when calling atomic_exchange_acq().
4302
4303 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4304
4305         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4306         cfi_offset calls.
4307         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4308         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4309         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4310         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4311         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4312
4313 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4314
4315         * timezone/checktab.awk: Removed.
4316
4317 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4318
4319         * manual/math.texi (Errors in Math Functions): Document relaxed
4320         accuracy goals for IBM long double.
4321         * math/libm-test.inc (test_exceptions): Always allow spurious
4322         "underflow" and "inexact" exceptions for IBM long double.
4323
4324 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4325
4326         [BZ #19762]
4327         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4328         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4329         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4330         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4331         (bit_arch_*): This for feature array.
4332         (bit_*): Renamed to ...
4333         (bit_cpu_*): This for cpu array.
4334         (index_*): Renamed to ...
4335         (index_arch_*): This for feature array.
4336         (index_*): Renamed to ...
4337         (index_cpu_*): This for cpu array.
4338         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4339         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4340         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4341         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4342         bit_##name with index_cpu_##name and bit_cpu_##name.
4343         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4344         bit_##name with index_arch_##name and bit_arch_##name.
4345
4346 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4347
4348         [BZ #19792]
4349         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4350         Terminate FDE before return label.
4351
4352 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4353
4354         [BZ #19790]
4355         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4356         (rintl): Define as macro.
4357         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4358         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4359         of fesetround.  Ensure results are evaluated before end of scope.
4360         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4361         USE_AS_NEARBYINTL and include s_rintl.c.
4362         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4363         Disable exception traps in new environment.
4364         (libc_feholdsetround_ppc_ctx): Likewise.
4365
4366 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4367
4368         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4369         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4370         (tst_audit10_aux) [__AVX512F__]: ... here.
4371
4372 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4373
4374         * include/sys/auxv.h: New file.
4375
4376 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4377
4378         [BZ #19759]
4379         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4380
4381 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4382
4383         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4384         operand modifier.
4385         (feclearexcept): Likewise.
4386
4387 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4388
4389         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4390         to reflect the entire 32-bit HWCAP.
4391         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4392         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4393
4394 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4395
4396         [BZ #19783]
4397         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4398         $(test-via-rtld-prefix).
4399         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4400
4401 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4402
4403         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4404         union wait.  Report any non-zero exit status as error.
4405
4406 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4407
4408         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4409         configured with --enable-hardcoded-path-in-tests.
4410
4411 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4412
4413         [BZ #19677]
4414         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4415         (__ieee754_remainderl): Put zero low parts in canonical form.
4416         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4417         file.  Based on
4418         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4419         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4420         with wrapper round test-fmodrem-ldbl-128ibm.c.
4421         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4422         file.
4423         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4424         Likewise.
4425         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4426         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4427
4428 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4429
4430         [BZ #19610]
4431         * elf/ldconfig.c (opt_link): Update comment.
4432         (options): Update help string for option -X.
4433         (search_dir): Unlink stale symbolic link only if updating symbolic
4434         links.
4435         * elf/tst-ldconfig-X.sh: New file.
4436         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4437         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4438
4439 2016-03-07  Andreas Schwab  <schwab@suse.de>
4440
4441         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4442         needed arguments.
4443
4444 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4445
4446         [BZ #15333]
4447         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4448         to lstat64.
4449
4450 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4451
4452         * libio/filedoalloc.c (isatty): Remove.
4453         (local_isatty): Add comment.  Call __isatty directly.
4454         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4455         * libio/wfiledoalloc.c (isatty): Remove.
4456         (_IO_wfile_doallocate): Update comment.
4457
4458 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4459
4460         [BZ #19269]
4461         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4462         tst-audit4-aux.o.
4463         (tst-audit10): Depend on tst-audit10-aux.o.
4464         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4465         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4466         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4467         instead of inline AVX code.
4468         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4469         instead of inline AVX512 code.
4470         * sysdeps/x86_64/tst-audit4-aux.c: New file
4471         * sysdeps/x86_64/tst-audit10-aux.c: New file
4472
4473         [BZ #19648]
4474         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4475
4476 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4477
4478         [BZ #14750]
4479         [BZ #10354]
4480         [BZ #18433]
4481         * include/sched.h (__clone): Add hidden prototype.
4482         (__clone2): Likewise.
4483         * include/unistd.h (__dup): Likewise.
4484         * posix/Makefile (tests): Add tst-spawn2.
4485         * posix/tst-spawn2.c: New file.
4486         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4487         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4488         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4489         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4490         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4491         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4492         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4493         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4494         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4495         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4496         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4498         Likewise.
4499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4500         Likewise.
4501         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4502         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4503         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4504         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4505         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4506         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4507         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4508         * sysdeps/unix/sysv/linux/nptl-signals.h
4509         (____nptl_is_internal_signal): New function.
4510         * sysdeps/unix/sysv/linux/spawni.c: New file.
4511
4512         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4513         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4514         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4515         * posix/tst-execvp2.c (do_test): Likewise.
4516         * posix/tst-execvp3.c (do_test): Likewise.
4517         * posix/tst-execvp4.c (do_test): Likewise.
4518         * posix/tst-execvpe1.c: New file.
4519         * posix/tst-execvpe2.c: Likewise.
4520         * posix/tst-execvpe3.c: Likewise.
4521         * posix/tst-execvpe4.c: Likewise.
4522         * posix/tst-execvpe5.c: Likewise.
4523         * posix/tst-execvpe6.c: Likewise.
4524
4525         [BZ #19534]
4526         * posix/execl.c (execl): Remove dynamic memory allocation.
4527         * posix/execle.c (execle): Likewise.
4528         * posix/execlp.c (execlp): Likewise.
4529
4530 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4531
4532         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4533         Replace .text with .text.avx512.
4534         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4535         Likewise.
4536
4537 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4538
4539         * sysdeps/generic/libnsl.abilist: New file.
4540         * sysdeps/generic/libutil.abilist: New file.
4541
4542 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4543
4544         [BZ #19762]
4545         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4546         HAS_ARCH_FEATURE with Fast_Rep_String.
4547         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4548         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4549         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4550         Likewise.
4551         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4552         Likewise.
4553         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4554         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4555         Likewise.
4556         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4557         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4558         Likewise.
4559
4560 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4561
4562         [BZ #19745]
4563         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4564         with *%rax in call.
4565
4566 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4567
4568         [BZ #19745]
4569         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4570         with *__libc_start_main@GOTPCREL(%rip) in call.
4571
4572 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4573
4574         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4575         inside conditional for nonempty $(CXX).
4576
4577         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4578         nonempty.
4579
4580         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4581         to test for empty $(CXX) rather than $(CXX) of "no".
4582
4583 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4584
4585         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4586
4587 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4588             H.J. Lu  <hongjiu.lu@intel.com>
4589
4590         [BZ #18880]
4591         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4592         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4593         enable __memcpy_ssse3_back.
4594
4595 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4596
4597         [BZ #19758]
4598         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4599         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4600
4601 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4602
4603         [BZ #19490]
4604         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4605         (__fentry__): Likewise.
4606
4607 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4608
4609         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4610         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4611
4612 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4613
4614         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4615         __mcount_internal directly.
4616         (C_LABEL(__fentry__)): Likewise.
4617         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4618         directly.
4619
4620 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4621
4622         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4623         (__start_context): Call __setcontext directly.
4624
4625 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4626
4627         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4628         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4629         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4630         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4631         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4632         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4633         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4634         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4635         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4636         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4637         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4638         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4639         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4640         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4641         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4642         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4643         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4644         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4645         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4646         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4647         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4648         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4649         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4650         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4651         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4652         Remove conditional code.
4653         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4654         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4655         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4656         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4657         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4658         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4659         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4660         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4661         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4662         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4663         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4664         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4665
4666 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4667
4668         * NEWS (2.23): Fix typo in bug 19048 text.
4669
4670 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4671
4672         [BZ #14259]
4673         * Makeconfig: Rename msgcatdir to localedir.
4674         Rename inst_msgcatdir to inst_localedir.
4675         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4676         * config.make.in: Add localedir.
4677         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4678         (ldd-rewrite): Likewise.
4679         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4680         (install-others): Use inst_localedir.
4681         (CPPFLAGS): Use localedir.
4682         * locale/Makefile (locale-CPPFLAGS): Likewise.
4683         * po/Makefile (mo-installed): Use inst_localedir.
4684
4685         [BZ #19575]
4686         * localedata/charmaps/GB18030: Update comments regarding PAU to
4687         non-PUA mappings.
4688
4689 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4690
4691         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4692         test for header.
4693         * sysdeps/unix/sysv/linux/configure: Regenerated.
4694         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4695         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4696         Remove conditional code.
4697         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4698
4699         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4700         Define to 3.2.0.
4701         (arch_minimum_kernel): Likewise.
4702         * sysdeps/unix/sysv/linux/configure: Regenerated.
4703         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4704         Define to 2.6.32.
4705         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4706         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4707         (arch_minimum_kernel): Define to 2.6.32.
4708         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4709         * README: Document Linux 3.2 requirement.
4710         * manual/install.texi (Linux): Document Linux 3.2 headers
4711         requirement.
4712         * INSTALL: Regenerated.
4713
4714 2016-02-24  Andreas Schwab  <schwab@suse.de>
4715
4716         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4717         if !NO_LONG_DOUBLE.
4718
4719 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4720
4721         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4722         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4723
4724 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4725
4726         [BZ #19512]
4727         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4728
4729 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4730
4731         * posix/tst-dir.c: Include libc-internal.h.
4732
4733 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4734
4735         [BZ #19056]
4736         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4737         * manual/filesys.texi (Reading/Closing Directory): Mention
4738         deprecaion.
4739         * posix/tst-dir.c (main): Disable deprecation warning in test.
4740
4741 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4742
4743         [BZ #19679]
4744         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4745         Renamed to ...
4746         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4747         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4748         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4749         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4750         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4751         * sysdeps/x86_64/dl-trampoline.h
4752         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4753         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4754
4755 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4756
4757         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4758
4759 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4760
4761         * elf/elf.h (R_386_GOT32X): New.
4762         (R_386_NUM): Update.
4763         (R_X86_64_GOTPCRELX: New.
4764         (R_X86_64_REX_GOTPCRELX): New.
4765         (R_X86_64_NUM): Update.
4766
4767 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4768
4769         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4770
4771 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4772
4773         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4774         assign attr->stackaddr to it, and adjust it down when
4775         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4776         [_STACK_GROWS_UP]: Delete assert.
4777         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4778         Implement stack grows up logic.
4779         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4780         stack grows up logic.
4781
4782 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4783
4784         * NEWS: Update with 2.24 template.
4785
4786 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4787
4788         [BZ #19678]
4789         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4790         Ensure +0.0 is returned when taking the next value below the least
4791         positive value.
4792
4793 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4794
4795         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4796         available.  Do not define NO_THREADS.
4797         * malloc/malloc.c: Do not check NO_THREADS.
4798         * malloc/arena.c: Likewise.
4799
4800 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4801
4802         * malloc/malloc.c (__libc_mallinfo): Update comment.
4803         (struct malloc_par): Remove max_total_mem member, it was always 0.
4804         (int_mallinfo): Store 0 into usmblks (no functional change).
4805         * malloc/hooks.c (struct malloc_state): Document that
4806         max_total_mem is always 0.
4807         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4808         always 0.
4809         * manual/memory.texi (Statistics of Malloc): Likewise.
4810
4811 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4812
4813         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4814         * malloc/arena.c (arena_max): Remove.
4815         (heap_trim, _int_new_arena): Do not update arena_max.
4816
4817 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4818
4819         * resolv/res_init.c (res_ninit): Update comment.
4820
4821 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4822
4823         [BZ #19505]
4824         * posix/spawn_int.h: Add headers and include guard.
4825         (__spawn_valid_fd): New function.
4826         * posix/spawn_faction_addopen.c
4827         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4828         * posix/spawn_faction_addclose.c
4829         (posix_spawn_file_actions_addclose): Likewise.
4830         * posix/spawn_faction_adddup2.c
4831         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4832         second file descriptor.
4833         * posix/spawn_valid_fd.c: New file.
4834         * posix/tst-posix_spawn-fd.c: New file.
4835         * posix/Makefile (routines): Add spawn_valid_fd.
4836         (tests): Add tst-posix_spawn-fd.
4837
4838 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4839
4840         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4841         (do_test): Limit the number of arenas, so that we can use fewer
4842         outer threads.  Limit timeout to 3 seconds, in preparation for a
4843         larger TIMEOUT value.
4844
4845 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4846
4847         [BZ #19674]
4848         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4849         sign in overflowing and underflowing results when overflow or
4850         underflow is detected early.  Include sign in result before rather
4851         than after scaling.
4852
4853         [BZ #19603]
4854         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4855         (__ieee754_remainderl): Adjust sign of integer version of low part
4856         when taking absolute value of high part.
4857         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4858         * math/libm-test.inc (remainder_test_data): Add another test.
4859         (remquo_test_data): Likewise.
4860
4861 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4862
4863         [BZ #19602]
4864         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4865         equal high parts and both low parts zero specially.
4866         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4867         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4868         Add test-fmodl-ldbl-128ibm.
4869
4870         [BZ #19595]
4871         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4872         common logic for all cases of shifting subnormal results.  Do not
4873         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4874         exponent to ldbl_insert_mantissa in subnormal case.
4875
4876         [BZ #19594]
4877         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4878         on high and low parts then adjust result and use
4879         ldbl_canonicalize_int if needed.
4880
4881         [BZ #19593]
4882         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4883         on high part and __floor or __ceil on low part then use
4884         ldbl_canonicalize_int if needed.
4885
4886         [BZ #19592]
4887         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4888         high and low parts then use ldbl_canonicalize_int if needed.
4889
4890         [BZ #17899]
4891         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4892         New function.
4893         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4894         on high and low parts then use ldbl_canonicalize_int if needed.
4895
4896 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4897
4898         * configure: Regenerated.
4899
4900         * po/libc.pot: Regenerated.
4901
4902         * po/be.po: Updated translation.
4903         * po/bg.po: Likewise.
4904         * po/ca.po: Likewise.
4905         * po/cs.po: Likewise.
4906         * po/da.po: Likewise.
4907         * po/el.po: Likewise.
4908         * po/eo.po: Likewise.
4909         * po/es.po: Likewise.
4910         * po/fi.po: Likewise.
4911         * po/fr.po: Likewise.
4912         * po/gl.po: Likewise.
4913         * po/hr.po: Likewise.
4914         * po/hu.po: Likewise.
4915         * po/ia.po: Likewise.
4916         * po/id.po: Likewise.
4917         * po/it.po: Likewise.
4918         * po/ja.po: Likewise.
4919         * po/lt.po: Likewise.
4920         * po/nb.po: Likewise.
4921         * po/nl.po: Likewise.
4922         * po/pt_BR.po: Likewise.
4923         * po/rw.po: Likewise.
4924         * po/sk.po: Likewise.
4925         * po/sl.po: Likewise.
4926         * po/sv.po: Likewise.
4927         * po/tr.po: Likewise.
4928         * po/zh_CN.po: Likewise.
4929         * po/zh_TW.po: Likewise.
4930
4931         * version.h (RELEAES): Set to "development".
4932         (VERSION): Set to 2.23.90.
4933
4934         * version.h (RELEASE): Set to "stable".
4935         (VERSION): Set to 2.23.
4936         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4937
4938         * NEWS: Updated fixed bugs.
4939
4940 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4941             Wilco Dijkstra  <wdijkstr@arm.com>
4942
4943         [BZ #19462]
4944         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4945         (_STRING_INLINE_unaligned): This.
4946         * include/string.h: Include <string_private.h>.
4947         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4948         _STRING_INLINE_unaligned.
4949         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4950         (_STRING_INLINE_unaligned): New.
4951         * sysdeps/aarch64/string_private.h: New file.
4952         * sysdeps/generic/string_private.h: Likewise.
4953         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4954         * sysdeps/s390/string_private.h: Likewise.
4955         * sysdeps/x86/string_private.h: Likewise.
4956         * sysdeps/m68k/m680x0/m68020/bits/string.h
4957         (_STRING_ARCH_unaligned): Renamed to ...
4958         (_STRING_INLINE_unaligned): This.
4959         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4960         to ...
4961         (_STRING_INLINE_unaligned): This.
4962         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4963         to ...
4964         (_STRING_INLINE_unaligned): This.
4965         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4966         to ...
4967         (_STRING_INLINE_unaligned): This.
4968
4969 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4970             H.J. Lu  <hongjiu.lu@intel.com>
4971
4972         [BZ #19590]
4973         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4974         relocation.
4975
4976 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4977
4978         [BZ #18665]
4979         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4980         *herrno_p.
4981         (gaih_getanswer): Document functional behviour. Return tryagain
4982         if any result is tryagain.
4983         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4984         when freed.
4985         * resolv/res_send.c: Add copyright text.
4986         (__libc_res_nsend): Document that MAXPACKET is expected.
4987         (send_vc): Document. Remove buffer reuse.
4988         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4989         size of the buffer. Add Dprint for truncated UDP buffer.
4990
4991 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4992
4993         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4994         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4995         * INSTALL: Regenerate.
4996
4997 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4998             Jonathan Wakely  <jwakely@redhat.com>
4999             Carlos O'Donell  <carlos@redhat.com>
5000
5001         [BZ 19439]
5002         * math/Makefile (tests): Add test-math-isinff.
5003         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5004         * math/bits/mathcalls.h [__USE_MISC]: Use
5005         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5006         functions not in C++11 and which don't conflict e.g. isinff,
5007         isinfl etc.
5008         * math/test-math-isinff.cc: New file.
5009
5010 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5011
5012         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5013
5014 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5015
5016         [BZ #19529]
5017         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5018
5019 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5020
5021         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5022
5023 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5024
5025         [BZ #19550]
5026         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5027         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5028         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5029         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5030         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5031         New syscall entry.
5032         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5033         New syscall entry.
5034         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5035         syscall entry.
5036
5037 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5038
5039         [BZ #18240]
5040         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5041         unsigned int wraparound.
5042
5043 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5044
5045         [BZ #18240]
5046         * misc/bug18240.c: New test.
5047         * misc/Makefile (tests): Add it.
5048
5049 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5050             Joseph Myers  <joseph@codesourcery.com>
5051
5052         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5053         load in branch delay slot when less than a word of input left.
5054
5055 2016-01-27  Andreas Schwab  <schwab@suse.de>
5056
5057         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5058         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5059         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5060         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5061
5062 2016-01-26  David S. Miller  <davem@davemloft.net>
5063
5064         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5065
5066 2016-01-25  David S. Miller  <davem@davemloft.net>
5067
5068         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5069         __sqrtl_finite.
5070         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5071         instead using versioned_symbol.
5072         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5073         of entries.
5074
5075         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5076         __sqrtl_finite to GLIBC_2.23
5077
5078 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5079
5080         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5081
5082 2016-01-25  Andreas Schwab  <schwab@suse.de>
5083
5084         [BZ #17514]
5085         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5086         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5087         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5088         * nptl/tst-mutex-errorcheck.c: New file.
5089
5090 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5091
5092         [BZ #18560]
5093         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5094         (IPCOP_semop): Likewise.
5095         (IPCOP_semget): Likewise.
5096         (IPCOP_semctl): Likewise.
5097         (IPCOP_msgsnd): Likewise.
5098         (IPCOP_msgrcv): Likewise.
5099         (IPCOP_msgget): Likewise.
5100         (IPCOP_msgctl): Likewise.
5101         (IPCOP_shmat): Likewise.
5102         (IPCOP_shmdt): Likewise.
5103         (IPCOP_shmget): Likewise.
5104         (IPCOP_shmctl): Likewise.
5105
5106 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5107
5108         * string/tst-endian.c: Include <libc-internal.h>.
5109         (do_test): Ignore tautological-compare warnings around
5110         "htobeXX (beXXtoh (i)) != i" and
5111         "htoleXX (leXXtoh (i)) != i" if-statements.
5112
5113 2016-01-24  David S. Miller  <davem@davemloft.net>
5114
5115         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5116         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5117         alias.
5118         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5119         __sqrtl_finite.
5120
5121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5122
5123 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5124
5125         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5126         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5127         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5128
5129 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5130
5131         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5132         (thread_func): Use new function to simplify barrier check.
5133         (do_test): Use new function to simplify checking barrier exit
5134         code, and actually join the child thread.
5135
5136 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5137
5138         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5139         semicolon.
5140         (__libc_tend): Likewise.
5141         (__libc_tabort): Likewise.
5142
5143 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5144
5145         * sysdeps/nios2/libm-test-ulps: Update.
5146         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5147         (__gtsf2): Likewise.
5148         (__unorddf2): Likewise.
5149         (__unordsf2): Likewise.
5150         (__ledf2): Likewise.
5151
5152 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5153
5154         * nis/nis_table.c (__follow_path): Disable diagnostic for
5155         uninitialized variable that is a false positive for gcc 4.7.
5156         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5157
5158 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5159
5160         * sysdeps/nacl/lowlevellock-futex.h
5161         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5162         Always evaluate PRIVATE argument.
5163
5164 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5165
5166         [BZ #19490]
5167         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5168         (pthread_cond_broadcast): Use ENTRY/END
5169         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5170         (pthread_cond_signal): Likewise.
5171         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5172         Likewise.
5173         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5174         Likewise.
5175         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5176         Likewise.
5177
5178 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5179
5180         * sysdeps/ieee754/dbl-64/s_finite.c
5181         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5182         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5183         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5184         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5185         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5186
5187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5188         (__gtsf2): Add as optional for libc.so.
5189         (__unordsf2): Likewise.
5190         (__signbit): Remove for libc.so.
5191         (__signbitl): Likewise.
5192
5193 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5194
5195         * iconvdata/bug-iconv11.c (test_ibm93x):
5196         Use %zu printf format specifier for size_t argument.
5197
5198 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5199
5200         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5201         already-recorded ulps.
5202         * sysdeps/arm/libm-test-ulps: Regenerated.
5203         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5204         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5205         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5206
5207 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5208             Paul Pluzhnikov  <ppluzhnikov@google.com>
5209
5210         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5211         assembler not supporting AVX-512.
5212
5213 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5214
5215         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5216
5217 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5218
5219         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5220         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5221
5222         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5223
5224         * sysdeps/arm/libm-test-ulps: Regenerated.
5225
5226 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5227
5228         [BZ #19451]
5229         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5230
5231 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5232
5233         [BZ #19486]
5234         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5235         * sysdeps/generic/fix-fp-int-convert-overflow.h
5236         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5237         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5238         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5239         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5240         Likewise.
5241         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5242         Avoid conversions to long int where inexact exceptions
5243         could be raised.
5244         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5245         Likewise.
5246         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5247         Avoid conversions to long long int where inexact exceptions
5248         could be raised.
5249         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5250         Likewise.
5251
5252 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5253
5254         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5255         * configure: Regenerated.
5256
5257 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5258
5259         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5260
5261 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5262
5263         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5264         outside of comment.
5265
5266 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5267
5268         * nptl/tst-barrier1.c: Add description on first line.
5269         * nptl/tst-barrier2.c: Likewise.
5270         * nptl/tst-barrier3.c: Likewise.
5271         * nptl/tst-barrier4.c: Likewise.
5272         * nptl/tst-barrier5.c: Likewise.
5273
5274 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5275
5276         [BZ #18868]
5277         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5278
5279 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5280
5281         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5282         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5283         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5284         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5285         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5286         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5287         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5288         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5289         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5290         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5291         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5292
5293 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5294
5295         [BZ #13065]
5296         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5297         new implementation.
5298         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5299         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5300         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5301         (BARRIER_IN_THRESHOLD): New macro.
5302         * nptl/pthread_barrierattr_setpshared.c
5303         (pthread_barrierattr_setpshared): Clean up.
5304         * nptl/tst-barrier4.c: Correct comment.
5305         * nptl/tst-barrier5.c: New file.
5306         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5307         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5308         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5309         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5310         * nptl/lowlevelbarrier.sym: Remove.
5311         * nptl/DESIGN-barrier.txt: Remove.
5312         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5313         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5314         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5315         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5316         error.
5317         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5318         implementation.
5319
5320 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5321
5322         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5323         (do_child): Mask SIGRTMIN while thr is running.
5324
5325 2016-01-15  Martin Sebor  <msebor@redhat.com>
5326
5327         [BZ #19432]
5328         * iconvdata/Makefile: Add bug-iconv11.
5329         * iconvdata/bug-iconv11.c: New test.
5330         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5331         * iconvdata/ibm933.c: Same.
5332         * iconvdata/ibm935.c: Same.
5333         * iconvdata/ibm937.c: Same.
5334         * iconvdata/ibm939.c: Same.
5335
5336 2016-01-15  Martin Sebor  <msebor@redhat.com>
5337
5338         [BZ #19443]
5339         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5340         [DEBUG] (_ufc_set_bits): Declare used.
5341         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5342         [DEBUG] (print_all): Declare used.
5343         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5344         operands of the ternary ?: expression to target type.
5345         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5346         calling the undeclared abort.
5347         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5348
5349 2016-01-15  Martin Sebor  <msebor@redhat.com>
5350
5351         [BZ #18755]
5352         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5353         warnings.
5354         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5355         (__gai_create_helper_thread): Same.
5356         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5357         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5358         to suppress -Wmaybe-uninitialized warnings.
5359
5360 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5361
5362         [BZ #19465]
5363         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5364         inside if.
5365         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5366         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5367         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5368
5369 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5370
5371         [BZ #19466]
5372         * time/tst-mktime2.c (time_t_max): Removed.
5373         (time_t_min): Likewise.
5374         (TYPE_SIGNED): New.
5375         (TYPE_MINIMUM): Likewise.
5376         (TYPE_MAXIMUM): Likewise.
5377         (TIME_T_MIN): Likewise.
5378         (TIME_T_MAX): Likewise.
5379         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5380         and TIME_T_MIN.
5381         (do_test): Likewise.
5382
5383 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5384
5385         [BZ #19467]
5386         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5387         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5388
5389 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5390
5391         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5392
5393 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5394
5395         * benchtests/Makefile (PYTHON): Define.
5396         (bench-func): Use $(PYTHON) to run python scripts.
5397         ($(objpfx)bench-%.c): Likewise.
5398
5399 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5400
5401         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5402         leading slash when `file_name' is "/".
5403
5404 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5405
5406         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5407         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5408         Likewise.
5409         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5410         Likewise.
5411         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5412         Likewise.
5413         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5414         enum constant and macro.
5415         (PTRACE_SETSIGMASK): Likewise.
5416         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5417         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5418         (PTRACE_GETSIGMASK): Likewise.
5419         (PTRACE_SETSIGMASK): Likewise.
5420         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5421         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5422         Likewise.
5423         (PTRACE_SETSIGMASK): Likewise.
5424         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5425         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5426         (PTRACE_GETSIGMASK): Likewise.
5427         (PTRACE_SETSIGMASK): Likewise.
5428         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5429         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5430         Likewise.
5431         (PTRACE_SETSIGMASK): Likewise.
5432         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5433         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5434         Likewise.
5435         (PTRACE_SETSIGMASK): Likewise.
5436         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5437         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5438         Likewise.
5439         (PTRACE_SETSIGMASK): Likewise.
5440         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5441
5442 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5443             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5444
5445         [BZ #19439]
5446         * math/bits/mathcalls.h
5447         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5448         prototype.
5449         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5450
5451 2016-01-11  Andreas Schwab  <schwab@suse.de>
5452
5453         [BZ #19253]
5454         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5455         cache when TZDEFRULES was used.
5456         * time/tst-tzname.c: New file.
5457         * time/Makefile (test): Add tst-tzname.
5458         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5459         * timezone/Makefile (test-zones): Add $(posixrules-file).
5460         ($(testdata)/$(posixrules-file)): New rule.
5461
5462 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5463
5464         Fix doc quoting problems with Texinfo 5
5465         Without this change, in the info file output, Texinfo 5 quotes code
5466         in text with undirected single quotes 'like this' and generates
5467         code examples that with many PDF readers cannot be cut out of PDFs
5468         and pasted into code.
5469         * manual/libc.texinfo: Configure the libc manual like the GNU
5470         Emacs manual, by using @documentencoding and setting
5471         txicodequoteundirected and txicodequotebacktick.  This way,
5472         Texinfo 5 quotes code in text with directed single quotes ‘like
5473         this’ and produces examples that can be cut out of PDFs.  This
5474         change causes Texinfo 5 to generate info files that contain UTF-8
5475         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5476         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5477
5478 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5479
5480         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5481         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5482         barriers to their respective compiler built-ins.
5483         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5484         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5485         * sysdeps/powerpc/sysdep.h: Likewise.
5486         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5487         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5488         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5489
5490 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5491
5492         * scripts/config.guess: Revert previous shebang change.
5493         * scripts/config.sub: Likewise.
5494         * scripts/mkinstalldirs: Likewise.
5495
5496 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5497
5498         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5499         PPC_FEATURE2_HAS_IEEE128.
5500         * sysdeps/powerpc/dl-procinfo.c:
5501         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5502
5503 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5504
5505         [BZ #19415]
5506         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5507         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5508         (_dl_lookup_address): Rewrite using function resolver trampoline.
5509         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5510         two bits in address.
5511
5512 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5513
5514         * longlong.h: Change !__SHMEDIA__ to
5515         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5516         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5517
5518 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5519             Joseph Myers  <joseph@codesourcery.com>
5520             Mark Shinwell  <shinwell@codesourcery.com>
5521             Andrew Stubbs  <ams@codesourcery.com>
5522             Rich Felker <dalias@libc.org>
5523
5524         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5525
5526 2016-01-07  Richard Henderson  <rth@redhat.com>
5527
5528         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5529
5530 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5531
5532         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5533         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5534         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5535         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5536         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5537
5538 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5539             Joseph Myers  <joseph@codesourcery.com>
5540
5541         * timezone/private.h: Update from tzcode 2015g.
5542         * timezone/tzfile.h: Likewise.
5543         * timezone/tzselect.ksh: Likewise.
5544         * timezone/zdump.c: Likewise.
5545         * timezone/zic.c: Likewise.
5546         * timezone/ialloc.c: Remove file.
5547         * timezone/scheck.c: Likewise.
5548         * timezone/Makefile (extra-objs): Remove variable.
5549         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5550         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5551         -Wno-maybe-uninitialized.
5552         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5553         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5554         (CFLAGS-ialloc.c): Remove variable.
5555         (CFLAGS-scheck.c): Likewise.
5556         * timezone/README: Update list of files from tzcode.
5557
5558 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5559
5560         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5561         instead of __fxprintf when _LIBC is undefined.
5562
5563 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5564
5565         * catgets/test-gencat.sh: Remove space after shebang.
5566         * conform/GlibcConform.pm: Likewise.
5567         * conform/check-header-lists.sh: Likewise.
5568         * conform/conformtest.pl: Likewise.
5569         * conform/linknamespace.pl: Likewise.
5570         * conform/list-header-symbols.pl: Likewise.
5571         * debug/catchsegv.sh: Likewise.
5572         * elf/genrtldtbl.awk: Likewise.
5573         * elf/tst-pathopt.sh: Likewise.
5574         * elf/tst-rtld-load-self.sh: Likewise.
5575         * grp/tst_fgetgrent.sh: Likewise.
5576         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5577         * iconvdata/gen-8bit-gap.sh: Likewise.
5578         * iconvdata/gen-8bit.sh: Likewise.
5579         * iconvdata/run-iconv-test.sh: Likewise.
5580         * intl/tst-gettext.sh: Likewise.
5581         * intl/tst-gettext2.sh: Likewise.
5582         * intl/tst-gettext4.sh: Likewise.
5583         * intl/tst-gettext6.sh: Likewise.
5584         * intl/tst-translit.sh: Likewise.
5585         * io/ftwtest-sh: Likewise.
5586         * libio/test-freopen.sh: Likewise.
5587         * locale/gen-translit.pl: Likewise.
5588         * malloc/tst-mtrace.sh: Likewise.
5589         * manual/check-safety.sh: Likewise.
5590         * manual/libc-texinfo.sh: Likewise.
5591         * manual/tsort.awk: Likewise.
5592         * manual/xtract-typefun.awk: Likewise.
5593         * nptl/tst-cancel-wrappers.sh: Likewise.
5594         * nptl/tst-tls6.sh: Likewise.
5595         * posix/globtest.sh: Likewise.
5596         * posix/tst-getconf.sh: Likewise.
5597         * posix/wordexp-tst.sh: Likewise.
5598         * scripts/check-c++-types.sh: Likewise.
5599         * scripts/check-local-headers.sh: Likewise.
5600         * scripts/config.guess: Likewise.
5601         * scripts/config.sub: Likewise.
5602         * scripts/cpp: Likewise.
5603         * scripts/cross-test-ssh.sh: Likewise.
5604         * scripts/documented.sh: Likewise.
5605         * scripts/evaluate-test.sh: Likewise.
5606         * scripts/gen-libc-abis: Likewise.
5607         * scripts/gen-sorted.awk: Likewise.
5608         * scripts/list-fixed-bugs.py: Likewise.
5609         * scripts/merge-test-results.sh: Likewise.
5610         * scripts/mkinstalldirs: Likewise.
5611         * scripts/rellns-sh: Likewise.
5612         * scripts/test-installation.pl: Likewise.
5613         * scripts/update-copyrights: Likewise.
5614         * stdio-common/tst-printf.sh: Likewise.
5615         * stdio-common/tst-unbputc.sh: Likewise.
5616         * stdlib/tst-fmtmsg.sh: Likewise.
5617         * stdlib/tst-setcontext3.sh: Likewise.
5618         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5619         * sysdeps/unix/make-syscalls.sh: Likewise.
5620
5621 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5622
5623         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5624         asm stw with atomic_exchange_rel.  Add explanatory comment.
5625         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5626         Likewise.
5627
5628 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5629
5630         [BZ #19122]
5631         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5632         * sysdeps/generic/dl-unistd.h: New file.
5633         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5634
5635 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5636
5637          [BZ #19122]
5638          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5639          * sysdeps/generic/dl-mman.h: New file.
5640          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5641
5642 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5643
5644         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5645         trailing whitespace removed.
5646         * scripts/config.guess: Update to version 2016-01-01.
5647         * scripts/config.sub: Update to version 2016-01-01.
5648         * scripts/move-if-change: Update from gnulib.
5649
5650 2016-01-04  Anton Blanchard  <anton@samba.org>
5651
5652         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5653         for array indices.
5654         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5655
5656 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5657
5658         * NEWS: Update copyright dates.
5659         * catgets/gencat.c (print_version): Likewise.
5660         * csu/version.c (banner): Likewise.
5661         * debug/catchsegv.sh: Likewise.
5662         * debug/pcprofiledump.c (print_version): Likewise.
5663         * debug/xtrace.sh (do_version): Likewise.
5664         * elf/ldconfig.c (print_version): Likewise.
5665         * elf/ldd.bash.in: Likewise.
5666         * elf/pldd.c (print_version): Likewise.
5667         * elf/sotruss.sh: Likewise.
5668         * elf/sprof.c (print_version): Likewise.
5669         * iconv/iconv_prog.c (print_version): Likewise.
5670         * iconv/iconvconfig.c (print_version): Likewise.
5671         * locale/programs/locale.c (print_version): Likewise.
5672         * locale/programs/localedef.c (print_version): Likewise.
5673         * login/programs/pt_chown.c (print_version): Likewise.
5674         * malloc/memusage.sh (do_version): Likewise.
5675         * malloc/memusagestat.c (print_version): Likewise.
5676         * malloc/mtrace.pl: Likewise.
5677         * manual/libc.texinfo: Likewise.
5678         * nptl/version.c (banner): Likewise.
5679         * nscd/nscd.c (print_version): Likewise.
5680         * nss/getent.c (print_version): Likewise.
5681         * nss/makedb.c (print_version): Likewise.
5682         * posix/getconf.c (main): Likewise.
5683         * scripts/test-installation.pl: Likewise.
5684         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5685
5686         * All files with FSF copyright notices: Update copyright dates
5687         using scripts/update-copyrights.
5688         * intl/plural.c: Regenerated.
5689         * locale/programs/charmap-kw.h: Likewise.
5690         * locale/programs/locfile-kw.h: Likewise.
5691
5692 2016-01-02  Helge Deller  <deller@gmx.de>
5693
5694         [BZ #19285]
5695         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5696         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5697         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5698         (MADV_xxK_PAGES): Remove.
5699
5700 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5701
5702         [BZ #15421]
5703         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5704         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5705         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5706         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5707
5708 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5709
5710         [BZ #19408]
5711         * sysdeps/unix/sysv/linux/personality.c: New file.
5712         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5713         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5714         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5715         (sysdep_routines): Add personality.
5716         (tests): Add tst-personality.
5717         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5718         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5719         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5720         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5721         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5722         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5723         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5724         Likewise.
5725         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5726         Likewise.
5727         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5728         Likewise.
5729         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5730         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5731         Likewise.
5732
5733 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5734
5735         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5736         (PATH_ARM_SYSTYPE): Remove.
5737         (PATH_CPUINFO): Likewise.
5738         (IO_BASE_FOOTBRIDGE): Likewise.
5739         (IO_SHIFT_FOOTBRIDGE): Likewise.
5740         (struct platform): Likewise.
5741         (init_iosys): Remove compatibility code for 2.4 kernels.
5742         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5743
5744 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5745
5746         * malloc/tst-malloc-thread-fail.c: New file.
5747         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5748         (tst-malloc-thread-fail): Link against libpthread.
5749
5750 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5751
5752         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5753         (get_parser): New function.
5754         (main): New function.
5755
5756 2015-12-29  Rob Wu  <rob@robwu.nl>
5757
5758         [BZ #19369]
5759         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5760
5761 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5762
5763         [BZ #19270]
5764         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5765
5766 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5767
5768         [BZ #15421]
5769         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5770
5771 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5772
5773         [BZ #13690]
5774         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5775         after releasing it.
5776         (__lll_robust_unlock): Likewise.
5777         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5778         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5779         (lll_robust_unlock): Likewise.
5780         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5781         Prevent warnings in callers.
5782
5783 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5784
5785         * malloc/arena.c (list_lock): Update comment.
5786
5787 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5788
5789         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5790         __parse_hwcap_and_convert_at_platform to libc.a.
5791
5792 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5793
5794         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5795         platform and feature support for POWER9.
5796         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5797         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5798         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5799         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5800         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5801         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5802         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5803         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5804
5805 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5806
5807         Harmonize generic stdio-lock support with nptl
5808
5809         This fixes build when _IO_funlockfile is a macro, fixes build where
5810         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5811         stack unwind.
5812
5813         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5814         _IO_release_lock ): Use cleanup attribute on new
5815         _IO_acquire_lock_file variable instead of assuming that
5816         _IO_release_lock will be called.
5817         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5818         _IO_acquire_lock_needs_exceptions_enabled.
5819         (_IO_acquire_lock_clear_flags2): New macro.
5820
5821 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5822
5823         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5824
5825 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5826
5827         [BZ #19182]
5828         * malloc/arena.c (list_lock): Document lock ordering requirements.
5829         (free_list_lock): New lock.
5830         (ptmalloc_lock_all): Comment on free_list_lock.
5831         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5832         (detach_arena): Update comment.  free_list_lock is now needed.
5833         (_int_new_arena): Use free_list_lock around detach_arena call.
5834         Acquire arena lock after list_lock.  Add comment, including FIXME
5835         about incorrect synchronization.
5836         (get_free_list): Switch to free_list_lock.
5837         (reused_arena): Acquire free_list_lock around detach_arena call
5838         and attached threads counter update.  Add two FIXMEs about
5839         incorrect synchronization.
5840         (arena_thread_freeres): Switch to free_list_lock.
5841         * malloc/malloc.c (struct malloc_state): Update comments to
5842         mention free_list_lock.
5843
5844 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5845
5846         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5847         Remove functions.
5848         (sloww, sloww1): Accept argument to offset quadrant.
5849         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5850         quadrant.
5851         (__sin, __cos): Consolidate common code into new functions.
5852         (reduce_sincos_1, do_sincos_1): New functions.
5853         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5854
5855         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5856         code to new functions.
5857         (reduce_sincos_2, do_sincos_2): New functions.
5858         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5859
5860         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5861         common code for sincos.
5862         (__cos) [!IN_SINCOS]: Likewise.
5863         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5864         New function.
5865         (__sincos): Use it.
5866
5867 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5868
5869         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5870         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5871         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5872
5873 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5874
5875         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5876         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5877         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5878         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5879         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5880         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5881         index_Prefer_No_VZEROUPPER): New feature.
5882         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5883         Prefer_No_VZEROUPPER for Knights Landing.
5884
5885 015-12-18  Torvald Riegel  <triegel@redhat.com>
5886
5887         * math/atest-exp2.c (mp_exp_m1): Remove.
5888
5889 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5890
5891         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5892         syscalls.
5893         (__SYSCALL0): New macro.
5894         (__SYSCALL1): Likewise.
5895         (__SYSCALL2): Likewise.
5896         (__SYSCALL3): Likewise.
5897         (__SYSCALL4): Likewise.
5898         (__SYSCALL5): Likewise.
5899         (__SYSCALL6): Likewise.
5900         (__SYSCALL_CONCAT_X): Likewise.
5901         (__SYSCALL_CONCAT): Likewise.
5902         (__SYSCALL_DIST): Likewise.
5903         (__SYSCALL_CALL): Likewise.
5904
5905 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5906
5907         [BZ #19363]
5908         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5909
5910 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5911
5912         [BZ #19375]
5913         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5914         negative subnormals.
5915
5916 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5917
5918         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5919         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5920         (INTERNAL_SYSCALL_NCS): Use it.
5921         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5922
5923 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5924
5925         [BZ #19243]
5926         * malloc/arena.c (get_free_list): Remove assert and adjust
5927         reference count handling.  Add comment about reused_arena
5928         interaction.
5929         (reused_arena): Add comments abount get_free_list interaction.
5930         * malloc/tst-malloc-thread-exit.c: New file.
5931         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5932         (tst-malloc-thread-exit): Link against libpthread.
5933
5934 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5935
5936         [BZ #19367]
5937         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5938         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5939         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5940         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5941         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5942
5943 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5944
5945         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5946         Silvermont optimizations for Knights Landing.
5947
5948 2015-12-15  Andreas Schwab  <schwab@suse.de>
5949
5950         [BZ #17197]
5951         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5952         immediately after emitting SI.
5953         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5954         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5955         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5956         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5957         * iconvdata/bug-iconv10.c: New file.
5958         * iconvdata/Makefile (tests): Add bug-iconv10.
5959         ($(objpfx)bug-iconv10.out): New rule.
5960
5961 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5962
5963         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5964         aliasing violation.
5965
5966 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5967
5968         [BZ #18472]
5969         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5970         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5971         conditionals for them.
5972         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5973         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5974         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5975         sys/kdaemon.h.
5976         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5977         compat-only syscall, obsoleted in glibc 2.23.
5978         (create_module): Likewise.
5979         (get_kernel_syms): Likewise.
5980         (query_module): Likewise.
5981         (uselib): Likewise.
5982         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5983
5984 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5985
5986         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5987         <linux/version.h>.
5988         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5989         conditional code.
5990         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5991         and ioshift_name initialization.
5992
5993 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5994
5995         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5996         Fix indentation.
5997
5998 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5999
6000         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6001
6002 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6003
6004         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6005
6006 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6007             Jakub Wilk  <jwilk@debian.org>
6008
6009         [BZ #19347]
6010         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6011         to change the group of the device to the tty group.
6012
6013 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6014
6015         Split large string section; add truncation advice
6016         * manual/examples/strncat.c: Remove.
6017         This example was misleading, as the code would have undefined
6018         behavior if "hello" was longer than SIZE.  Anyway, the manual
6019         shouldn't encourage strncpy+strncat for this sort of thing.
6020         * manual/string.texi (Copying Strings and Arrays): Split into
6021         three sections Copying Strings and Arrays, Concatenating Strings,
6022         and Truncating Strings, as this section was way too long.  All
6023         cross-referenced changed.  Add advice about string-truncation
6024         functions.  Remove misleading strncat example.
6025
6026 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6027
6028         * manual/nss.texi (NSS Modules Interface): Document
6029         NSS_STATUS_NOTFOUND and SUCCESS.
6030
6031 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6032
6033         [BZ 18568]
6034         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6035         201505L, for Unicode 8.
6036
6037 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6038
6039         * locale/C-translit.h: Regenerate.
6040
6041 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6042
6043         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6044         and U+0153.
6045
6046 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6047
6048         [BZ #19351]
6049         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6050         expanding log(1+z), compare z rather than its square with epsilon
6051         to determine when to avoid evaluating the expansion.
6052
6053         [BZ #19350]
6054         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6055         Increase overflow threshold.
6056
6057         [BZ #19349]
6058         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6059         when small.
6060
6061         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6062         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6063         New macro.
6064         [__LINUX_KERNEL_VERSION >= 0x040300]
6065         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6066         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6067         Likewise.
6068         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6069         Likewise.
6070         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6071         Likewise.
6072         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6073         Likewise.
6074         [__LINUX_KERNEL_VERSION >= 0x040300]
6075         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6076         [__LINUX_KERNEL_VERSION >= 0x040300]
6077         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6078         [__LINUX_KERNEL_VERSION >= 0x040300]
6079         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6080         [__LINUX_KERNEL_VERSION >= 0x040300]
6081         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6082         [__LINUX_KERNEL_VERSION >= 0x040300]
6083         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6084         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6085         Likewise.
6086         [__LINUX_KERNEL_VERSION >= 0x040300]
6087         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6088         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6089         Likewise.
6090         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6091         Likewise.
6092         [__LINUX_KERNEL_VERSION >= 0x040300]
6093         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6094         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6095         Likewise.
6096         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6097         Likewise.
6098         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6099         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6100         Likewise.
6101         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6102         Likewise.
6103         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6104         Likewise.
6105         [__LINUX_KERNEL_VERSION >= 0x040300]
6106         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6107         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6108         Likewise.
6109         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6110         Likewise.
6111         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6112         Likewise.
6113         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6114         Likewise.
6115         [__LINUX_KERNEL_VERSION >= 0x040300]
6116         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6117         [__LINUX_KERNEL_VERSION >= 0x040300]
6118         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6119         [__LINUX_KERNEL_VERSION >= 0x040300]
6120         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6121         [__LINUX_KERNEL_VERSION >= 0x040300]
6122         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6123         [__LINUX_KERNEL_VERSION >= 0x040300]
6124         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6125         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6126         Likewise.
6127         [__LINUX_KERNEL_VERSION >= 0x040300]
6128         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6129         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6130         Likewise.
6131         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6132         Likewise.
6133         [__LINUX_KERNEL_VERSION >= 0x040300]
6134         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6135         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6136         Likewise.
6137         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6138         Likewise.
6139         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6140         (__ASSUME_SOCKET_SYSCALL): Likewise.
6141         (__ASSUME_BIND_SYSCALL): Likewise.
6142         (__ASSUME_CONNECT_SYSCALL): Likewise.
6143         (__ASSUME_LISTEN_SYSCALL): Likewise.
6144         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6145         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6146         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6147         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6148         (__ASSUME_SEND_SYSCALL): Likewise.
6149         (__ASSUME_SENDTO_SYSCALL): Likewise.
6150         (__ASSUME_RECV_SYSCALL): Likewise.
6151         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6152         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6153         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6154         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6155         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6156         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6157         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6158         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6159         Likewise.
6160         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6161         Likewise.
6162         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6163         Likewise.
6164         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6165         Likewise.
6166         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6167         Likewise.
6168         [__LINUX_KERNEL_VERSION >= 0x020625]
6169         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6170         [__LINUX_KERNEL_VERSION >= 0x020625]
6171         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6172         [__LINUX_KERNEL_VERSION >= 0x020625]
6173         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6174         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6175         Likewise.
6176         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6177         Likewise.
6178         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6179         Likewise.
6180         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6181         Likewise.
6182         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6183         Likewise.
6184         [__LINUX_KERNEL_VERSION >= 0x020625]
6185         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6186         [__LINUX_KERNEL_VERSION >= 0x020625]
6187         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6188         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6189         Likewise.
6190         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6191         Likewise.
6192
6193 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6194
6195         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6196         record the current if the current ABI and CPU support the FP64
6197         extension.
6198         (has-modd-spreg): Define to record the current if the current ABI and
6199         CPU support 32-bit floating point values in odd FPU registers.
6200         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6201         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6202         $(has-modd-spreg) equals yes.
6203         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6204         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6205         $(has-modd-spreg) equal yes.
6206
6207 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6208
6209         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6210         basename.
6211
6212 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6213
6214         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6215         (bench-string): ... here.
6216         (bench): Add bench-string.
6217         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6218         to *-benchset to reflect what they are.
6219         (benchset): Adjust.
6220
6221         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6222         cos-inputs.
6223
6224 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6225
6226         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6227         __attribute__ ((__simd__)) for vector math function declarations.
6228
6229 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6230
6231         Fix typo in strncat, wcsncat manual entries
6232         * manual/string.texi (Copying and Concatenation): Fix typos in
6233         sample implementations of strncat and wcsncat, by having them use
6234         the old value of the destination length, not the new one.
6235
6236 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6237
6238         [BZ #16961]
6239         [BZ #16962]
6240         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6241         string on the stack for strtod.
6242         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6243         a string on the stack for strtof.
6244         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6245         constructing a string on the stack for strtold.
6246         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6247         __strtold_nan to GLIBC_PRIVATE.
6248         * math/test-nan-overflow.c: New file.
6249         * math/test-nan-payload.c: Likewise.
6250         * math/Makefile (tests): Add test-nan-overflow and
6251         test-nan-payload.
6252
6253 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6254
6255         Consistency about byte vs character in string.texi
6256         * manual/string.texi (String and Array Utilities):
6257         Distinguish more carefully among bytes, multibyte characters,
6258         and wide characters.  Use "byte" when talking about C 'char',
6259         to distinguish it more clearly from multibyte characters.
6260         Say "wide character" or "multibyte character" instead of
6261         "character", when a wide or multibyte character is intended.
6262         Similarly for "multibyte string" versus "string".
6263         Define these terms more carefully.
6264
6265 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6266
6267         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6268         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6269         Likewise.
6270         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6271         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6272         * sysdeps/sh/math_private.h: New file.
6273         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6274         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6275         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6276         long double function name.
6277         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6278         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6279         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6280         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6281         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6282         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6283         Remove __finitel, __isinfl, and __isnanl.
6284         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6285         Likewise.
6286         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6287         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6288         Remove __finitel.
6289         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6290         Likewise.
6291         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6292
6293 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6294
6295         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6296         installed libmvec_nonshared.a.
6297
6298 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6299
6300         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6301         (sysdep_routines): Likewise.
6302         (sysdep-rtld-routines): Likewise.
6303         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6304         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6305         * sysdeps/powerpc/Versions: Added new
6306         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6307         * sysdeps/powerpc/hwcapinfo.c: New file.
6308         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6309         and parse hwcap, hwcap2 and platform number information.
6310         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6311         to store HWCAP+HWCAP2 and platform number.
6312         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6313         for HWCAP+HWCAP2 and platform number in the TCB.
6314         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6315         the HWCAP, HWCAP2 and platform number in the TCB.
6316         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6317         (TLS_INIT_TP): Included calls to add the hwcap and
6318         at_platform values in the TCB in TP initialization.
6319         (TLS_DEFINE_INIT_TP): Likewise.
6320         (THREAD_GET_HWCAP): New macro.
6321         (THREAD_SET_HWCAP): Likewise.
6322         (THREAD_GET_AT_PLATFORM): Likewise.
6323         (THREAD_SET_AT_PLATFORM): Likewise.
6324         * sysdeps/powerpc/powerpc32/dl-machine.h:
6325         (dl_platform_init): New function that calls
6326         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6327         powerpc32.
6328         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6329         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6330         this functionality, static linking case.
6331         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6332         linking case.
6333         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6334         __parse_hwcap_and_convert_at_platform for the static linking case.
6335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6336         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6337         ABI list for GLIBC 2.23.
6338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6339         Likewise.
6340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6341         Likewise.
6342
6343 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6344
6345         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6346         * configure: Regenerate.
6347         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6348         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6349
6350 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6351
6352         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6353         * iconvdata/ibm933.c: Likewise.
6354         * iconvdata/ibm935.c: Likewise.
6355         * iconvdata/ibm937.c: Likewise.
6356         * iconvdata/ibm939.c: Likewise.
6357
6358 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6359
6360         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6361         pthread_join.
6362         * nptl/tst-cancel21.c (tf): Likewise.
6363
6364 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6365
6366         [BZ #19313]
6367         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6368         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6369         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6370         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6371         Likewise.
6372         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6373         Likewise.
6374         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6375         Likewise.
6376         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6377         Likewise.
6378         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6379         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6380         unsigned long int with __CPU_MASK_TYPE.
6381
6382 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6383
6384         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6385
6386 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6387
6388         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6389         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6390         t512.x.
6391         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6392
6393 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6394
6395         [BZ #19214]
6396         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6397         argument to return extended model.  Update family and model
6398         with extended family and model when family == 0x0f.
6399         (init_cpu_features): Updated.
6400
6401 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6402
6403         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6404         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6405
6406         * sysdeps/mach/hurd/mmap64.c: New file.
6407
6408 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6409
6410         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6411         rights for its main user thread in NEWTASK.
6412
6413 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6414
6415         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6416         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6417
6418 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6419
6420         [BZ #14259]
6421         * Makeconfig: Rename localedir to complocaledir.
6422         Rename inst_localedir to inst_complocaledir.
6423         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6424         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6425         * configure.ac: Use libc_cv_complocaledir.
6426         * configure: Regenerate.
6427         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6428         -DCOMPLOCALEDIR.
6429         * locale/findlocale.c: Use COMPLOCALEDIR.
6430         * locale/loadarchive.c: Likewise.
6431         * locale/programs/locale.c: Likewise.
6432         * locale/programs/localedef.c: Likewise.
6433         * locale/programs/locarchive.c: Likewise.
6434         * localedata/Makefile: Use inst_complocaledir.
6435         * sysdeps/gnu/configure: Regenerate.
6436         * sysdeps/hppa/configure: Regenerate.
6437         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6438         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6440         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6441         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6442         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6443         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6444
6445 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6446
6447         [BZ #19058]
6448         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6449         AS_NEEDED.
6450         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6451         workaround.
6452         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6453         libmvec-static-only-routines): Added new file.
6454         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6455
6456 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6457
6458         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6459         of interrupted RPC instead of restoring it.
6460
6461         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6462         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6463         libc_hidden_def.
6464         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6465         into initialized data instead of common. Define rtld_hidden_data_def.
6466         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6467         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6468         libc_hidden_def.
6469         (if_freenameindex): Add libc_hidden_weak.
6470         (if_nameindex): Add libc_hidden_weak.
6471         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6472         __open64.
6473         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6474         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6475         * sysdeps/mach/nanosleep.c: Include <time.h>
6476         (__nanosleep): Rename to __libc_nanosleep.
6477         (__nanosleep): Add weak_alias.
6478         (nanosleep): Update alias.
6479
6480 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6481
6482         * stdlib/strtod_nan.c: New file.
6483         * stdlib/strtod_nan_double.h: Likewise.
6484         * stdlib/strtod_nan_float.h: Likewise.
6485         * stdlib/strtod_nan_main.c: Likewise.
6486         * stdlib/strtod_nan_narrow.h: Likewise.
6487         * stdlib/strtod_nan_wide.h: Likewise.
6488         * stdlib/strtof_nan.c: Likewise.
6489         * stdlib/strtold_nan.c: Likewise.
6490         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6491         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6492         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6493         * wcsmbs/wcstod_nan.c: Likewise.
6494         * wcsmbs/wcstof_nan.c: Likewise.
6495         * wcsmbs/wcstold_nan.c: Likewise.
6496         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6497         strtold_nan.
6498         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6499         wcstof_nan.
6500         * include/stdlib.h (__strtof_nan): Declare and use
6501         libc_hidden_proto.
6502         (__strtod_nan): Likewise.
6503         (__strtold_nan): Likewise.
6504         (__wcstof_nan): Likewise.
6505         (__wcstod_nan): Likewise.
6506         (__wcstold_nan): Likewise.
6507         * include/wchar.h (____wcstoull_l_internal): Declare.
6508         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6509         (____strtoull_l_internal): Remove declaration.
6510         (STRTOF_NAN): Define macro.
6511         (SET_MANTISSA): Remove macro.
6512         (STRTOULL): Likewise.
6513         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6514         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6515         (STRTOF_NAN): Define macro.
6516         (SET_MANTISSA): Remove macro.
6517         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6518         (SET_MANTISSA): Remove macro.
6519         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6520         macro.
6521         (SET_MANTISSA): Remove macro.
6522         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6523         macro.
6524         (SET_MANTISSA): Remove macro.
6525         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6526         (SET_MANTISSA): Remove macro.
6527         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6528         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6529         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6530
6531         [BZ #19266]
6532         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6533         upper case and lower case letters inside NAN(), not using TOLOWER.
6534         * stdlib/tst-strtod-nan-locale-main.c: New file.
6535         * stdlib/tst-strtod-nan-locale.c: Likewise.
6536         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6537         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6538         Depend on $(gen-locales).
6539         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6540         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6541         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6542         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6543         Depend on $(gen-locales).
6544         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6545
6546 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6547
6548         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6549
6550         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6552         __finitel, __isinfl, and __isnanl.
6553         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6554         Likewise.
6555         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6557         __finitel.
6558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6559         Likewise.
6560         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6561
6562 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6563
6564         * malloc/memusage.c (me): Remove redundant getenv call.
6565
6566 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6567
6568         [BZ #19143]
6569         [BZ #19164]
6570         * nptl/check-cpuset.h: Remove.
6571         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6572         Remove CPU set size check.
6573         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6574         Likewise.
6575         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6576         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6577         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6578         (__pthread_setaffinity_new): Remove CPU set size check.
6579         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6580         (__kernel_cpumask_size): Remove.
6581         (__sched_setaffinity_new): Remove CPU set size check.
6582         * manual/threads.texi (Default Thread Attributes): Remove stale
6583         reference to check_cpuset_attr, determine_cpumask_size in comment.
6584         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6585         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6586         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6587         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6588         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6589         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6590         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6591         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6592         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6593         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6594         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6595         skeleton test file.
6596         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6597         tst-affinity-pid.
6598
6599 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6600
6601         * scripts/update-abilist.sh: New file.
6602         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6603         * Makerules (update-all-abi-%, update-all-abi)
6604         (subdir_update-all-abi): New targets.
6605         * elf/Makefile (update-all-abi): New target.
6606
6607 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6608
6609         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6610         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6611         (__libc_lock_define_initialized): Use it.
6612         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6613         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6614         * malloc/malloc.c (main_arena): Likewise.
6615         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6616         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6617
6618 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6619
6620         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6621         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6622         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6623         (PTRACE_O_MASK): Update value.
6624         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6625         New value in enum __ptrace_setoptions.
6626         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6627         (PTRACE_O_MASK): Update value.
6628         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6629         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6630         (PTRACE_O_MASK): Update value.
6631         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6632         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6633         (PTRACE_O_MASK): Update value.
6634         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6635         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6636         (PTRACE_O_MASK): Update value.
6637         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6638         New value in enum __ptrace_setoptions.
6639         (PTRACE_O_MASK): Update value.
6640         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6641         New value in enum __ptrace_setoptions.
6642         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6643         (PTRACE_O_MASK): Update value.
6644
6645         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6646         New macro.
6647         (PACKET_AUXDATA): Likewise.
6648         (PACKET_ORIGDEV): Likewise.
6649         (PACKET_VERSION): Likewise.
6650         (PACKET_HDRLEN): Likewise.
6651         (PACKET_RESERVE): Likewise.
6652         (PACKET_TX_RING): Likewise.
6653         (PACKET_LOSS): Likewise.
6654         (PACKET_VNET_HDR): Likewise.
6655         (PACKET_TX_TIMESTAMP): Likewise.
6656         (PACKET_TIMESTAMP): Likewise.
6657         (PACKET_FANOUT): Likewise.
6658         (PACKET_TX_HAS_OFF): Likewise.
6659         (PACKET_QDISC_BYPASS): Likewise.
6660         (PACKET_ROLLOVER_STATS): Likewise.
6661         (PACKET_FANOUT_DATA): Likewise.
6662         (PACKET_MR_UNICAST): Likewise.
6663
6664         [BZ #19242]
6665         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6666         (TOUPPER): Likewise.
6667         * stdlib/tst-strtol-locale-main.c: New file.
6668         * stdlib/tst-strtol-locale.c: Likewise.
6669         * stdlib/Makefile (tests): Add tst-strtol-locale.
6670         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6671         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6672         Depend on $(gen-locales).
6673         * wcsmbs/tst-wcstol-locale.c: New file.
6674         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6675         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6676         tr_TR.ISO-8859-9.
6677         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6678         Depend on $(gen-locales).
6679
6680 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6681
6682         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6683         __glibc_likely instead of __builtin_expect.  After falling back to
6684         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6685         system interface to register the code pages as occupied.
6686
6687 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6688
6689         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6690         [!ARM_MATH_PRIVATE_H].
6691         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6692         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6693         [!HPPA_MATH_PRIVATE_H].
6694         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6695         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6696         to [!I386_MATH_PRIVATE_H].
6697         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6698         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6699         Change guard to [!M68K_MATH_PRIVATE_H].
6700         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6701         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6702         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6703         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6704         macro.
6705         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6706         [!MIPS_MATH_PRIVATE_H].
6707         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6708         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6709         [!NIO2_MATH_PRIVATE_H].
6710         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6711         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6712         [!TILE_MATH_PRIVATE_H].
6713         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6714
6715         [BZ #15421]
6716         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6717         initialize with 0 and define as weak alias of __signgam.
6718         * include/math.h [!_ISOMAC] (__signgam): Declare.
6719         * math/Makefile (libm-calls): Add w_lgamma_compat.
6720         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6721         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6722         test-signgam-ullong-init.
6723         (tests-static): Add test-signgam-uchar-static,
6724         test-signgam-uchar-init-static, test-signgam-uint-static,
6725         test-signgam-uint-init-static, test-signgam-ullong-static and
6726         test-signgam-ullong-init-static.
6727         (CFLAGS-test-signgam-uchar.c): New variable.
6728         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6729         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6730         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6731         (CFLAGS-test-signgam-uint.c): Likewise.
6732         (CFLAGS-test-signgam-uint-init.c): Likewise.
6733         (CFLAGS-test-signgam-uint-static.c): Likewise.
6734         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6735         (CFLAGS-test-signgam-ullong.c): Likewise.
6736         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6737         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6738         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6739         * math/Versions (libm): Add GLIBC_2.23.
6740         * math/lgamma-compat.h: New file.
6741         * math/test-signgam-main.c: Likewise.
6742         * math/test-signgam-uchar-init-static.c: Likewise.
6743         * math/test-signgam-uchar-init.c: Likewise.
6744         * math/test-signgam-uchar-static.c: Likewise.
6745         * math/test-signgam-uchar.c: Likewise.
6746         * math/test-signgam-uint-init-static.c: Likewise.
6747         * math/test-signgam-uint-init.c: Likewise.
6748         * math/test-signgam-uint-static.c: Likewise.
6749         * math/test-signgam-uint.c: Likewise.
6750         * math/test-signgam-ullong-init-static.c: Likewise.
6751         * math/test-signgam-ullong-init.c: Likewise.
6752         * math/test-signgam-ullong-static.c: Likewise.
6753         * math/test-signgam-ullong.c: Likewise.
6754         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6755         wrapper of w_lgamma_main.c.
6756         * math/w_lgamma_compat.c: New file.
6757         * math/w_lgamma_compatf.c: Likewise.
6758         * math/w_lgamma_compatl.c: Likewise.
6759         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6760         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6761         defining compatibility symbols.
6762         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6763         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6764         wrapper of w_lgammaf_main.c.
6765         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6766         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6767         defining compatibility symbols.
6768         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6769         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6770         wrapper of w_lgammal_main.c.
6771         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6772         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6773         defining compatibility symbols.
6774         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6775         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6776         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6777         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6778         <lgamma-compat.h>.
6779         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6780         (__ieee754_gamma): Define as alias.
6781         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6782         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6783         <lgamma-compat.h>.
6784         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6785         (__ieee754_gammaf): Define as alias.
6786         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6787         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6788         <lgamma-compat.h>.
6789         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6790         (__ieee754_gammal): Define as alias.
6791         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6792         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6793         <math/w_lgamma_compat.c>.
6794         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6795         Define as alias of __lgamma_compat and use in defining lgammal.
6796         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6797         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6798         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6799         (USE_AS_COMPAT): New macro.
6800         (LGAMMA_OLD_VER): Undefine and redefine.
6801         (lgammal): Do not define here.
6802         (gammal): Only define here if [GAMMA_ALIAS].
6803         * conform/linknamespace.pl (@whitelist): Remove signgam.
6804         * sysdeps/nacl/libm.abilist: Update.
6805         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6806         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6807         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6808         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6809         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6810         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6811         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6812         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6813         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6814         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6815         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6816         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6818         Likewise.
6819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6820         Likewise.
6821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6822         Likewise.
6823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6824         Likewise.
6825         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6826         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6827         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6828         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6829         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6830         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6831         Likewise.
6832         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6833         Likewise.
6834         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6835         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6836         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6837
6838 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6839
6840         [BZ #16364]
6841         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6842         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6843
6844 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6845
6846         * sysdeps/s390/fpu/bits/mathinline.h:
6847         Use __asm__ [__volatile__] instead of asm [volatile].
6848         * sysdeps/s390/abort-instr.h: Likewise.
6849         * sysdeps/s390/atomic-machine.h: Likewise.
6850         * sysdeps/s390/bits/string.h: Likewise.
6851         * sysdeps/s390/dl-tls.h: Likewise.
6852         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6853         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6854         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6855         * sysdeps/s390/fpu/fesetround.c: Likewise.
6856         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6857         * sysdeps/s390/fpu/s_fma.c: Likewise.
6858         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6859         * sysdeps/s390/memusage.h: Likewise.
6860         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6861         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6862         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6863         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6864         * sysdeps/s390/nptl/tls.h: Likewise.
6865         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6866         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6867         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6868         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6869         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6870         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6871         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6872         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6873         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6874         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6875         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6876         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6877         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6878         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6879         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6880         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6881         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6882         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6883         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6884         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6885         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6886         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6887         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6888
6889 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6890             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6891
6892         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6893         Add lwarx hint, and use macro for acquire instruction.
6894         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6895         Likewise.
6896         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6897         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6898         update to use new atomic macros.
6899
6900 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6901
6902         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6903         (__lll_trylock_elision): Fix setting of adapt_count.
6904         * sysdeps/unix/sysv/linux/powerpc/htm.h
6905         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6906         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6907         (_ABORT_SYSCALL): Renumber, and clarify definition.
6908         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6909
6910 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6911
6912         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6913         after system headers to prevent MIN/MAX redefinition.  Define
6914         HAVE_ALLOCA to preserve builtin alloca usage.
6915
6916 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6917
6918         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6919         static and don't set or restore rounding.
6920         (__cos)[IN_SINCOS]: Likewise.
6921         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6922         (__sincos): Set and restore rounding mode.  Remove check for infinite
6923         or NaN input.
6924
6925         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6926
6927         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6928         as used.
6929
6930 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6931
6932         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6933
6934 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6935
6936         * config.make.in (have-glob-dat-reloc): New.
6937         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6938         target supports GLOB_DAT relocaton. AC_SUBST.
6939         * configure: Regenerated.
6940         * elf/Makefile (tests): Add tst-prelink.
6941         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6942         (tst-prelink-ENV): New.
6943         ($(objpfx)tst-prelink-conflict.out): Likewise.
6944         ($(objpfx)tst-prelink-cmp.out): Likewise.
6945         * sysdeps/x86/tst-prelink.c: Moved to ...
6946         * elf/tst-prelink.c: Here.
6947         * sysdeps/x86/tst-prelink.exp: Moved to ...
6948         * elf/tst-prelink.exp: Here.
6949         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6950         (tst-prelink-ENV): Removed.
6951         ($(objpfx)tst-prelink-conflict.out): Likewise.
6952         ($(objpfx)tst-prelink-cmp.out): Likewise.
6953         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6954
6955 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6956
6957         [BZ #14551]
6958         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6959         (__mpn_construct_long_double): If high part overflows to infinity,
6960         set errno and recompute overflowed result of the correct sign.
6961         * sysdeps/ieee754/ldbl-128ibm/Makefile
6962         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6963         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6964         $(libm).
6965         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6966
6967 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6968
6969         [BZ #15479]
6970         [BZ #19238]
6971         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6972         floating-point state after first operation on input.  Restore full
6973         state rather than just rounding mode.
6974         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6975         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6976         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6977
6978         [BZ #19235]
6979         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6980         add 0.5 to integer arguments.
6981         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6982         Likewise.
6983         (.LC2): New object.
6984
6985 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6986
6987         * scripts/pylintrc (reports): Set to no.
6988
6989 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6990
6991         * elf/dl-load.c (open_verify): Take new argument FD.
6992         Skip __open call if passed FD is not -1.
6993         (_dl_map_object, open_path): Update callers.
6994         * elf/dl-sysdep-open.h: New file.
6995         * elf/dl-load.c: Include it.
6996         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6997         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6998         * sysdeps/nacl/dl-sysdep-open.h: New file.
6999         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7000         from libc to rtld.
7001
7002 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7003
7004         [BZ #19228]
7005         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7006         and restore full floating-point state.
7007         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7008         Likewise.
7009         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7010         Likewise.
7011         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7012         Likewise.
7013         * math/test-nearbyint-except-2.c: New file.
7014         * math/Makefile (tests): Add test-nearbyint-except-2.
7015
7016 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7017
7018         [BZ #19178]
7019         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7020         (tst-prelink-ENV): New.
7021         ($(objpfx)tst-prelink-conflict.out): Likewise.
7022         ($(objpfx)tst-prelink-cmp.out): Likewise.
7023         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7024         * sysdeps/x86/tst-prelink.c: New file.
7025         * sysdeps/x86/tst-prelink.exp: Likewise.
7026
7027 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7028
7029         * math/auto-libm-test-in: Add another test of pow.
7030         * math/auto-libm-test-out: Regenerated.
7031         * math/libm-test.inc (pow_test_data): Add another test.
7032
7033 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7034
7035         [BZ #19219]
7036         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7037         weak_alias to nearbyintl.
7038
7039 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7040
7041         * sysdeps/aarch64/bits/string.h: New file.
7042         (_STRING_ARCH_unaligned): Define.
7043
7044 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7045
7046         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7047         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7048         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7049         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7051
7052 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7053
7054         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7055         for original name of the DSO.  Add it to the name list of the DSO
7056         if it is actually given.
7057         (_dl_map_object): Keep track of whether an audit module rewrote
7058         the file name.  If yes, pass the original name to
7059         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7060         debugging is enabled, log the change of the file name.
7061         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7062         _dl_map_object_from_fd.
7063         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7064         * elf/tst-audit11.c: New file
7065         * elf/tst-auditmod11.c: New file.
7066         * elf/tst-audit11mod1.c: New file.
7067         * elf/tst-audit11mod2.c: New file.
7068         * elf/tst-audit11mod2.map: New file.
7069         * elf/tst-audit12.c: New file
7070         * elf/tst-auditmod12.c: New file.
7071         * elf/tst-audit12mod1.c: New file.
7072         * elf/tst-audit12mod2.c: New file.
7073         * elf/tst-audit12mod2.map: New file.
7074         * elf/tst-audit12mod3.c: New file.
7075
7076 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7077
7078         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7079         Don't create weak aliases,
7080         because versioned symbols are created later.
7081         * sysdeps/s390/s390-32/setjmp.S
7082         (setjmp, _setjmp): Remove weak and rename to an unique name
7083         in SHARED case due to existing versioned symbols.
7084         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7085         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7086         (getcontext): Create weak alias only in non SHARED case.
7087         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7088
7089 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7090
7091         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7092         (__ASSUME_*_SYSCALL) Define new macros.
7093         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7094         Remove socketcall syscalls.
7095         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7096         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7097         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7098         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7099         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7100         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7101
7102 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7103
7104         [BZ #12926]
7105         Terminate process on invalid netlink response.
7106         * sysdeps/unix/sysv/linux/netlinkaccess.h
7107         (__netlink_assert_response): Declare.
7108         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7109         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7110         (sysdep_routines): Add netlink_assert_response.
7111         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7112         __netlink_assert_response.
7113         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7114         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7115         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7116         __netlink_assert_response.
7117
7118 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7119
7120         [BZ #19178]
7121         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7122         (RTYPE_CLASS_PLT): Likewise.
7123         (RTYPE_CLASS_COPY): Likewise.
7124         (RTYPE_CLASS_TLS): Likewise.
7125         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7126         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7127         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7128         DL_DEBUG_PRELINK.
7129
7130 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7131
7132         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7133         calls with argument -0.5.
7134         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7135
7136         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7137         (libc_cv_z_nodlopen): Likewise.
7138         (libc_cv_z_initfirst): Likewise.
7139         * configure: Regenerated.
7140
7141 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7142
7143         Simplify abilist format to be line-based.
7144         * scripts/abilist.awk: Collect descriptors in the descs variable.
7145         (emit): Write descs variable and sort it
7146         externally, with sort.
7147         * sysdeps/**/*.abilist: Convert to new format.
7148
7149 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7150
7151         [BZ #11460]
7152         * io/Makefile (routines): Add fts64.
7153         (tests): Add tst-fts and tst-fts-lfs.
7154         (CFLAGS-fts64.c): New.
7155         * io/Versions (GLIBC_2.23): New.
7156         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7157         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7158         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7159         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7160         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7161         (FTSENT64): Likewise.
7162         (fts64_children): Likewise.
7163         (fts64_close): Likewise.
7164         (fts64_open): Likewise.
7165         (fts64_read): Likewise.
7166         (fts64_set): Likewise.
7167         * io/fts64.c: New file.
7168         * io/tst-fts.c: New test.
7169         * io/tst-fts-lfs.c: Likewise.
7170         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7171         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7172         fts64_set.
7173         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7174         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7175         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7176         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7177         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7178         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7179         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7180         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7181         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7182         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7183         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7184         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7185         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7187         Likewise.
7188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7189         Likewise.
7190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7192         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7193         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7194         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7195         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7196         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7197         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7198         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7199         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7200         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7201         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7202         * sysdeps/wordsize-64/fts.c: New file.
7203         * sysdeps/wordsize-64/fts64.c: Likewise.
7204         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7205         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7206         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7207         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7208
7209 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7210
7211         * math/libm-test.inc (NON_FINITE): New macro.
7212         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7213         * math/gen-libm-test.pl (show_exceptions): Add argument
7214         $non_finite.
7215         (parse_args): Update call to show_exceptions.
7216         * math/test-math-finite.h: New file.
7217         * math/test-math-no-finite.h: Likewise.
7218         * math/test-double-finite.c: Likewise.
7219         * math/test-float-finite.c: Likewise.
7220         * math/test-ldouble-finite.c: Likewise.
7221         * math/test-double.c: Include "test-math-no-finite.h".
7222         * math/test-float.c: Include "test-math-no-finite.h".
7223         * math/test-ldouble.c: Include "test-math-no-finite.h".
7224         * math/test-math-inline.h (TEST_FINITE): New macro.
7225         * math/test-math-vector.h (TEST_FINITE): Likewise.
7226         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7227         (libm-tests): Add test-float-finite and test-double-finite.
7228         ($(objpfx)test-float-finite.o): New dependency on
7229         $(objpfx)libm-test.stmp.
7230         ($(objpfx)test-double-finite.o): Likewise.
7231         ($(objpfx)test-ldouble-finite.o): Likewise.
7232         (libm-test-no-inline-cflags): New variable.
7233         (libm-test-finite-cflags): Likewise.
7234         (CFLAGS-test-float-finite.c): Likewise.
7235         (CFLAGS-test-double-finite.c): Likewise.
7236         (CFLAGS-test-ldouble-finite.c): Likewise.
7237         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7238         (CFLAGS-test-double.c): Likewise.
7239         (CFLAGS-test-ldouble.c): Likewise.
7240
7241 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7242
7243         * io/fcntl.c (__fcntl): Add ... to prototype.
7244         * misc/ioctl.c (__ioctl): Likewise.
7245         * misc/syscall.c (syscall): Likewise.
7246
7247 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7248
7249         * scripts/list-fixed-bugs.py: New file.
7250
7251         [BZ #19213]
7252         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7253         returned for argument 1.
7254         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7255         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7256         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7257         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7258         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7259         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7260
7261         [BZ #19211]
7262         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7263         __USE_XOPEN], not if [!__USE_ISOC99].
7264         (lgammaf): Likewise.
7265         (lgammal): Likewise.
7266         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7267         (gammaf): Likewise.
7268         (gammal): Likewise.
7269         * math/test-signgam-finite-c11.c: New file.
7270         * math/test-signgam-finite-c99.c: Likewise.
7271         * math/test-signgam-finite.c: Likewise.
7272         * math/Makefile (tests): Add test-signgam-finite,
7273         test-signgam-finite-c99 and test-signgam-finite-c11.
7274         (CFLAGS-test-signgam-finite.c): New variable.
7275         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7276         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7277
7278         [BZ #19212]
7279         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7280         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7281         500].
7282         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7283         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7284         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7285         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7286         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7287         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7288         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7289         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7290         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7291         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7292
7293         [BZ #19209]
7294         * math/bits/math-finite.h (ldexp): Remove declaration.
7295         (ldexpf): Likewise.
7296         (ldexpl): Likewise.
7297
7298         [BZ #19205]
7299         * math/bits/math-finite.h (acosf): Condition declaration on
7300         [__USE_ISOC99].
7301         (acosl): Likewise.
7302         (acoshf): Likewise.
7303         (acoshl): Likewise.
7304         (asinf): Likewise.
7305         (asinl): Likewise.
7306         (atan2f): Likewise.
7307         (atan2l): Likewise.
7308         (atanhf): Likewise.
7309         (atanhl): Likewise.
7310         (coshf): Likewise.
7311         (coshl): Likewise.
7312         (expf): Likewise.
7313         (expl): Likewise.
7314         (fmodf): Likewise.
7315         (fmodl): Likewise.
7316         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7317         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7318         (j0l): Likewise.
7319         (y0f): Likewise.
7320         (y0l): Likewise.
7321         (j1f): Likewise.
7322         (j1l): Likewise.
7323         (y1f): Likewise.
7324         (y1l): Likewise.
7325         (jnf): Likewise.
7326         (jnl): Likewise.
7327         (ynf): Likewise.
7328         (ynl): Likewise.
7329         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7330         (lgammal_r): Likewise.
7331         (__lgamma_r_finite): New declaration.
7332         (__lgammaf_r_finite): Likewise.
7333         (__lgammal_r_finite): Likewise.
7334         (lgamma): Use __lgamma_r_finite.
7335         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7336         __lgammaf_r_finite.
7337         (lgammal): Condition definition on [__USE_ISOC99].  Use
7338         __lgammal_r_finite.
7339         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7340         __lgamma_r_finite.
7341         (gammaf): Condition definition on [__USE_ISOC99].  Use
7342         __lgammaf_r_finite.
7343         (gammal): Condition definition on [__USE_ISOC99].  Use
7344         __lgammal_r_finite.
7345         (logf): Condition declaration on [__USE_ISOC99].
7346         (logl): Likewise.
7347         (log10f): Likewise.
7348         (log10l): Likewise.
7349         (ldexpf): Likewise.
7350         (ldexpl): Likewise.
7351         (powf): Likewise.
7352         (powl): Likewise.
7353         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7354         __USE_ISOC99].
7355         (remainderf): Condition declaration on [__USE_ISOC99].
7356         (remainderl): Likewise.
7357         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7358         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7359         (scalbl): Likewise.
7360         (sinhf): Condition declaration on [__USE_ISOC99].
7361         (sinhl): Likewise.
7362         (sqrtf): Likewise.
7363         (sqrtl): Likewise.
7364
7365 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7366
7367         * sysdeps/arm/atomic-machine.h
7368         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7369         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7370         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7371         Remove conditional code.
7372         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7373         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7374         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7375         Change conditional to [__ASSEMBLER__].
7376         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7377         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7378         [!__ASSEMBLER__].
7379         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7380         code.
7381         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7382         conditional macro definitions.
7383         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7384         (__arch_compare_and_exchange_val_16_acq): Likewise.
7385         (__arch_compare_and_exchange_val_32_acq): Likewise.
7386         (atomic_exchange_and_add): Likewise.
7387         (atomic_add): Likewise.
7388         (atomic_add_negative): Likewise.
7389         (atomic_add_zero): Likewise.
7390         (atomic_bit_set): Likewise.
7391         (atomic_bit_test_set): Likewise.
7392         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7393         code unconditional.
7394         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7395
7396         * math/test-math-errno.h: New file.
7397         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7398         empty.
7399         (TEST_ERRNO): New macro.
7400         (TEST_EXCEPTIONS): Likewise.
7401         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7402         (TEST_EXCEPTIONS): Likewise.
7403         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7404         * math/test-double.c: Include "test-math-errno.h".
7405         * math/test-float.c: Likewise.
7406         * math/test-ldouble.c: Likewise.
7407         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7408         code unconditional.
7409         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7410         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7411         unconditional.
7412         (test_errno): Only run code if TEST_ERRNO.
7413         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7414
7415 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7416
7417         * nptl/tst-once5.cc: Remove attribution.
7418
7419 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7420
7421         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7422         sqrt, tan, tanh, y0, y1 and yn.
7423         * math/auto-libm-test-out: Regenerated.
7424         * math/libm-test.inc (scalb_test_data): Add more tests.
7425         (scalbn_test_data): Likewise.
7426         (scalbln_test_data): Likewise.
7427         (signbit_test_data): Likewise.
7428         (sin_test_data): Likewise.
7429         (sincos_test_data): Likewise.
7430         (sinh_test_data): Likewise.
7431         (sqrt_test_data): Likewise.
7432         (tan_test_data): Likewise.
7433         (tanh_test_data): Likewise.
7434         (tgamma_test_data): Likewise.
7435         (y0_test_data): Likewise.
7436         (y1_test_data): Likewise.
7437         (yn_test_data): Likewise.
7438         (significand_test_data): Likewise.
7439         * sysdeps/i386/fpu/libm-test-ulps: Update.
7440
7441 2015-11-03  David Kastrup  <dak@gnu.org>
7442
7443         [BZ #18604]
7444         * assert/assert.h (assert): Don't macro-expand failed assertion
7445         expression in error message.
7446         * malloc/malloc.c (assert): Likewise.
7447
7448 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7449
7450         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7451         test.
7452         * configure: Regenerated.
7453
7454 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7455
7456         * math/libm-test.inc (modf_test_data): Add more tests.
7457         (nearbyint_test_data): Likewise.
7458         (nextafter_test_data): Likewise.
7459         (nexttoward_test_data): Likewise.
7460         (pow_test_data): Likewise.
7461         (remainder_test_data): Likewise.
7462         (remquo_test_data): Likewise.
7463         (rint_test_data): Likewise.
7464
7465         [BZ #19201]
7466         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7467         Check for zero remainder in case of large exponents and ensure
7468         correct sign of result in that case.
7469         * math/libm-test.inc (remainder_test_data): Add more tests.
7470
7471         [BZ #6799]
7472         * math/s_nextafter.c: Include <errno.h>.
7473         (__nextafter): Set errno on overflow and underflow.
7474         * math/s_nexttowardf.c: Include <errno.h>.
7475         (__nexttowardf): Set errno on overflow and underflow.
7476         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7477         (__nextafterl): Set errno on overflow and underflow.
7478         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7479         (__nexttoward): Set errno on overflow and underflow.
7480         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7481         (__nexttowardf): Set errno on overflow and underflow.
7482         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7483         (__nextafterf): Set errno on overflow and underflow.
7484         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7485         (__nextafterl): Set errno on overflow and underflow.
7486         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7487         (__nexttoward): Set errno on overflow and underflow.
7488         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7489         (__nexttowardf): Set errno on overflow and underflow.
7490         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7491         (__nextafterl): Set errno on overflow and underflow.
7492         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7493         (__nexttoward): Set errno on overflow and underflow.
7494         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7495         (__nexttowardf): Set errno on overflow and underflow.
7496         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7497         (__nexttoward): Set errno on overflow and underflow.
7498         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7499         (__nexttowardf): Set errno on overflow and underflow.
7500         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7501         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7502         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7503         (__nextafterl): Set errno on overflow and underflow.
7504         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7505         setting to be missing on overflow.  Add more tests.
7506         (nexttoward_test_data): Likewise.
7507
7508         * configure.ac (libc_cv_initfini_array): Remove configure test.
7509         * configure: Regenerated.
7510
7511 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7512
7513         [BZ #19189]
7514         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7515         non-finite argument handle arguments with negative sign.
7516
7517         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7518         result from infinite argument.
7519         (j1_test_data): Likewise.
7520         (jn_test_data): Likewise.
7521         (y0_test_data): Likewise.
7522         (y1_test_data): Likewise.
7523         (yn_test_data): Likewise.
7524
7525         [BZ #16171]
7526         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7527         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7528         * math/w_remainderf.c (dremf): Define as weak alias of
7529         __remainderf.
7530         * math/w_remainderl.c (dreml): Define as weak alias of
7531         __remainderl.
7532         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7533         __remainder.
7534         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7535         __remainderf.
7536         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7537         __remainderl.
7538         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7539         weak alias of remainderl.
7540         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7541         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7542         alias of __remainder.
7543         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7544         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7545         strong alias of __remainderl.
7546         (dreml): Use long_double_symbol.
7547         * math/Makefile (libm-calls): Remove w_drem.
7548         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7549         (CFLAGS-nldbl-drem.c): Remove variable.
7550         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7551         * math/w_drem.c: Remove file.
7552         * math/w_dremf.c: Likewise.
7553         * math/w_dreml.c: Likewise.
7554         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7555         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7556         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7557
7558         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7559         * sysdeps/i386/configure: Regenerated.
7560         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7561         * sysdeps/x86_64/configure: Regenerated.
7562
7563         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7564         test.
7565         (libc_cv_visibility_attribute): Likewise.
7566         (libc_cv_protected_data): Test unconditionally.
7567         (libc_cv_broken_visibility_attribute): Remove configure test.
7568         (libc_cv_have_sdata_section): Test unconditionally.
7569         * configure: Regenerated.
7570
7571         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7572         * include/scratch_buffer.h: Include <stddef.h> instead of
7573         <libc-internal.h>.
7574         (struct scratch_buffer): Use max_align_t instead of
7575         libc_max_align_t.
7576
7577 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7578
7579         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7580         instead of extend_alloca.  Change control flow to avoid a goto.
7581         Remove assert which is trivially always true.
7582
7583 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7584
7585         [BZ #16068]
7586         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7587         (FE_ALL_EXCEPT_X86): New macro.
7588         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7589         FE_ALL_EXCEPT.  Ensure precision control is included in
7590         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7591         handle "denormal operand exception" and clear FZ and DAZ bits.
7592         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7593         (FE_ALL_EXCEPT_X86): New macro.
7594         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7595         FE_ALL_EXCEPT.  Ensure precision control is included in
7596         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7597         handle "denormal operand exception" and clear FZ and DAZ bits.
7598         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7599         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7600         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7601         test-fenv-x87 and test-fenv-sse-2.
7602         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7603
7604         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7605         * math/test-double.h (BUILD_COMPLEX): New macro.
7606         * math/test-float.h (BUILD_COMPLEX): Likewise.
7607         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7608
7609         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7610         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7611         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7612         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7613         instead of DBL_DENORM_MIN in comment.
7614         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7615         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7616         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7617         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7618         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7619         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7620
7621 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7622
7623         [BZ# 19048]
7624         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7625         attached_threads member.
7626         (main_arena): Initialize attached_threads.
7627         * malloc/arena.c (list_lock): Update comment.
7628         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7629         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7630         (deattach_arena): New function.
7631         (_int_new_arena): Initialize arena reference count and deattach
7632         replaced arena.
7633         (get_free_list, reused_arena): Update reference count and deattach
7634         replaced arena.
7635         (arena_thread_freeres): Update arena reference count and only put
7636         unreferenced arenas on the free list.
7637
7638 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7639
7640         [BZ #19181]
7641         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7642         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7643         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7644         * math/test-fenv-clear-main.c: New file.
7645         * math/test-fenv-clear.c: Likewise.
7646         * math/Makefile (tests): Add test-fenv-clear.
7647         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7648         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7649         test-fenv-clear-sse.
7650         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7651
7652         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7653         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7654         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7655
7656 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7657
7658         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7659         static libc.
7660
7661 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7662
7663         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7664         test.
7665         * sysdeps/i386/configure: Regenerated.
7666         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7667         test.
7668         * sysdeps/x86_64/configure: Regenerated.
7669         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7670         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7671         memset-avx2 unconditionally instead of conditionally on
7672         [$(config-cflags-avx2) = yes].
7673         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7674         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7675         unconditional.
7676         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7677         * sysdeps/x86_64/multiarch/memset_chk.S
7678         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7679         to [IS_IN (libc) && SHARED].
7680
7681 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7682
7683         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7684         configure test.
7685         * sysdeps/arm/configure: Regenerated.
7686         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7687         Define variable if not already defined.
7688
7689         [BZ #17404]
7690         * sysdeps/mips/atomic-machine.h
7691         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7692         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7693         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7694
7695         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7696         unconditional.
7697         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7698         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7699         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7700         unconditional.
7701         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7702         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7703         unconditional.
7704         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7705         * stdlib/setenv.c
7706         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7707         code unconditional.
7708         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7709         Remove conditional code.
7710         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7711         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7712         unconditional.
7713         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7714         code.
7715         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7716         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7717         unconditional.
7718         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7719         code.
7720         * sysdeps/ieee754/ldbl-128/k_tanl.c
7721         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7722         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7723         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7724         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7725         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7726         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7727         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7728         unconditional.
7729         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7730         code.
7731         * sysdeps/ieee754/ldbl-96/k_tanl.c
7732         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7733         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7734
7735         * nptl/tst-initializers1-c11.c: New file.
7736         * nptl/tst-initializers1-gnu11.c: Likewise.
7737         * nptl/Makefile (tests): Add these new tests.
7738         (CFLAGS-tst-initializers1-c11.c): New variable.
7739         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7740
7741         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7742         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7743         instead of -std=gnu99.
7744         * configure.ac (systemtap): Test with -std=gnu11 instead of
7745         -std=gnu99.
7746         * configure: Regenerated.
7747         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7748         in compilation command in comment.
7749
7750         * sysdeps/nptl/configure.ac: Remove file.
7751         * sysdeps/nptl/configure: Remove generated file.
7752         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7753         * configure: Regenerated.
7754         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7755         * config.make.in (have-forced-unwind): Remove variable.
7756         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7757         unconditional.
7758         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7759         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7760         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7761         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7762         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7763         unconditional.
7764
7765 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7766
7767         [BZ #19174]
7768         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7769         .skip_lock_out_of_tbegin_retries.
7770         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7771         (__lll_lock_elision): Likewise, and respect a value of
7772         try_tbegin <= 0.
7773
7774 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7775
7776         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7777         statement.
7778
7779 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7780
7781         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7782         variable.
7783         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7784         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7785
7786         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7787         of -std=c1x -D_ISOC11_SOURCE.
7788
7789         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7790         * configure: Regenerated.
7791         * manual/install.texi (Tools for Compilation): Document
7792         requirement for GCC 4.7 or later.
7793         * INSTALL: Regenerated.
7794
7795 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7796
7797         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7798         on CNT to a conditional jump to 'puntdata'.
7799
7800 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7801
7802         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7803         (libc_cv_gcc_tls_model_attr): Likewise.
7804         * configure: Regenerated.
7805
7806         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7807         * configure: Regenerated.
7808         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7809
7810 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7811
7812         * configure.ac (old_glibc_headers): Remove configure test.
7813         * configure: Regenerated.
7814         * config.make.in (old-glibc-headers): Remove variable.
7815         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7816         (install): Remove dependency on remove-old-headers.
7817         (headers2_0): Remove variable.
7818         (remove-old-headers): Remove rule.
7819
7820         * configure.ac (libc_cv_dot_text): Remove configure test.
7821         (libc_cv_asm_set_directive): Use .text instead of
7822         ${libc_cv_dot_text} in configure test.
7823         * configure: Regenerated.
7824
7825 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7826
7827         [BZ #19168]
7828         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7829
7830 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7831
7832         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7833         not support static linking.
7834         * configure: Regenerate.
7835
7836 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7837
7838         * math/libm-test.inc (check_float_internal): Do not special-case
7839         errors up to 0.5 ulp.
7840
7841         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7842         log2.
7843         * math/auto-libm-test-out: Regenerated.
7844         * math/libm-test.inc (MAX_EXP): New macro.
7845         (ilogb_test_data): Add more tests.
7846         (isfinite_test_data): Likewise.
7847         (isgreater_test_data): Likewise.
7848         (isgreaterequal_test_data): Likewise.
7849         (isinf_test_data): Likewise.
7850         (isless_test_data): Likewise.
7851         (islessequal_test_data): Likewise.
7852         (islessgreater_test_data): Likewise.
7853         (isnan_test_data): Likewise.
7854         (isnormal_test_data): Likewise.
7855         (issignaling_test_data): Likewise.
7856         (isunordered_test_data): Likewise.
7857         (j0_test_data): Likewise.
7858         (j1_test_data): Likewise.
7859         (jn_test_data): Likewise.
7860         (lgamma_test_data): Likewise.
7861         (log_test_data): Likewise.
7862         (log10_test_data): Likewise.
7863         (log1p_test_data): Likewise.
7864         (log2_test_data): Likewise.
7865         (logb_test_data): Likewise.
7866         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7867
7868         [BZ #18611]
7869         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7870         avoid excess range and precision on underflow.
7871         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7872         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7873         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7874         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7875         underflow.
7876         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7877         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7878         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7879         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7880         * math/auto-libm-test-in: Do not allow missing errno setting for
7881         tests of j1 and jn.
7882         * math/auto-libm-test-out: Regenerated.
7883
7884 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7885
7886         [BZ #15491]
7887         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7888         floating-point environment instead of clearing all exceptions.
7889         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7890         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7891         merging in "invalid" exceptions from frndint.
7892         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7893         * math/test-nearbyint-except.c: New file.
7894         * math/Makefile (tests): Add test-nearbyint-except.
7895
7896 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7897
7898         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7899
7900         * sysdeps/tile/libm-test-ulps: Regenerated.
7901
7902 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7903
7904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7905         (__NR_sync_file_range2): Assume it is always defined.
7906         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7907         (__NR_sync_file_range): Assume it is always defined.
7908
7909 2015-10-22  Andreas Schwab  <schwab@suse.de>
7910
7911         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7912         INTERNAL_SYSCALL_ERRNO.
7913         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7914         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7915         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7916         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7917         Likewise.
7918         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7919
7920 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7921
7922         * io/tst-fcntl.c (fd): New static variable.
7923         (do_prepare): Open temporary file here....
7924         (do_test): ...not here.
7925
7926         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7927
7928 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7929
7930         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7931         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7932         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7933         Moved before "#ifdef __ASSEMBLER__".
7934
7935 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7936
7937         [BZ #19156]
7938         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7939         arguments very close to 0.
7940
7941 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7942
7943         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7944         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7945
7946 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7947
7948         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7949         New.  Defined for GCC 5 and above when not compiling for
7950         profiling.
7951         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7952
7953         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7954         Renamed to ...
7955         (CFLAGS-epoll_pwait.o): This.
7956         (CFLAGS-mmap.c): Renamed to ...
7957         (CFLAGS-mmap.o): This.
7958         (CFLAGS-mmap64.c): Renamed to ...
7959         (CFLAGS-mmap64.o): This.
7960         (CFLAGS-epoll_pwait.os): New.
7961         (CFLAGS-mmap.os): Likewise.
7962         (CFLAGS-mmap64.os): Likewise.
7963         (CFLAGS-semtimedop.os): Likewise.
7964         (CFLAGS-semtimedop.c): Renamed to ...
7965         (CFLAGS-semtimedop.o): This.
7966
7967 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7968
7969         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7970         warning message.
7971
7972 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7973
7974         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7975         * Makefile ($(objpfx)c++-types-check.out): Filter out
7976         $(+gccwarn-c) instead of -Wstrict-prototypes.
7977
7978         * io/fts.c (fts_open): Convert to prototype-style function
7979         definition.
7980         * malloc/mcheck.c (mcheck): Likewise.
7981         (mcheck_pedantic): Likewise.
7982         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7983         internal_function.
7984         (re_search_internal): Likewise.
7985         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7986         prototype-style function definition.
7987         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7988         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7989         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7990         (xdr_utmpptr): Likewise.
7991         (xdr_utmparr): Likewise.
7992         (xdr_utmpidle): Likewise.
7993         (xdr_utmpidleptr): Likewise.
7994         (xdr_utmpidlearr): Likewise.
7995
7996         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7997         log, log10 and log2.
7998         * math/auto-libm-test-out: Regenerated.
7999         * math/libm-test.inc (fmod_test_data): Add more tests.
8000         (fpclassify_test_data): Likewise.
8001         (frexp_test_data): Likewise.
8002         (hypot_test_data): Likewise.
8003         (ilogb_test_data): Likewise.
8004
8005 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8006
8007         * debug/fortify_fail.c (__fortify_fail): Convert to
8008         prototype-style function definition.  Use internal_function.
8009         * libio/genops.c (save_for_backup): Convert to prototype-style
8010         function definition.
8011         * libio/wgenops.c (save_for_wbackup): Likewise.
8012         * login/grantpt.c (grantpt): Likewise.
8013         * login/ptsname.c (ptsname): Likewise.
8014         (__ptsname_r): Likewise.
8015         * login/unlockpt.c (unlockpt): Likewise.
8016         * mach/msgserver.c (__mach_msg_server): Likewise.
8017         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8018         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8019         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8020         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8021         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8022         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8023         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8024         Likewise.
8025         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8026         internal_function.
8027         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8028         prototype-style function definition.
8029         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8030         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8031         (__pthread_create_2_0): Likewise.
8032         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8033         * nptl/register-atfork.c (__register_atfork): Likewise.
8034         * posix/glob.c (glob): Likewise.
8035         * posix/regcomp.c (re_comp): Likewise.
8036         * posix/regexec.c (re_exec): Likewise.
8037         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8038         [!__STDC__]: Remove conditional code.
8039         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8040         [!__STDC__]: Remove conditional code.
8041         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8042         [!__STDC__]: Remove conditional code.
8043         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8044         [!__STDC__]: Remove conditional code.
8045         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8046         [!__STDC__]: Remove conditional code.
8047         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8048         [!__STDC__]: Remove conditional code.
8049         * stdlib/mul.c [__STDC__]: Make code unconditional.
8050         [!__STDC__]: Remove conditional code.
8051         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8052         [!__STDC__]: Remove conditional code.
8053         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8054         [!__STDC__]: Remove conditional code.
8055         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8056         function definition.
8057         (STRTOF): Likewise.
8058         * stdlib/strtod_l.c (__STRTOF): Likewise.
8059         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8060         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8061         (__strtol_l): Likewise.
8062         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8063         [!__STDC__]: Remove conditional code.
8064         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8065         definition.
8066         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8067         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8068         type.
8069         (__strcasecmp): Convert to prototype-style function definition.
8070         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8071         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8072         type.
8073         (__strncasecmp): Convert to prototype-style function definition.
8074         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8075         * sunrpc/xdr.c (xdr_union): Likewise.
8076         * sunrpc/xdr_array.c (xdr_array): Likewise.
8077         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8078         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8079         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8080         Likewise.
8081         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8082         Likewise.
8083         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8084         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8085         Likewise.
8086         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8087         (LOCALE_PARAM_PROTO): Likewise.
8088         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8089         argument type.
8090         (ut_argument_spec): Remove macro.
8091         (ut_argument_spec_iso): Rename to ut_argument_spec.
8092         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8093         prototype-style function definition.
8094         (memcpy_uppcase): Likewise.
8095         (__strftime_internal): Likewise.
8096         (my_strftime): Likewise.
8097         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8098         (LOCALE_PARAM_DECL): Likewise.
8099         [_LIBC] (LOCALE_PARAM): Include argument type.
8100         (__strptime_internal): Convert to prototype-style function
8101         definition.
8102         (strptime): Likewise.
8103         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8104         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8105         type.
8106         (__wcscasecmp): Convert to prototype-style function definition.
8107         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8108         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8109         type.
8110         (__wcsncasecmp): Convert to prototype-style function definition.
8111
8112         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8113         function definition.
8114         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8115         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8116         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8117         * elf/dl-minimal.c (_itoa): Likewise.
8118         * hurd/hurdmalloc.c (malloc): Likewise.
8119         (free): Likewise.
8120         (realloc): Likewise.
8121         * inet/inet6_option.c (inet6_option_space): Likewise.
8122         (inet6_option_init): Likewise.
8123         (inet6_option_append): Likewise.
8124         (inet6_option_alloc): Likewise.
8125         (inet6_option_next): Likewise.
8126         (inet6_option_find): Likewise.
8127         * io/ftw.c (FTW_NAME): Likewise.
8128         (NFTW_NAME): Likewise.
8129         (NFTW_NEW_NAME): Likewise.
8130         (NFTW_OLD_NAME): Likewise.
8131         * libio/iofwide.c (_IO_fwide): Likewise.
8132         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8133         (_IO_str_init_static): Likewise.
8134         (_IO_str_init_readonly): Likewise.
8135         (_IO_str_overflow): Likewise.
8136         (_IO_str_underflow): Likewise.
8137         (_IO_str_count): Likewise.
8138         (_IO_str_seekoff): Likewise.
8139         (_IO_str_pbackfail): Likewise.
8140         (_IO_str_finish): Likewise.
8141         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8142         (_IO_wstr_overflow): Likewise.
8143         (_IO_wstr_underflow): Likewise.
8144         (_IO_wstr_count): Likewise.
8145         (_IO_wstr_seekoff): Likewise.
8146         (_IO_wstr_pbackfail): Likewise.
8147         (_IO_wstr_finish): Likewise.
8148         * locale/programs/localedef.c (normalize_codeset): Likewise.
8149         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8150         (add_locales_to_archive): Likewise.
8151         (delete_locales_from_archive): Likewise.
8152         * malloc/malloc.c (__libc_mallinfo): Likewise.
8153         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8154         * misc/tsearch.c (__tfind): Likewise.
8155         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8156         * nptl/pthread_attr_getdetachstate.c
8157         (__pthread_attr_getdetachstate): Likewise.
8158         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8159         Likewise.
8160         * nptl/pthread_attr_getinheritsched.c
8161         (__pthread_attr_getinheritsched): Likewise.
8162         * nptl/pthread_attr_getschedparam.c
8163         (__pthread_attr_getschedparam): Likewise.
8164         * nptl/pthread_attr_getschedpolicy.c
8165         (__pthread_attr_getschedpolicy): Likewise.
8166         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8167         Likewise.
8168         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8169         Likewise.
8170         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8171         Likewise.
8172         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8173         Likewise.
8174         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8175         (__pthread_attr_init_2_0): Likewise.
8176         * nptl/pthread_attr_setdetachstate.c
8177         (__pthread_attr_setdetachstate): Likewise.
8178         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8179         Likewise.
8180         * nptl/pthread_attr_setinheritsched.c
8181         (__pthread_attr_setinheritsched): Likewise.
8182         * nptl/pthread_attr_setschedparam.c
8183         (__pthread_attr_setschedparam): Likewise.
8184         * nptl/pthread_attr_setschedpolicy.c
8185         (__pthread_attr_setschedpolicy): Likewise.
8186         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8187         Likewise.
8188         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8189         Likewise.
8190         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8191         Likewise.
8192         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8193         Likewise.
8194         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8195         Likewise.
8196         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8197         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8198         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8199         use internal_function.
8200         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8201         prototype-style function definition.
8202         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8203         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8204         internal_function.
8205         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8206         Convert to prototype-style function definition.
8207         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8208         Likewise.
8209         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8210         Likewise.
8211         (__pthread_mutex_unlock): Likewise.
8212         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8213         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8214         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8215         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8216         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8217         * nss/makedb.c (process_input): Likewise.
8218         * posix/fnmatch.c (__strchrnul): Likewise.
8219         (__wcschrnul): Likewise.
8220         (fnmatch): Likewise.
8221         * posix/fnmatch_loop.c (FCT): Likewise.
8222         * posix/glob.c (globfree): Likewise.
8223         (__glob_pattern_type): Likewise.
8224         (__glob_pattern_p): Likewise.
8225         * posix/regcomp.c (re_compile_pattern): Likewise.
8226         (re_set_syntax): Likewise.
8227         (re_compile_fastmap): Likewise.
8228         (regcomp): Likewise.
8229         (regerror): Likewise.
8230         (regfree): Likewise.
8231         * posix/regexec.c (regexec): Likewise.
8232         (re_match): Likewise.
8233         (re_search): Likewise.
8234         (re_match_2): Likewise.
8235         (re_search_2): Likewise.
8236         (re_search_stub): Likewise.  Use internal_function
8237         (re_copy_regs): Likewise.
8238         (re_set_registers): Convert to prototype-style function
8239         definition.
8240         (prune_impossible_nodes): Likewise.  Use internal_function.
8241         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8242         prototype-style function definition.
8243         (inet_net_pton_ipv4): Likewise.
8244         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8245         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8246         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8247         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8248         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8249         Make variadic.
8250         * time/strptime_l.c (localtime_r): Convert to prototype-style
8251         function definition.
8252         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8253         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8254         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8255         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8256
8257         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8258         definition.
8259         (_ufc_doit_r): Likewise.
8260         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8261         (_ufc_output_conversion_r): Likewise.
8262         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8263         * inet/rcmd.c (rcmd_af): Likewise.
8264         (rcmd): Likewise.
8265         (ruserok_af): Likewise.
8266         (ruserok): Likewise.
8267         (ruserok2_sa): Likewise.
8268         (ruserok_sa): Likewise.
8269         (iruserok_af): Likewise.
8270         (iruserok): Likewise.
8271         (__ivaliduser): Likewise.
8272         (__validuser2_sa): Likewise.
8273         * inet/rexec.c (rexec_af): Likewise.
8274         (rexec): Likewise.
8275         * inet/ruserpass.c (ruserpass): Likewise.
8276         * locale/programs/xmalloc.c (xcalloc): Likewise.
8277         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8278         * math/w_drem.c (__drem): Likewise.
8279         * math/w_dremf.c (__dremf): Likewise.
8280         * math/w_dreml.c (__dreml): Likewise.
8281         * misc/daemon.c (daemon): Likewise.
8282         * resolv/res_debug.c (p_fqnname): Likewise.
8283         * stdlib/div.c (div): Likewise.
8284         * string/memcmp.c (memcmp_bytes): Likewise.
8285         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8286         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8287
8288         * crypt/cert.c (main): Convert to prototype-style function
8289         definition.
8290         * io/pipe.c (__pipe): Likewise.
8291         * io/pipe2.c (__pipe2): Likewise.
8292         * misc/futimesat.c (futimesat): Likewise.
8293         * misc/utimes.c (__utimes): Likewise.
8294         * posix/execve.c (__execve): Likewise.
8295         * posix/execvp.c (execvp): Likewise.
8296         * posix/execvpe.c (__execvpe): Likewise.
8297         * posix/fexecve.c (fexecve): Likewise.
8298         * socket/socketpair.c (socketpair): Likewise.
8299         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8300         * stdlib/erand48.c (erand48): Likewise.
8301         * stdlib/erand48_r.c (__erand48_r): Likewise.
8302         * stdlib/jrand48.c (jrand48): Likewise.
8303         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8304         * stdlib/lcong48.c (lcong48): Likewise.
8305         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8306         * stdlib/nrand48.c (nrand48): Likewise.
8307         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8308         * stdlib/seed48.c (seed48): Likewise.
8309         * stdlib/seed48_r.c (__seed48_r): Likewise.
8310         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8311         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8312         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8313
8314 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8315
8316         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8317         * configure: Regenerated.
8318         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8319         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8320         unconditional.
8321         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8322         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8323         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8324         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8325         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8326         unconditional.
8327         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8328
8329         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8330         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8331
8332         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8333         function definition.
8334         * crypt/crypt_util.c (__encrypt_r): Likewise.
8335         * libio/genops.c (_IO_no_init): Likewise.
8336         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8337         (_IO_old_fopencookie): Likewise.
8338         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8339         * libio/iogetline.c (_IO_getline): Likewise.
8340         (_IO_getline_info): Likewise.
8341         * libio/iogetwline.c (_IO_getwline): Likewise.
8342         (_IO_getwline_info): Likewise.
8343         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8344         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8345         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8346         (find_entry): Likewise.
8347         (iterate_table): Likewise.
8348         (lookup): Likewise.
8349         * login/forkpty.c (forkpty): Likewise.
8350         * misc/hsearch_r.c (__hsearch_r): Likewise.
8351         * misc/select.c (__select): Likewise.
8352         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8353         Likewise.
8354         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8355         Likewise.
8356         * nptl/old_pthread_cond_timedwait.c
8357         (__pthread_cond_timedwait_2_0): Likewise.
8358         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8359         * nptl/pthread_barrierattr_getpshared.c
8360         (pthread_barrierattr_getpshared): Likewise.
8361         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8362         Likewise.
8363         * nptl/pthread_mutex_setprioceiling.c
8364         (pthread_mutex_setprioceiling): Likewise.
8365         * nptl/pthread_mutexattr_getprioceiling.c
8366         (pthread_mutexattr_getprioceiling): Likewise.
8367         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8368         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8369         Likewise.
8370         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8371         Likewise.
8372         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8373         Likewise.
8374         * socket/recvfrom.c (__recvfrom): Likewise.
8375         * socket/sendto.c (__sendto): Likewise.
8376         * socket/setsockopt.c (__setsockopt): Likewise.
8377         * stdio-common/_itoa.c (_itoa): Likewise.
8378         * stdio-common/_itowa.c (_itowa): Likewise.
8379         * stdio-common/reg-printf.c (__register_printf_specifier):
8380         Likewise.
8381         (__register_printf_function): Likewise.
8382         * stdio-common/tempname.c (__path_search): Likewise.
8383         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8384         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8385         * stdlib/random_r.c (__initstate_r): Likewise.
8386         * stdlib/setenv.c (__add_to_environ): Likewise.
8387         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8388         * streams/getpmsg.c (getpmsg): Likewise.
8389         * streams/putmsg.c (putmsg): Likewise.
8390         * streams/putpmsg.c (putpmsg): Likewise.
8391         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8392         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8393         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8394         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8395         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8396         * sunrpc/svc_udp.c (cache_get): Likewise.
8397         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8398         * sysdeps/mach/hurd/getcwd.c
8399         (__canonicalize_directory_name_internal): Likewise.
8400         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8401         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8402         * sysdeps/mach/hurd/select.c (__select): Likewise.
8403         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8404         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8405         * sysdeps/sparc/nptl/pthread_barrier_init.c
8406         (__pthread_barrier_init): Likewise.
8407         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8408         (__pthread_cond_timedwait): Likewise.
8409         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8410         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8411         Likewise.
8412         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8413         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8414         Likewise.
8415         * sysvipc/semtimedop.c (semtimedop): Likewise.
8416         * time/setitimer.c (__setitimer): Likewise.
8417         * time/strftime_l.c (emacs_strftime): Likewise.
8418
8419 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8420
8421         * config.make.in (have-ssp): Delete.
8422         (stack-protector): New variable.
8423         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8424         cache test for -fstack-protector-strong.  Export stack_protector to
8425         the best ssp flag.
8426         * configure: Regenerated.
8427         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8428         * nscd/Makefile (CFLAGS-nscd): Likewise.
8429         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8430
8431 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8432
8433         [BZ #19122]
8434         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8435         attribute_hidden.
8436
8437 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8438
8439         [BZ #18743]
8440         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8441         code to...
8442         (ELIDE_LOCK): ...here.
8443         (__get_new_count): New function with part of the code from
8444         __elide_lock that updates the value of adapt_count after a
8445         transaction abort.
8446         (__elided_trylock): Moved this code to...
8447         (ELIDE_TRYLOCK): ...here.
8448
8449 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8450
8451         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8452         * configure: Regenerate.
8453         * INSTALL: Regenerate.
8454         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8455         and tweak grammar.
8456
8457 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8458
8459         * login/programs/pt_chown.c: Include signal.h
8460         (main): Clear any signal mask from the parent process.
8461
8462 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8463
8464         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8465         * configure: Regenerated.
8466         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8467         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8468         $(gnu89-inline-CFLAGS).
8469
8470         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8471         test.
8472         (libc_cv_asm_weakext_directive): Likewise.
8473         * configure: Regenerated.
8474         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8475         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8476         * include/libc-symbols.h
8477         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8478         #error.
8479         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8480         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8481
8482         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8483         prototype-style function definition.
8484         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8485         * sysdeps/i386/ffs.c (__ffs): Likewise.
8486         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8487         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8488         Likewise.
8489         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8490         Likewise.
8491         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8492         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8493         Likewise.
8494         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8495         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8496         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8497         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8498         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8499         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8500         * sysdeps/mach/hurd/access.c (__access): Likewise.
8501         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8502         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8503         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8504         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8505         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8506         (cthread_getspecific): Likewise.
8507         (cthread_setspecific): Likewise.
8508         (__libc_getspecific): Likewise.
8509         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8510         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8511         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8512         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8513         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8514         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8515         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8516         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8517         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8518         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8519         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8520         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8521         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8522         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8523         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8524         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8525         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8526         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8527         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8528         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8529         * sysdeps/mach/hurd/link.c (__link): Likewise.
8530         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8531         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8532         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8533         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8534         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8535         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8536         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8537         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8538         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8539         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8540         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8541         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8542         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8543         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8544         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8545         * sysdeps/mach/hurd/send.c (__send): Likewise.
8546         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8547         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8548         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8549         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8550         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8551         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8552         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8553         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8554         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8555         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8556         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8557         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8558         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8559         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8560         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8561         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8562         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8563         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8564         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8565         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8566         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8567         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8568         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8569         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8570         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8571         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8572         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8573         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8574         * sysdeps/posix/alarm.c (alarm): Likewise.
8575         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8576         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8577         * sysdeps/posix/dup.c (__dup): Likewise.
8578         * sysdeps/posix/dup2.c (__dup2): Likewise.
8579         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8580         (main): Likewise.
8581         * sysdeps/posix/flock.c (__flock): Likewise.
8582         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8583         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8584         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8585         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8586         * sysdeps/posix/isatty.c (__isatty): Likewise.
8587         * sysdeps/posix/killpg.c (killpg): Likewise.
8588         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8589         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8590         * sysdeps/posix/raise.c (raise): Likewise.
8591         * sysdeps/posix/remove.c (remove): Likewise.
8592         * sysdeps/posix/rename.c (rename): Likewise.
8593         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8594         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8595         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8596         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8597         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8598         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8599         * sysdeps/posix/sigset.c (sigset): Likewise.
8600         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8601         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8602         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8603         * sysdeps/posix/time.c (time): Likewise.
8604         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8605         (ttyname): Likewise.
8606         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8607         * sysdeps/posix/utime.c (utime): Likewise.
8608         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8609         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8610         Likewise.
8611         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8612         (pthread_spin_trylock): Likewise.
8613         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8614         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8615         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8616         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8617         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8618         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8619         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8620         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8621         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8622         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8623         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8624         * sysdeps/s390/ffs.c (__ffs): Likewise.
8625         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8626         Likewise.
8627         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8628         Likewise.
8629         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8630         Likewise.
8631         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8632         (pthread_barrier_destroy): Likewise.
8633         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8634         (__pthread_barrier_wait): Likewise.
8635         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8636         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8637         (__pthread_barrier_wait): Likewise.
8638         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8639         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8640         (memcmp_not_common_alignment): Likewise.
8641         (MEMCMP): Likewise.
8642         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8643         (_wordcopy_fwd_dest_aligned): Likewise.
8644         (_wordcopy_bwd_aligned): Likewise.
8645         (_wordcopy_bwd_dest_aligned): Likewise.
8646         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8647         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8648         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8649         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8650         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8651         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8652         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8653         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8654         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8655         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8656         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8657         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8658         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8659         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8660         * sysdeps/unix/stime.c (stime): Likewise.
8661         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8662         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8663         Likewise.  Use internal_function.
8664         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8665         Convert to prototype-style function definition.
8666         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8667         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8668         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8669         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8670         Likewise.  Use internal_function.
8671         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8672         prototype-style function definition
8673         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8674         Likewise.
8675         (__getlogin_r): Likewise.
8676         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8677         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8678         (__pthread_cond_broadcast): Likewise.
8679         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8680         (__pthread_cond_destroy): Likewise.
8681         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8682         (__pthread_cond_init): Likewise.
8683         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8684         (__pthread_cond_signal): Likewise.
8685         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8686         (__pthread_cond_wait): Likewise.
8687         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8688         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8689         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8690         Likewise.
8691         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8692         Likewise.
8693         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8694         Likewise.
8695         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8696         Likewise.
8697         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8699         (__ftruncate64): Likewise.
8700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8701         (truncate64): Likewise.
8702         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8703         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8704         (pthread_getcpuclockid): Likewise.
8705         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8706         Likewise.
8707         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8708         Likewise.
8709         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8710         Likewise.
8711         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8712         Likewise.
8713         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8714         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8715         (__libc_sigaction): Likewise.
8716         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8717         Likewise.
8718         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8719         (__sigprocmask): Likewise.
8720         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8721         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8722         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8723         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8724         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8725         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8726         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8727         Likewise.
8728         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8729         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8730         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8731         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8732         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8733         Likewise.
8734         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8735         (__sigprocmask): Likewise.
8736         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8737         (cfgetispeed): Likewise.
8738         (cfsetospeed): Likewise.
8739         (cfsetispeed): Likewise.
8740         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8741         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8742         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8743         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8744         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8745         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8746         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8747         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8748         Likewise.
8749         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8750         Likewise.
8751         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8752         Likewise.
8753         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8754         Likewise.
8755         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8756
8757 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8758
8759         sunrpc: Rewrite with explicit TLS access using __thread.
8760         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8761         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8762         directly.
8763         (__rpc_thread_variables): Access thread_rpc_vars directly.
8764         Eliminate redundant assignment of the tvp variable.
8765
8766 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8767
8768         malloc: Rewrite with explicit TLS access using __thread.
8769         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8770         (tsd_setspecific, tsd_getspecific): Remove.
8771         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8772         (tsd_setspecific, tsd_getspecific): Likewise.
8773         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8774         (tsd_setspecific, tsd_getspecific): Likewise.
8775         * malloc/arena.c (thread_arena): New TLS variable.
8776         (arena_key): Remove variable.
8777         (arena_get): Use thread_arena.
8778         (arena_lookup): Remove macro.
8779         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8780         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8781         (_int_new_arena, get_free_list, reused_arena)
8782         (arena_thread_freeres): Use thread_arena.
8783         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8784         tsd_getspecific, tsd_setspecific from safety annotations.
8785         (Allocating Cleared Space): Remove arena_lookup from safety
8786         annotations.
8787
8788 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8789
8790         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8791         struct scratch_buffer instead of extend_alloca.
8792
8793 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8794
8795         * sysdeps/unix/sysv/linux/kernel-features.h
8796         (__ASSUME_SOCK_CLOEXEC): Remove.
8797         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8798         (__have_paccept): Remove unused macro.
8799         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8800         * misc/syslog.c (openlog_internal): Remove fallback code for
8801         !__ASSUME_SOCK_CLOEXEC.
8802         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8803         missing SOCK_CLOEXEC.
8804         * nscd/connections.c (have_sock_cloexec): Remove definition.
8805         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8806         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8807         !__ASSUME_SOCK_CLOEXEC.
8808         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8809         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8810         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8811         definition.
8812         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8813         code for !__ASSUME_SOCK_CLOEXEC.
8814
8815 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8816
8817         [BZ #18982]
8818         * manual/stdio.texi (Variable Arguments Output): Add portability
8819         note, explaining that vfprintf clobbers the va_list pointer.
8820
8821 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8822
8823         * math/libm-test.inc (fabs_test_data): Add more tests.
8824         (fdim_test_data): Likewise.
8825         (fma_test_data): Likewise.
8826         (fmax_test_data): Likewise.
8827         (fmin_test_data): Likewise.
8828         (fmod_test_data): Likewise.
8829
8830 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8831
8832         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8833         data.
8834
8835 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8836
8837         * math/libm-test.inc (ceil_test_data): Add more tests and more
8838         expectations for "inexact".
8839         (floor_test_data): Add more tests.
8840         (round_test_data): Likewise.
8841         (trunc_test_data): Likewise.
8842
8843         * crypt/cert.c (good_bye): Convert to prototype-style function
8844         definition.
8845         (get8): Likewise.
8846         (put8): Likewise.
8847         * crypt/crypt-entry.c (crypt): Likewise.
8848         (__fcrypt): Likewise.
8849         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8850         (_ufc_set_bits): Likewise.
8851         (_ufc_clearmem): Likewise.
8852         (__init_des_r): Likewise.
8853         (shuffle_sb): Likewise.
8854         (shuffle_sb): Likewise.
8855         (_ufc_setup_salt_r): Likewise.
8856         (_ufc_mk_keytab_r): Likewise.
8857         (_ufc_dofinalperm_r): Likewise.
8858         (encrypt): Likewise.
8859         (__setkey_r): Likewise.
8860         (setkey): Likewise.
8861         * crypt/md5.c (md5_init_ctx): Likewise.
8862         (md5_read_ctx): Likewise.
8863         (md5_finish_ctx): Likewise.
8864         (md5_stream): Likewise.
8865         (md5_buffer): Likewise.
8866         (md5_process_bytes): Likewise.
8867         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8868         (__sha256_finish_ctx): Likewise.
8869         (__sha256_process_bytes): Likewise.
8870         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8871         (__sha512_finish_ctx): Likewise.
8872         (__sha512_process_bytes): Likewise.
8873         * ctype/isctype.c (__isctype): Likewise.
8874         * debug/backtrace.c (__backtrace): Likewise.
8875         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8876         * debug/fgets_chk.c (__fgets_chk): Likewise.
8877         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8878         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8879         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8880         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8881         * debug/memset_chk.c (__memset_chk): Likewise.
8882         * debug/strcat_chk.c (__strcat_chk): Likewise.
8883         * debug/strncat_chk.c (__strncat_chk): Likewise.
8884         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8885         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8886         * dirent/dirfd.c (dirfd): Likewise.
8887         * dirent/getdents.c (__getdirentries): Likewise.
8888         * dirent/getdents64.c (getdirentries64): Likewise.
8889         * dirent/rewinddir.c (__rewinddir): Likewise.
8890         * dirent/seekdir.c (seekdir): Likewise.
8891         * dirent/telldir.c (telldir): Likewise.
8892         * elf/sln.c (makesymlinks): Likewise.
8893         (makesymlink): Likewise.
8894         * gmon/gmon.c (__moncontrol): Likewise.
8895         (__monstartup): Likewise.
8896         (write_hist): Likewise.
8897         (write_call_graph): Likewise.
8898         (write_bb_counts): Likewise.
8899         * grp/setgroups.c (setgroups): Likewise.
8900         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8901         * inet/inet_net.c (inet_network): Likewise.
8902         * inet/inet_netof.c (inet_netof): Likewise.
8903         * inet/rcmd.c (rresvport_af): Likewise.
8904         (rresvport): Likewise.
8905         * io/access.c (__access): Likewise.
8906         * io/chdir.c (__chdir): Likewise.
8907         * io/chmod.c (__chmod): Likewise.
8908         * io/chown.c (__chown): Likewise.
8909         * io/close.c (__close): Likewise.
8910         * io/creat.c (creat): Likewise.
8911         * io/creat64.c (creat64): Likewise.
8912         * io/dup.c (__dup): Likewise.
8913         * io/dup2.c (__dup2): Likewise.
8914         * io/dup3.c (__dup3): Likewise.
8915         * io/euidaccess.c (__euidaccess): Likewise.
8916         * io/faccessat.c (faccessat): Likewise.
8917         * io/fchmod.c (__fchmod): Likewise.
8918         * io/fchmodat.c (fchmodat): Likewise.
8919         * io/fchown.c (__fchown): Likewise.
8920         * io/fchownat.c (fchownat): Likewise.
8921         * io/fcntl.c (__fcntl): Likewise.
8922         * io/flock.c (__flock): Likewise.
8923         * io/fts.c (fts_load): Likewise.
8924         (fts_close): Likewise.
8925         (fts_read): Likewise.
8926         (fts_set): Likewise.
8927         (fts_children): Likewise.
8928         (fts_build): Likewise.
8929         (fts_stat): Likewise.
8930         (fts_sort): Likewise.
8931         (fts_alloc): Likewise.
8932         (fts_lfree): Likewise.
8933         (fts_palloc): Likewise.
8934         (fts_padjust): Likewise.
8935         (fts_maxarglen): Likewise.
8936         (fts_safe_changedir): Likewise.
8937         * io/getwd.c (getwd): Likewise.
8938         * io/isatty.c (__isatty): Likewise.
8939         * io/lchown.c (__lchown): Likewise.
8940         * io/link.c (__link): Likewise.
8941         * io/linkat.c (linkat): Likewise.
8942         * io/lseek.c (__libc_lseek): Likewise.
8943         * io/mkdir.c (__mkdir): Likewise.
8944         * io/mkdirat.c (mkdirat): Likewise.
8945         * io/mkfifo.c (mkfifo): Likewise.
8946         * io/mkfifoat.c (mkfifoat): Likewise.
8947         * io/open.c (__libc_open): Likewise.
8948         * io/open64.c (__libc_open64): Likewise.
8949         * io/readlink.c (__readlink): Likewise.
8950         * io/readlinkat.c (readlinkat): Likewise.
8951         * io/rmdir.c (__rmdir): Likewise.
8952         * io/symlink.c (__symlink): Likewise.
8953         * io/symlinkat.c (symlinkat): Likewise.
8954         * io/ttyname.c (ttyname): Likewise.
8955         * io/ttyname_r.c (__ttyname_r): Likewise.
8956         * io/umask.c (__umask): Likewise.
8957         * io/unlink.c (__unlink): Likewise.
8958         * io/unlinkat.c (unlinkat): Likewise.
8959         * io/utime.c (utime): Likewise.
8960         * libio/clearerr.c (clearerr): Likewise.
8961         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8962         * libio/feof.c (_IO_feof): Likewise.
8963         * libio/feof_u.c (feof_unlocked): Likewise.
8964         * libio/ferror.c (_IO_ferror): Likewise.
8965         * libio/ferror_u.c (ferror_unlocked): Likewise.
8966         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8967         * libio/fileno.c (__fileno): Likewise.
8968         * libio/fputc.c (fputc): Likewise.
8969         * libio/fputc_u.c (fputc_unlocked): Likewise.
8970         * libio/fputwc.c (fputwc): Likewise.
8971         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8972         * libio/freopen.c (freopen): Likewise.
8973         * libio/freopen64.c (freopen64): Likewise.
8974         * libio/fseek.c (fseek): Likewise.
8975         * libio/fseeko.c (fseeko): Likewise.
8976         * libio/fseeko64.c (fseeko64): Likewise.
8977         * libio/ftello.c (__ftello): Likewise.
8978         * libio/ftello64.c (ftello64): Likewise.
8979         * libio/fwide.c (fwide): Likewise.
8980         * libio/genops.c (_IO_un_link): Likewise.
8981         (_IO_link_in): Likewise.
8982         (_IO_least_marker): Likewise.
8983         (_IO_switch_to_main_get_area): Likewise.
8984         (_IO_switch_to_backup_area): Likewise.
8985         (_IO_switch_to_get_mode): Likewise.
8986         (_IO_free_backup_area): Likewise.
8987         (_IO_switch_to_put_mode): Likewise.
8988         (__overflow): Likewise.
8989         (__underflow): Likewise.
8990         (__uflow): Likewise.
8991         (_IO_setb): Likewise.
8992         (_IO_doallocbuf): Likewise.
8993         (_IO_default_underflow): Likewise.
8994         (_IO_default_uflow): Likewise.
8995         (_IO_default_xsputn): Likewise.
8996         (_IO_sgetn): Likewise.
8997         (_IO_default_xsgetn): Likewise.
8998         (_IO_sync): Likewise.
8999         (_IO_default_setbuf): Likewise.
9000         (_IO_default_seekpos): Likewise.
9001         (_IO_default_doallocate): Likewise.
9002         (_IO_init): Likewise.
9003         (_IO_old_init): Likewise.
9004         (_IO_default_sync): Likewise.
9005         (_IO_default_finish): Likewise.
9006         (_IO_default_seekoff): Likewise.
9007         (_IO_sputbackc): Likewise.
9008         (_IO_sungetc): Likewise.
9009         (_IO_set_column): Likewise.
9010         (_IO_set_column): Likewise.
9011         (_IO_adjust_column): Likewise.
9012         (_IO_get_column): Likewise.
9013         (_IO_init_marker): Likewise.
9014         (_IO_remove_marker): Likewise.
9015         (_IO_marker_difference): Likewise.
9016         (_IO_marker_delta): Likewise.
9017         (_IO_seekmark): Likewise.
9018         (_IO_unsave_markers): Likewise.
9019         (_IO_nobackup_pbackfail): Likewise.
9020         (_IO_default_pbackfail): Likewise.
9021         (_IO_default_seek): Likewise.
9022         (_IO_default_stat): Likewise.
9023         (_IO_default_read): Likewise.
9024         (_IO_default_write): Likewise.
9025         (_IO_default_showmanyc): Likewise.
9026         (_IO_default_imbue): Likewise.
9027         (_IO_iter_next): Likewise.
9028         (_IO_iter_file): Likewise.
9029         * libio/getc.c (_IO_getc): Likewise.
9030         * libio/getwc.c (_IO_getwc): Likewise.
9031         * libio/iofclose.c (_IO_new_fclose): Likewise.
9032         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9033         * libio/iofflush.c (_IO_fflush): Likewise.
9034         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9035         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9036         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9037         * libio/iofgets.c (_IO_fgets): Likewise.
9038         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9039         * libio/iofgetws.c (fgetws): Likewise.
9040         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9041         * libio/iofopen64.c (_IO_fopen64): Likewise.
9042         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9043         (_IO_cookie_write): Likewise.
9044         (_IO_cookie_seek): Likewise.
9045         (_IO_cookie_close): Likewise.
9046         (_IO_cookie_seekoff): Likewise.
9047         (_IO_old_cookie_seek): Likewise.
9048         * libio/iofputs.c (_IO_fputs): Likewise.
9049         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9050         * libio/iofputws.c (fputws): Likewise.
9051         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9052         * libio/iofread.c (_IO_fread): Likewise.
9053         * libio/iofread_u.c (__fread_unlocked): Likewise.
9054         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9055         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9056         * libio/ioftell.c (_IO_ftell): Likewise.
9057         * libio/iofwrite.c (_IO_fwrite): Likewise.
9058         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9059         * libio/iogets.c (_IO_gets): Likewise.
9060         * libio/iopadn.c (_IO_padn): Likewise.
9061         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9062         (_IO_new_popen): Likewise.
9063         (_IO_new_proc_close): Likewise.
9064         * libio/ioputs.c (_IO_puts): Likewise.
9065         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9066         (_IO_seekoff): Likewise.
9067         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9068         (_IO_seekpos): Likewise.
9069         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9070         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9071         * libio/ioungetc.c (_IO_ungetc): Likewise.
9072         * libio/ioungetwc.c (ungetwc): Likewise.
9073         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9074         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9075         * libio/iowpadn.c (_IO_wpadn): Likewise.
9076         * libio/libc_fatal.c (__libc_fatal): Likewise.
9077         * libio/memstream.c (__open_memstream): Likewise.
9078         (_IO_mem_sync): Likewise.
9079         (_IO_mem_finish): Likewise.
9080         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9081         (_IO_old_file_close_it): Likewise.
9082         (_IO_old_file_finish): Likewise.
9083         (_IO_old_file_fopen): Likewise.
9084         (_IO_old_file_attach): Likewise.
9085         (_IO_old_file_setbuf): Likewise.
9086         (_IO_old_do_write): Likewise.
9087         (old_do_write): Likewise.
9088         (_IO_old_file_underflow): Likewise.
9089         (_IO_old_file_overflow): Likewise.
9090         (_IO_old_file_sync): Likewise.
9091         (_IO_old_file_seekoff): Likewise.
9092         (_IO_old_file_write): Likewise.
9093         (_IO_old_file_xsputn): Likewise.
9094         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9095         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9096         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9097         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9098         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9099         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9100         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9101         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9102         (_IO_old_popen): Likewise.
9103         (_IO_old_proc_close): Likewise.
9104         * libio/oldpclose.c (__old_pclose): Likewise.
9105         * libio/pclose.c (__new_pclose): Likewise.
9106         * libio/peekc.c (_IO_peekc_locked): Likewise.
9107         * libio/putc.c (_IO_putc): Likewise.
9108         * libio/putc_u.c (putc_unlocked): Likewise.
9109         * libio/putchar.c (putchar): Likewise.
9110         * libio/putchar_u.c (putchar_unlocked): Likewise.
9111         * libio/putwc.c (putwc): Likewise.
9112         * libio/putwc_u.c (putwc_unlocked): Likewise.
9113         * libio/putwchar.c (putwchar): Likewise.
9114         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9115         * libio/rewind.c (rewind): Likewise.
9116         * libio/setbuf.c (setbuf): Likewise.
9117         * libio/setlinebuf.c (setlinebuf): Likewise.
9118         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9119         * libio/vscanf.c (_IO_vscanf): Likewise.
9120         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9121         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9122         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9123         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9124         (_IO_switch_to_main_wget_area): Likewise.
9125         (_IO_switch_to_wbackup_area): Likewise.
9126         (_IO_wsetb): Likewise.
9127         (_IO_wdefault_pbackfail): Likewise.
9128         (_IO_wdefault_finish): Likewise.
9129         (_IO_wdefault_uflow): Likewise.
9130         (__woverflow): Likewise.
9131         (__wuflow): Likewise.
9132         (__wunderflow): Likewise.
9133         (_IO_wdefault_xsputn): Likewise.
9134         (_IO_wdefault_xsgetn): Likewise.
9135         (_IO_wdoallocbuf): Likewise.
9136         (_IO_wdefault_doallocate): Likewise.
9137         (_IO_switch_to_wget_mode): Likewise.
9138         (_IO_free_wbackup_area): Likewise.
9139         (_IO_switch_to_wput_mode): Likewise.
9140         (_IO_sputbackwc): Likewise.
9141         (_IO_sungetwc): Likewise.
9142         (_IO_adjust_wcolumn): Likewise.
9143         (_IO_init_wmarker): Likewise.
9144         (_IO_wmarker_delta): Likewise.
9145         (_IO_seekwmark): Likewise.
9146         (_IO_unsave_wmarkers): Likewise.
9147         * libio/wmemstream.c (open_wmemstream): Likewise.
9148         (_IO_wmem_sync): Likewise.
9149         (_IO_wmem_finish): Likewise.
9150         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9151         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9152         * locale/programs/simple-hash.c (init_hash): Likewise.
9153         (delete_hash): Likewise.
9154         (insert_entry): Likewise.
9155         (set_entry): Likewise.
9156         (next_prime): Likewise.
9157         (is_prime): Likewise.
9158         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9159         (xmalloc): Likewise.
9160         (xrealloc): Likewise.
9161         * locale/programs/xstrdup.c (xstrdup): Likewise.
9162         * localedata/collate-test.c (xstrcoll): Likewise.
9163         * localedata/xfrm-test.c (xstrcmp): Likewise.
9164         * login/getlogin_r.c (__getlogin_r): Likewise.
9165         * login/getpt.c (__posix_openpt): Likewise.
9166         * login/login_tty.c (login_tty): Likewise.
9167         * login/setlogin.c (setlogin): Likewise.
9168         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9169         (mach_msg_destroy_port): Likewise.
9170         (mach_msg_destroy_memory): Likewise.
9171         * malloc/mcheck.c (flood): Likewise.
9172         * misc/acct.c (acct): Likewise.
9173         * misc/brk.c (__brk): Likewise.
9174         * misc/chflags.c (chflags): Likewise.
9175         * misc/chroot.c (chroot): Likewise.
9176         * misc/fchflags.c (fchflags): Likewise.
9177         * misc/fstab.c (getfsspec): Likewise.
9178         (getfsfile): Likewise.
9179         * misc/fsync.c (fsync): Likewise.
9180         * misc/ftruncate.c (__ftruncate): Likewise.
9181         * misc/ftruncate64.c (__ftruncate64): Likewise.
9182         * misc/getdomain.c (getdomainname): Likewise.
9183         (getdomainname): Likewise.
9184         * misc/gethostname.c (__gethostname): Likewise.
9185         * misc/getpass.c (getpass): Likewise.
9186         * misc/getttyent.c (skip): Likewise.
9187         (value): Likewise.
9188         * misc/gtty.c (gtty): Likewise.
9189         * misc/hsearch.c (hsearch): Likewise.
9190         (hcreate): Likewise.
9191         * misc/hsearch_r.c (__hcreate_r): Likewise.
9192         (__hdestroy_r): Likewise.
9193         * misc/ioctl.c (__ioctl): Likewise.
9194         * misc/mkdtemp.c (mkdtemp): Likewise.
9195         * misc/mkostemp.c (mkostemp): Likewise.
9196         * misc/mkostemp64.c (mkostemp64): Likewise.
9197         * misc/mkostemps.c (mkostemps): Likewise.
9198         * misc/mkostemps64.c (mkostemps64): Likewise.
9199         * misc/mkstemp.c (mkstemp): Likewise.
9200         * misc/mkstemp64.c (mkstemp64): Likewise.
9201         * misc/mkstemps.c (mkstemps): Likewise.
9202         * misc/mkstemps64.c (mkstemps64): Likewise.
9203         * misc/mktemp.c (__mktemp): Likewise.
9204         * misc/preadv.c (preadv): Likewise.
9205         * misc/preadv64.c (preadv64): Likewise.
9206         * misc/pwritev.c (pwritev): Likewise.
9207         * misc/pwritev64.c (pwritev64): Likewise.
9208         * misc/readv.c (__readv): Likewise.
9209         * misc/revoke.c (revoke): Likewise.
9210         * misc/setdomain.c (setdomainname): Likewise.
9211         * misc/setegid.c (setegid): Likewise.
9212         * misc/seteuid.c (seteuid): Likewise.
9213         * misc/sethostid.c (sethostid): Likewise.
9214         * misc/sethostname.c (sethostname): Likewise.
9215         * misc/setregid.c (__setregid): Likewise.
9216         * misc/setreuid.c (__setreuid): Likewise.
9217         * misc/sstk.c (sstk): Likewise.
9218         * misc/stty.c (stty): Likewise.
9219         * misc/syscall.c (syscall): Likewise.
9220         * misc/syslog.c (setlogmask): Likewise.
9221         * misc/truncate.c (__truncate): Likewise.
9222         * misc/truncate64.c (truncate64): Likewise.
9223         * misc/ualarm.c (ualarm): Likewise.
9224         * misc/usleep.c (usleep): Likewise.
9225         * misc/ustat.c (ustat): Likewise.
9226         * misc/writev.c (__writev): Likewise.
9227         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9228         * nptl/old_pthread_cond_broadcast.c
9229         (__pthread_cond_broadcast_2_0): Likewise.
9230         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9231         Likewise.
9232         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9233         Likewise.
9234         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9235         Likewise.
9236         * nptl/pt-raise.c (raise): Likewise.
9237         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9238         Likewise.
9239         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9240         * nptl/pthread_barrierattr_destroy.c
9241         (pthread_barrierattr_destroy): Likewise.
9242         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9243         Likewise.
9244         * nptl/pthread_barrierattr_setpshared.c
9245         (pthread_barrierattr_setpshared): Likewise.
9246         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9247         Likewise.
9248         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9249         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9250         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9251         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9252         Likewise.
9253         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9254         Likewise.
9255         * nptl/pthread_condattr_getpshared.c
9256         (pthread_condattr_getpshared): Likewise.
9257         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9258         Likewise.
9259         * nptl/pthread_condattr_setpshared.c
9260         (pthread_condattr_setpshared): Likewise.
9261         * nptl/pthread_detach.c (pthread_detach): Likewise.
9262         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9263         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9264         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9265         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9266         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9267         Likewise.
9268         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9269         Likewise.
9270         * nptl/pthread_mutex_getprioceiling.c
9271         (pthread_mutex_getprioceiling): Likewise.
9272         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9273         Likewise.
9274         * nptl/pthread_mutexattr_getprotocol.c
9275         (pthread_mutexattr_getprotocol): Likewise.
9276         * nptl/pthread_mutexattr_getpshared.c
9277         (pthread_mutexattr_getpshared): Likewise.
9278         * nptl/pthread_mutexattr_getrobust.c
9279         (pthread_mutexattr_getrobust): Likewise.
9280         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9281         Likewise.
9282         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9283         Likewise.
9284         * nptl/pthread_mutexattr_setprioceiling.c
9285         (pthread_mutexattr_setprioceiling): Likewise.
9286         * nptl/pthread_mutexattr_setprotocol.c
9287         (pthread_mutexattr_setprotocol): Likewise.
9288         * nptl/pthread_mutexattr_setpshared.c
9289         (pthread_mutexattr_setpshared): Likewise.
9290         * nptl/pthread_mutexattr_setrobust.c
9291         (pthread_mutexattr_setrobust): Likewise.
9292         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9293         Likewise.
9294         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9295         Likewise.
9296         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9297         Likewise.
9298         * nptl/pthread_rwlockattr_getkind_np.c
9299         (pthread_rwlockattr_getkind_np): Likewise.
9300         * nptl/pthread_rwlockattr_getpshared.c
9301         (pthread_rwlockattr_getpshared): Likewise.
9302         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9303         Likewise.
9304         * nptl/pthread_rwlockattr_setkind_np.c
9305         (pthread_rwlockattr_setkind_np): Likewise.
9306         * nptl/pthread_rwlockattr_setpshared.c
9307         (pthread_rwlockattr_setpshared): Likewise.
9308         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9309         Likewise.
9310         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9311         Likewise.
9312         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9313         Likewise.
9314         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9315         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9316         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9317         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9318         * nptl/sem_close.c (sem_close): Likewise.
9319         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9320         * nptl/sem_init.c (__old_sem_init): Likewise.
9321         * nptl/sigaction.c (__sigaction): Likewise.
9322         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9323         * posix/_exit.c (_exit): Likewise.
9324         * posix/alarm.c (alarm): Likewise.
9325         * posix/confstr.c (confstr): Likewise.
9326         * posix/fpathconf.c (__fpathconf): Likewise.
9327         * posix/getgroups.c (__getgroups): Likewise.
9328         * posix/getpgid.c (__getpgid): Likewise.
9329         * posix/group_member.c (__group_member): Likewise.
9330         * posix/pathconf.c (__pathconf): Likewise.
9331         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9332         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9333         * posix/setgid.c (__setgid): Likewise.
9334         * posix/setpgid.c (__setpgid): Likewise.
9335         * posix/setuid.c (__setuid): Likewise.
9336         * posix/sleep.c (__sleep): Likewise.
9337         * posix/sysconf.c (__sysconf): Likewise.
9338         * posix/times.c (__times): Likewise.
9339         * posix/uname.c (__uname): Likewise.
9340         * posix/waitid.c (__waitid): Likewise.
9341         * pwd/getpw.c (__getpw): Likewise.
9342         * resolv/base64.c (b64_pton): Likewise.
9343         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9344         * resolv/gethnamaddr.c (Dprintf): Likewise.
9345         (gethostbyname): Likewise.
9346         (gethostbyname2): Likewise.
9347         (gethostbyaddr): Likewise.
9348         (_sethtent): Likewise.
9349         (_gethtbyname): Likewise.
9350         (_gethtbyname2): Likewise.
9351         (_gethtbyaddr): Likewise.
9352         (map_v4v6_address): Likewise.
9353         (map_v4v6_hostent): Likewise.
9354         (addrsort): Likewise.
9355         (ht_sethostent): Likewise.
9356         (ht_gethostbyname): Likewise.
9357         (ht_gethostbyaddr): Likewise.
9358         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9359         (inet_net_ntop_ipv4): Likewise.
9360         * resolv/inet_neta.c (inet_neta): Likewise.
9361         * resolv/inet_ntop.c (inet_ntop): Likewise.
9362         (inet_ntop4): Likewise.
9363         (inet_ntop6): Likewise.
9364         * resolv/inet_pton.c (__inet_pton): Likewise.
9365         (inet_pton4): Likewise.
9366         (inet_pton6): Likewise.
9367         * resolv/res_debug.c (loc_aton): Likewise.
9368         (loc_ntoa): Likewise.
9369         * resource/getpriority.c (__getpriority): Likewise.
9370         * resource/getrusage.c (__getrusage): Likewise.
9371         * resource/nice.c (nice): Likewise.
9372         * resource/setpriority.c (__setpriority): Likewise.
9373         * resource/setrlimit64.c (setrlimit64): Likewise.
9374         * resource/vlimit.c (vlimit): Likewise.
9375         * resource/vtimes.c (vtimes): Likewise.
9376         * rt/aio_error.c (aio_error): Likewise.
9377         * rt/aio_return.c (aio_return): Likewise.
9378         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9379         * signal/kill.c (__kill): Likewise.
9380         * signal/killpg.c (killpg): Likewise.
9381         * signal/raise.c (raise): Likewise.
9382         * signal/sigaction.c (__sigaction): Likewise.
9383         * signal/sigaddset.c (sigaddset): Likewise.
9384         * signal/sigaltstack.c (sigaltstack): Likewise.
9385         * signal/sigandset.c (sigandset): Likewise.
9386         * signal/sigblock.c (__sigblock): Likewise.
9387         * signal/sigdelset.c (sigdelset): Likewise.
9388         * signal/sigempty.c (sigemptyset): Likewise.
9389         * signal/sigfillset.c (sigfillset): Likewise.
9390         * signal/sighold.c (sighold): Likewise.
9391         * signal/sigignore.c (sigignore): Likewise.
9392         * signal/sigintr.c (siginterrupt): Likewise.
9393         * signal/sigisempty.c (sigisemptyset): Likewise.
9394         * signal/sigismem.c (sigismember): Likewise.
9395         * signal/signal.c (signal): Likewise.
9396         * signal/sigorset.c (sigorset): Likewise.
9397         * signal/sigpause.c (__sigpause): Likewise.
9398         * signal/sigpending.c (sigpending): Likewise.
9399         * signal/sigprocmask.c (__sigprocmask): Likewise.
9400         * signal/sigrelse.c (sigrelse): Likewise.
9401         * signal/sigreturn.c (__sigreturn): Likewise.
9402         * signal/sigset.c (sigset): Likewise.
9403         * signal/sigsetmask.c (__sigsetmask): Likewise.
9404         * signal/sigstack.c (sigstack): Likewise.
9405         * signal/sigsuspend.c (__sigsuspend): Likewise.
9406         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9407         * signal/sysv_signal.c (__sysv_signal): Likewise.
9408         * socket/accept.c (accept): Likewise.
9409         * socket/accept4.c (__libc_accept4): Likewise.
9410         * socket/bind.c (__bind): Likewise.
9411         * socket/connect.c (__connect): Likewise.
9412         * socket/getpeername.c (getpeername): Likewise.
9413         * socket/getsockname.c (__getsockname): Likewise.
9414         * socket/getsockopt.c (getsockopt): Likewise.
9415         * socket/listen.c (__listen): Likewise.
9416         * socket/recv.c (__recv): Likewise.
9417         * socket/recvmsg.c (__recvmsg): Likewise.
9418         * socket/send.c (__send): Likewise.
9419         * socket/sendmsg.c (__sendmsg): Likewise.
9420         * socket/shutdown.c (shutdown): Likewise.
9421         * socket/sockatmark.c (sockatmark): Likewise.
9422         * socket/socket.c (__socket): Likewise.
9423         * stdio-common/ctermid.c (ctermid): Likewise.
9424         * stdio-common/cuserid.c (cuserid): Likewise.
9425         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9426         * stdio-common/remove.c (remove): Likewise.
9427         * stdio-common/rename.c (rename): Likewise.
9428         * stdio-common/renameat.c (renameat): Likewise.
9429         * stdio-common/tempname.c (__gen_tempname): Likewise.
9430         * stdio-common/xbug.c (InitBuffer): Likewise.
9431         (AppendToBuffer): Likewise.
9432         (ReadFile): Likewise.
9433         * stdlib/a64l.c (a64l): Likewise.
9434         * stdlib/drand48_r.c (drand48_r): Likewise.
9435         * stdlib/getcontext.c (getcontext): Likewise.
9436         * stdlib/getenv.c (getenv): Likewise.
9437         * stdlib/l64a.c (l64a): Likewise.
9438         * stdlib/llabs.c (llabs): Likewise.
9439         * stdlib/lldiv.c (lldiv): Likewise.
9440         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9441         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9442         * stdlib/putenv.c (putenv): Likewise.
9443         * stdlib/random.c (__srandom): Likewise.
9444         (__initstate): Likewise.
9445         (__setstate): Likewise.
9446         * stdlib/random_r.c (__srandom_r): Likewise.
9447         (__setstate_r): Likewise.
9448         (__random_r): Likewise.
9449         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9450         * stdlib/setcontext.c (setcontext): Likewise.
9451         * stdlib/setenv.c (setenv): Likewise.
9452         (unsetenv): Likewise.
9453         * stdlib/srand48.c (srand48): Likewise.
9454         * stdlib/srand48_r.c (__srand48_r): Likewise.
9455         * stdlib/swapcontext.c (swapcontext): Likewise.
9456         * stdlib/system.c (__libc_system): Likewise.
9457         * stdlib/tst-strtod.c (expand): Likewise.
9458         * stdlib/tst-strtol.c (expand): Likewise.
9459         * stdlib/tst-strtoll.c (expand): Likewise.
9460         * streams/fattach.c (fattach): Likewise.
9461         * streams/fdetach.c (fdetach): Likewise.
9462         * streams/getmsg.c (getmsg): Likewise.
9463         * streams/isastream.c (isastream): Likewise.
9464         * string/ffs.c (__ffs): Likewise.
9465         * string/ffsll.c (ffsll): Likewise.
9466         * string/memcmp.c (memcmp_common_alignment): Likewise.
9467         (memcmp_not_common_alignment): Likewise.
9468         (MEMCMP): Likewise.
9469         * string/memcpy.c (memcpy): Likewise.
9470         * string/memmove.c (MEMMOVE): Likewise.
9471         * string/memset.c (memset): Likewise.
9472         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9473         * string/strchrnul.c (STRCHRNUL): Likewise.
9474         * string/strerror.c (strerror): Likewise.
9475         * string/strndup.c (__strndup): Likewise.
9476         * string/strverscmp.c (__strverscmp): Likewise.
9477         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9478         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9479         (clnttcp_freeres): Likewise.
9480         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9481         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9482         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9483         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9484         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9485         (xdr_callhdr): Likewise.
9486         * sunrpc/rpcinfo.c (udpping): Likewise.
9487         (tcpping): Likewise.
9488         (pstatus): Likewise.
9489         (pmapdump): Likewise.
9490         (brdcst): Likewise.
9491         (deletereg): Likewise.
9492         (getprognum): Likewise.
9493         (getvers): Likewise.
9494         (get_inet_address): Likewise.
9495         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9496         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9497         (svcudp_stat): Likewise.
9498         (svcudp_recv): Likewise.
9499         (svcudp_reply): Likewise.
9500         (svcudp_getargs): Likewise.
9501         (svcudp_freeargs): Likewise.
9502         (svcudp_destroy): Likewise.
9503         * sunrpc/xdr.c (xdr_bytes): Likewise.
9504         (xdr_netobj): Likewise.
9505         (xdr_string): Likewise.
9506         (xdr_wrapstring): Likewise.
9507         * sunrpc/xdr_float.c (xdr_float): Likewise.
9508         (xdr_double): Likewise.
9509         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9510         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9511         * sysvipc/ftok.c (ftok): Likewise.
9512         * sysvipc/msgctl.c (msgctl): Likewise.
9513         * sysvipc/msgget.c (msgget): Likewise.
9514         * sysvipc/msgrcv.c (msgrcv): Likewise.
9515         * sysvipc/msgsnd.c (msgsnd): Likewise.
9516         * sysvipc/semget.c (semget): Likewise.
9517         * sysvipc/semop.c (semop): Likewise.
9518         * sysvipc/shmat.c (shmat): Likewise.
9519         * sysvipc/shmctl.c (shmctl): Likewise.
9520         * sysvipc/shmdt.c (shmdt): Likewise.
9521         * sysvipc/shmget.c (shmget): Likewise.
9522         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9523         * termios/speed.c (cfgetospeed): Likewise.
9524         (cfgetispeed): Likewise.
9525         (cfsetospeed): Likewise.
9526         (cfsetispeed): Likewise.
9527         * termios/tcflow.c (tcflow): Likewise.
9528         * termios/tcflush.c (tcflush): Likewise.
9529         * termios/tcgetattr.c (__tcgetattr): Likewise.
9530         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9531         * termios/tcgetsid.c (tcgetsid): Likewise.
9532         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9533         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9534         * time/adjtime.c (__adjtime): Likewise.
9535         * time/dysize.c (dysize): Likewise.
9536         * time/ftime.c (ftime): Likewise.
9537         * time/getitimer.c (__getitimer): Likewise.
9538         * time/gettimeofday.c (__gettimeofday): Likewise.
9539         * time/gmtime.c (__gmtime_r): Likewise.
9540         (gmtime): Likewise.
9541         * time/localtime.c (__localtime_r): Likewise.
9542         (localtime): Likewise.
9543         * time/offtime.c (__offtime): Likewise.
9544         * time/settimeofday.c (__settimeofday): Likewise.
9545         * time/stime.c (stime): Likewise.
9546         * time/strftime_l.c (tm_diff): Likewise.
9547         (iso_week_days): Likewise.
9548         * time/strptime.c (strptime): Likewise.
9549         * time/time.c (time): Likewise.
9550         * time/timespec_get.c (timespec_get): Likewise.
9551         * time/tzset.c (tzset_internal): Likewise.
9552         (compute_change): Likewise.
9553         (__tz_compute): Likewise.
9554         * wcsmbs/btowc.c (__btowc): Likewise.
9555         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9556         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9557         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9558         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9559         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9560         * wcsmbs/wcscat.c (__wcscat): Likewise.
9561         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9562         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9563         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9564         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9565         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9566         * wcsmbs/wcslen.c (__wcslen): Likewise.
9567         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9568         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9569         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9570         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9571         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9572         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9573         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9574         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9575         * wcsmbs/wcstok.c (wcstok): Likewise.
9576         * wcsmbs/wctob.c (wctob): Likewise.
9577         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9578         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9579         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9580         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9581         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9582         * wcsmbs/wmemset.c (__wmemset): Likewise.
9583         * wctype/wcfuncs.c (__towlower): Likewise.
9584         (__towupper): Likewise.
9585
9586         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9587         (lll_unlock_elision): Add adapt_count parameter.
9588
9589 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9590
9591         * sysdeps/nptl/configure.ac: Do not give errors based on the
9592         results of top-level configure tests.
9593         * sysdeps/nptl/configure: Regenerated.
9594
9595         * configure.ac (libc_cv_Bgroup): Remove configure test.
9596         * configure: Regenerated.
9597         * config.make.in (have-Bgroup): Remove variable.
9598
9599         * configure.ac (sizeof_long_double): Remove configure test.
9600         * configure: Regenerated.
9601         * config.make.in (sizeof-long-double): Remove variable.
9602
9603         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9604         * configure: Regenerated.
9605         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9606         variable.
9607         (exceptions): Likewise.
9608         * sysdeps/arm/configure: Regenerated.
9609         * config.make.in (exceptions): Remove variable.
9610         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9611         $(exceptions).
9612         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9613         (CFLAGS-vdprintf_chk.c): Likewise.
9614         (CFLAGS-printf_chk.c): Likewise.
9615         (CFLAGS-fprintf_chk.c): Likewise.
9616         (CFLAGS-vprintf_chk.c): Likewise.
9617         (CFLAGS-vfprintf_chk.c): Likewise.
9618         (CFLAGS-gets_chk.c): Likewise.
9619         (CFLAGS-fgets_chk.c): Likewise.
9620         (CFLAGS-fgets_u_chk.c): Likewise.
9621         (CFLAGS-fread_chk.c): Likewise.
9622         (CFLAGS-fread_u_chk.c): Likewise.
9623         (CFLAGS-wprintf_chk.c): Likewise.
9624         (CFLAGS-fwprintf_chk.c): Likewise.
9625         (CFLAGS-vwprintf_chk.c): Likewise.
9626         (CFLAGS-vfwprintf_chk.c): Likewise.
9627         (CFLAGS-fgetws_chk.c): Likewise.
9628         (CFLAGS-fgetws_u_chk.c): Likewise.
9629         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9630         (CFLAGS-fputc.c): Likewise.
9631         (CFLAGS-fputwc.c): Likewise.
9632         (CFLAGS-freopen64.c): Likewise.
9633         (CFLAGS-freopen.c): Likewise.
9634         (CFLAGS-fseek.c): Likewise.
9635         (CFLAGS-fseeko64.c): Likewise.
9636         (CFLAGS-fseeko.c): Likewise.
9637         (CFLAGS-ftello64.c): Likewise.
9638         (CFLAGS-ftello.c): Likewise.
9639         (CFLAGS-fwide.c): Likewise.
9640         (CFLAGS-genops.c): Likewise.
9641         (CFLAGS-getc.c): Likewise.
9642         (CFLAGS-getchar.c): Likewise.
9643         (CFLAGS-getwc.c): Likewise.
9644         (CFLAGS-getwchar.c): Likewise.
9645         (CFLAGS-iofclose.c): Likewise.
9646         (CFLAGS-iofflush.c): Likewise.
9647         (CFLAGS-iofgetpos64.c): Likewise.
9648         (CFLAGS-iofgetpos.c): Likewise.
9649         (CFLAGS-iofgets.c): Likewise.
9650         (CFLAGS-iofgetws.c): Likewise.
9651         (CFLAGS-iofputs.c): Likewise.
9652         (CFLAGS-iofputws.c): Likewise.
9653         (CFLAGS-iofread.c): Likewise.
9654         (CFLAGS-iofsetpos64.c): Likewise.
9655         (CFLAGS-iofsetpos.c): Likewise.
9656         (CFLAGS-ioftell.c): Likewise.
9657         (CFLAGS-iofwrite.c): Likewise.
9658         (CFLAGS-iogetdelim.c): Likewise.
9659         (CFLAGS-iogetline.c): Likewise.
9660         (CFLAGS-iogets.c): Likewise.
9661         (CFLAGS-iogetwline.c): Likewise.
9662         (CFLAGS-ioputs.c): Likewise.
9663         (CFLAGS-ioseekoff.c): Likewise.
9664         (CFLAGS-ioseekpos.c): Likewise.
9665         (CFLAGS-iosetbuffer.c): Likewise.
9666         (CFLAGS-iosetvbuf.c): Likewise.
9667         (CFLAGS-ioungetc.c): Likewise.
9668         (CFLAGS-ioungetwc.c): Likewise.
9669         (CFLAGS-oldfileops.c): Likewise.
9670         (CFLAGS-oldiofclose.c): Likewise.
9671         (CFLAGS-oldiofgetpos64.c): Likewise.
9672         (CFLAGS-oldiofgetpos.c): Likewise.
9673         (CFLAGS-oldiofsetpos64.c): Likewise.
9674         (CFLAGS-oldiofsetpos.c): Likewise.
9675         (CFLAGS-peekc.c): Likewise.
9676         (CFLAGS-putc.c): Likewise.
9677         (CFLAGS-putchar.c): Likewise.
9678         (CFLAGS-putwc.c): Likewise.
9679         (CFLAGS-putwchar.c): Likewise.
9680         (CFLAGS-rewind.c): Likewise.
9681         (CFLAGS-wfileops.c): Likewise.
9682         (CFLAGS-wgenops.c): Likewise.
9683         (CFLAGS-oldiofopen.c): Likewise.
9684         (CFLAGS-iofopen.c): Likewise.
9685         (CFLAGS-iofopen64.c): Likewise.
9686         (CFLAGS-oldtmpfile.c): Likewise.
9687         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9688         (CFLAGS-fprintf.c): Likewise.
9689         (CFLAGS-printf.c): Likewise.
9690         (CFLAGS-vfwprintf.c): Likewise.
9691         (CFLAGS-vfscanf.c): Likewise.
9692         (CFLAGS-vfwscanf.c): Likewise.
9693         (CFLAGS-fscanf.c): Likewise.
9694         (CFLAGS-scanf.c): Likewise.
9695         (CFLAGS-isoc99_vfscanf.c): Likewise.
9696         (CFLAGS-isoc99_vscanf.c): Likewise.
9697         (CFLAGS-isoc99_fscanf.c): Likewise.
9698         (CFLAGS-isoc99_scanf.c): Likewise.
9699         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9700         (CFLAGS-isoc99_fwscanf.c): Likewise.
9701         (CFLAGS-isoc99_vwscanf.c): Likewise.
9702         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9703
9704         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9705         after mkstemp64.
9706         * login/tst-utmp.c (do_prepare): Likewise.
9707         * rt/tst-aio.c (do_prepare): Likewise.
9708         * rt/tst-aio64.c (do_prepare): Likewise.
9709
9710 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9711
9712         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9713         (__lll_lock_elision): Remove adapt_count decrement...
9714         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9715         (__lll_trylock_elision): Likewise.
9716         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9717         (__lll_unlock_elision): ... to here. And utilize
9718         new adapt_count parameter.
9719         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9720         (__lll_unlock_elision): Update to include adapt_count
9721         parameter.
9722         (lll_unlock_elision): Pass pointer to adapt_count
9723         variable.
9724
9725 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9726
9727         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9728         Add elision adapt_count parameter to list of arguments.
9729         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9730         (lll_unlock_elision): Update with new parameter list
9731         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9732         (lll_unlock_elision): Likewise.
9733         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9734         (lll_unlock_elision): Likewise.
9735
9736 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9737
9738         [BZ #19122]
9739         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9740         attribute_hidden.
9741
9742         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9743         attribute_hidden.
9744         [IS_IN (rtld)] (__strdup): Likewise.
9745         [IS_IN (rtld)] (__strerror_r): Likewise.
9746         [IS_IN (rtld)] (__strsep_g): Likewise.
9747         [IS_IN (rtld)] (memchr): Likewise.
9748         [IS_IN (rtld)] (memcmp): Likewise.
9749         [IS_IN (rtld)] (memcpy): Likewise.
9750         [IS_IN (rtld)] (memmove): Likewise.
9751         [IS_IN (rtld)] (memset): Likewise.
9752         [IS_IN (rtld)] (rawmemchr): Likewise.
9753         [IS_IN (rtld)] (stpcpy): Likewise.
9754         [IS_IN (rtld)] (strchr): Likewise.
9755         [IS_IN (rtld)] (strcmp): Likewise.
9756         [IS_IN (rtld)] (strlen): Likewise.
9757         [IS_IN (rtld)] (strnlen): Likewise.
9758         [IS_IN (rtld)] (strsep): Likewise.
9759
9760         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9761         attribute_hidden.
9762         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9763
9764         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9765         attribute_hidden.
9766         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9767
9768         * include/setjmp.h (__longjmp): Add attribute_hidden.
9769         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9770
9771         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9772         Add attribute_hidden.
9773
9774         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9775         [IS_IN (rtld)] (__open): Likewise.
9776         [IS_IN (rtld)] (__fcntl): Likewise.
9777
9778         * include/dirent.h (__opendirat): Add attribute_hidden.
9779         (__getdents): Likewise.
9780         (__getdents64): Likewise.
9781         (__alloc_dir): Likewise.
9782         [IS_IN (rtld)] (__closedir): Likewise.
9783         [IS_IN (rtld)] (__fdopendir): Likewise.
9784         [IS_IN (rtld)] (__readdir): Likewise.
9785         [IS_IN (rtld)] (__readdir64): Likewise.
9786         [IS_IN (rtld)] (__rewinddir): Likewise.
9787
9788         * include/dlfcn.h (_dl_catch_error): Moved to ...
9789         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9790         attribute_hidden.
9791
9792         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9793         (_itoa_word): Likewise.
9794
9795         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9796         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9797         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9798         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9799         (_dl_higher_prime_number): Likewise.
9800         (_dl_debug_printf_c): Likewise.
9801         (_dl_signal_cerror): Likewise.
9802         (_dl_receive_error): Likewise.
9803         (_dl_reloc_bad_type): Likewise.
9804         (_dl_resolve_conflicts): Likewise.
9805         (_dl_check_all_versions): Likewise.
9806         (_dl_check_map_versions): Likewise.
9807         (_dl_sort_fini): Likewise.
9808         (_dl_debug_initialize): Likewise.
9809         (_dl_init_paths): Likewise.
9810         (_dl_show_auxv): Likewise.
9811         (_dl_next_ld_env_entry): Likewise.
9812         (_dl_important_hwcaps): Likewise.
9813         (_dl_load_cache_lookup): Likewise.
9814         (_dl_update_slotinfo): Likewise.
9815         (_dl_show_scope): Likewise.
9816
9817         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9818         attribute_hidden.
9819         (_wordcopy_fwd_dest_aligned): Likewise.
9820         (_wordcopy_bwd_aligned): Likewise.
9821         (_wordcopy_bwd_dest_aligned): Likewise.
9822
9823         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9824         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9825         Likewise.
9826         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9827         Likewise.
9828         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9829
9830 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9831
9832         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9833         GCC 5 requirement.
9834
9835 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9836
9837         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9838         test.
9839         * sysdeps/i386/configure: Regenerated.
9840         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9841         code unconditional.
9842
9843         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9844         test.
9845         (libc_cv_asm_popsection_directive): Likewise.
9846         * configure: Regenerated.
9847         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9848         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9849         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9850         (__make_section_unallocated): Make definition unconditional.
9851         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9852         Remove conditional definition.
9853         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9854         (__make_section_unallocated): Likewise.
9855
9856         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9857         * configure: Regenerated.
9858         * config.make.in (static-libgcc): Remove variable.
9859         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9860         $(static-libgcc).
9861         (build-module-helper): Likewise.
9862
9863         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9864         * configure: Regenerated.
9865
9866 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9867
9868         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9869         (struct char_buffer): New type.
9870         (char_buffer_start, char_buffer_size, char_buffer_error)
9871         (char_buffer_rewind, char_buffer_add): New functions.
9872         (ADDW): Remove macro, replaced by the char_buffer_add function.
9873         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9874         of extend_alloca.  Make control flow more explicit.
9875
9876 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9877
9878         [BZ #19137]
9879         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9880         Add -fomit-frame-pointer.
9881         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9882
9883 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9884
9885         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9886         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9887         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9888         only if !__GNUC_PREREQ (5,0).
9889         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9890         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9891         (INTERNAL_SYSCALL_NCS): Likewise.
9892         (LOADREGS_0): New macro for GCC 5.
9893         (ASMARGS_0): Likewise.
9894         (LOADREGS_1): Likewise.
9895         (ASMARGS_1): Likewise.
9896         (LOADREGS_2): Likewise.
9897         (ASMARGS_2): Likewise.
9898         (LOADREGS_3): Likewise.
9899         (ASMARGS_3): Likewise.
9900         (LOADREGS_4): Likewise.
9901         (ASMARGS_4): Likewise.
9902         (LOADREGS_5): Likewise.
9903         (ASMARGS_5): Likewise.
9904         (LOADREGS_6): Likewise.
9905         (ASMARGS_6): Likewise.
9906
9907 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9908
9909         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9910         -fomit-frame-pointer.
9911         (CFLAGS-mmap64.c): Likewise.
9912         (CFLAGS-semtimedop.c): Likewise.
9913         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9914         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9915         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9916         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9917
9918 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9919
9920         [BZ #18928]
9921         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9922         _dl_pointer_guard member.
9923         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9924         initializer.
9925         (security_init): Always set up pointer guard.
9926         (process_envvars): Do not process LD_POINTER_GUARD.
9927
9928 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9929
9930         [BZ #19134]
9931         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9932         (.LC2): Likewise.
9933         (.LC3): Likewise.
9934         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9935
9936 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9937
9938         [BZ #19129]
9939         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9940         r0 and r1.
9941
9942 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9943
9944         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9945
9946 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9947
9948         * include/stap-probe.h: Fix macro definition formatting.
9949
9950 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9951
9952         [BZ #19074]
9953         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9954         load and store num_ifs.
9955
9956 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9957
9958         [BZ #18822]
9959         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9960         (__sched_getaffinity_new): Add libc_hidden_proto and
9961         libc_hidden_def.
9962
9963 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9964
9965         [BZ #19007]
9966         * scripts/localplt.awk: Also allow GOT references.
9967         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9968         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9969         with "+ REL R_386_GLOB_DAT".
9970         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9971         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9972
9973 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9974
9975         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9976         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9977         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9978         Likewise.
9979         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9980         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9981         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9982         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9983         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9984         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9985         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9986         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9987         Likewise.
9988         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9989
9990 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9991
9992         [BZ #19125]
9993         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9994         <math_private.h> and <stdint.h>.
9995         (__llround): Avoid conversions to and from long long int, and
9996         subtractions, where those might raise spurious exceptions.
9997         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9998         <math_private.h> and <stdint.h>.
9999         (__llroundf): Avoid conversions to and from long long int, and
10000         subtractions, where those might raise spurious exceptions.
10001
10002 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10003
10004         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10005         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10006         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10007         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10008         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10009         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10010         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10011         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10012         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10013         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10014         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10015         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10016         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10017         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10018         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10019         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10020         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10021         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10022         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10023         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10024         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10025         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10026         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10027         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10028         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10029         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10030         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10031         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10032         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10033         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10034         (__xstat64_conv): Likewise.
10035         (__xstat32_conv): Likewise.
10036
10037 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10038
10039         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10040         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10041         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10042         <sysdeps/unix/sysv/linux/sysdep.h>.
10043         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10044         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10045         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10046         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10047         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10048         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10049         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10050         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10051         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10054         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10055         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10056         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10057         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10058         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10059         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10060         (sysdep-dl-routines): Add sysdep.
10061         [$(subdir) == nptl] (libpthread-routines): Likewise.
10062         [$(subdir) == rt] (librt-routines): Likewise.
10063         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10064         PIC when branching to SYSCALL_ERROR_LABEL.
10065         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10066         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10067         <sysdeps/unix/sysv/linux/sysdep.h>.
10068         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10069         (SYSCALL_ERROR_ERRNO): Removed.
10070         (SYSCALL_ERROR_HANDLER): Changed to empty.
10071         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10072         (__syscall_error): New prototype.
10073         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10074         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10075
10076 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10077
10078         [BZ #19124]
10079         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10080         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10081         _dl_runtime_resolve_avx.
10082         (_dl_runtime_profile_avx512): Make it a hidden alias of
10083         _dl_runtime_profile_avx.
10084
10085 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10086
10087         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10088         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10089         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10090         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10091
10092         [BZ #16422]
10093         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10094         New configure test.
10095         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10096         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10097         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10098         <math_private.h> and <stdint.h>.
10099         (__llrint): Avoid conversions to long long int where those might
10100         raise spurious exceptions.
10101         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10102         <math_private.h> and <stdint.h>.
10103         (__llrintf): Avoid conversions to long long int where those might
10104         raise spurious exceptions.
10105
10106 2015-10-12  Andreas Schwab  <schwab@suse.de>
10107
10108         [BZ #18969]
10109         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10110         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10111         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10112         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10113         $(gen-locales).
10114         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10115         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10116         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10117         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10118         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10119         $(gen-locales).
10120         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10121         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10122         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10123         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10124         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10125         ($(objpfx)tst-ftell-active-handler.out)
10126         ($(objpfx)tst-ftell-append.out)
10127         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10128         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10129         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10130         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10131         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10132         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10133         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10134         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10135         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10136         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10137         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10138         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10139         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10140         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10141         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10142         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10143         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10144         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10145         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10146         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10147         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10148         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10149         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10150         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10151         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10152         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10153         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10154         $(gen-locales).
10155         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10156         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10157         $(gen-locales).
10158         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10159         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10160         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10161         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10162         $(gen-locales).
10163         * libio/tst_wprintf2.c (main): Use explicit locale.
10164         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10165
10166 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10167
10168         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10169         __msg_sig_post.
10170         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10171
10172 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10173
10174         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10175         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10176
10177         * sysdeps/arm/libm-test-ulps: Regenerated.
10178
10179         [BZ #15470]
10180         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10181
10182         [BZ #16399]
10183         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10184         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10185         and <fix-fp-int-convert-overflow.h>.
10186         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10187         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10188         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10189         and <fix-fp-int-convert-overflow.h>.
10190         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10191         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10192         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10193         <fix-fp-int-convert-overflow.h>.
10194         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10195         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10196         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10197         <fix-fp-int-convert-overflow.h>.
10198         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10199         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10200         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10201         and <fix-fp-int-convert-overflow.h>.
10202         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10203         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10204         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10205         <limits.h> and <fix-fp-int-convert-overflow.h>.
10206         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10207         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10208         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10209         and <fix-fp-int-convert-overflow.h>.
10210         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10211         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10212         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10213         and <fix-fp-int-convert-overflow.h>.
10214         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10215         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10216         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10217
10218 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10219
10220         [BZ #18589]
10221         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10222         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10223         $(gen-locales).
10224
10225 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10226             Phil Blundell <pb@pbcl.net>
10227
10228         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10229         * nptl/tst-cancel26.c: New file.
10230         * nptl/tst-cancel27.c: Likewise.
10231
10232 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10233
10234         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10235         __ILP32__ isn't defined.
10236         (lrint): Likewise.
10237         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10238         (lrintf): Likewise.
10239         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10240         (lrintl): Likewise.
10241         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10242         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10243         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10244
10245 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10246
10247         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10248         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10249
10250         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10251         file.
10252         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10253         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10254
10255 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10256
10257         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10258         configure test.
10259         * sysdeps/i386/configure: Regenerated.
10260         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10261         configure test.
10262         * sysdeps/x86_64/configure: Regenerated.
10263         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10264         Make code unconditional.
10265
10266         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10267         test.
10268         * sysdeps/i386/configure: Regenerated.
10269         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10270         test.
10271         * sysdeps/x86_64/configure: Regenerated.
10272         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10273         Make code unconditional.
10274         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10275         Likewise.
10276         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10277         Likewise.
10278         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10279         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10280         code unconditional.
10281         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10282         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10283         code unconditional.
10284         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10285         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10286         code unconditional.
10287         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10288         code unconditional.
10289         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10290         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10291         code unconditional.
10292         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10293         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10294         code unconditional.
10295         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10296         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10297         code unconditional.
10298         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10299         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10300         code unconditional.
10301         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10302         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10303
10304         [BZ #19095]
10305         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10306         mantissa to long int before shifting left.
10307
10308 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10309
10310         [BZ #19094]
10311         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10312         <limits.h>.
10313         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10314         when result overflows but exception would not result from cast.
10315         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10316         <limits.h>.
10317         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10318         when result overflows but exception would not result from cast.
10319         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10320         <limits.h>.
10321         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10322         when result overflows but exception would not result from cast.
10323         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10324         <limits.h>.
10325         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10326         when result overflows but exception would not result from cast.
10327         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10328         <limits.h>.
10329         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10330         when result overflows but exception would not result from cast.
10331         * math/libm-test.inc (lrint_test_data): Add more tests.
10332         (llrint_test_data): Likewise.
10333
10334 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10335
10336         [BZ #18872]
10337         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10338         Move out from under [$(run-built-tests) = yes] conditional.
10339         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10340         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10341
10342 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10343
10344         [BZ #18589]
10345         * string/Makefile (tests): Add bug-strcoll2.
10346         (LOCALES): Add cs_CZ.UTF-8.
10347         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10348
10349         [BZ #18589]
10350         * string/bug-strcoll2.c: New file.
10351         * locale/categories.def: Revert commit
10352         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10353         * locale/langinfo.h: Likewise.
10354         * locale/localeinfo.h: Likewise.
10355         * locale/C-collate.c: Likewise.
10356         * locale/programs/ld-collate.c (collate_output): Likewise.
10357         * string/strcoll_l.c (STRDIFF): Likewise.
10358         (STRCOLL): Likewise.
10359         * wcsmbs/wcscoll_l.c: Likewise.
10360
10361 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10362
10363         * math/libm-test.inc (lround_test_data): Do not expect the absence
10364         of "inexact" for some tests with non-integer arguments.
10365         (llround_test_data): Likewise.
10366
10367         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10368         test.
10369         (libc_cv_cc_sse2avx): Likewise.
10370         * sysdeps/i386/configure: Regenerated.
10371         * sysdeps/i386/i686/multiarch/Makefile
10372         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10373         [$(subdir) = math].
10374         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10375         code unconditional.
10376         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10377         Likewise.
10378         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10379         Likewise.
10380         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10381         Likewise.
10382         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10383         test.
10384         (libc_cv_cc_sse2avx): Likewise.
10385         * sysdeps/x86_64/configure: Regenerated.
10386         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10387         unconditional.
10388         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10389         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10390         unconditional.
10391         (_dl_runtime_profile)
10392         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10393         conditional code.
10394         * sysdeps/x86_64/fpu/multiarch/Makefile
10395         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10396         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10397         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10398         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10399         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10400         * sysdeps/x86_64/fpu/multiarch/e_log.c
10401         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10402         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10403         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10404         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10405         Likewise.
10406         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10407         Likewise.
10408         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10409         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10410         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10411         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10412         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10413         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10414         (HAVE_SSE2AVX_SUPPORT): Likewise.
10415
10416 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10417
10418         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10419         instead of #pragma optimize.
10420
10421 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10422
10423         [BZ #17195]
10424         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10425         as is similarly done in systrim and _int_free already.
10426
10427 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10428
10429         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10430
10431 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10432
10433         [BZ #19088]
10434         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10435         <limits.h>.
10436         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10437         overflows but exception would not result from cast.
10438         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10439         and <limits.h>.
10440         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10441         overflows but exception would not result from cast.
10442         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10443         <limits.h>.
10444         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10445         overflows but exception would not result from cast.
10446         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10447         <limits.h>.
10448         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10449         overflows but exception would not result from cast.
10450         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10451         <limits.h>.
10452         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10453         overflows but exception would not result from cast.
10454         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10455         <limits.h>.
10456         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10457         overflows but exception would not result from cast.
10458         * math/libm-test.inc (lround_test_data): Add more tests.
10459         (llround_test_data): Likewise.
10460
10461 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10462
10463         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10464         (CFLAGS-ialloc.c): Ditto.
10465         (CFLAGS-scheck.c): Ditto.
10466
10467 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10468
10469         [BZ #19086]
10470         * manual/filesys.texi (Storage Allocation): Fix argument order for
10471         posix_fallocate64.
10472
10473 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10474
10475         [BZ #19085]
10476         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10477         exponent below 48 inside case for non-overflowing exponent.
10478         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10479
10480 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10481
10482         * iconvdata/cp737.h (from_idx): Add const.
10483         * iconvdata/cp775.h (from_idx): Likewise.
10484
10485 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10486
10487         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10488         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10489         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10490
10491         [BZ #19079]
10492         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10493         file, conditioned on [!_LP64].
10494         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10495         [!_LP64] (__lround): Do not define as function or alias.
10496         [!_LP64] (lround): Likewise.
10497         [!_LP64] (__lroundl): Likewise.
10498         [!_LP64] (lroundl): Likewise.
10499         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10500         macro.
10501         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10502         Likewise.
10503
10504 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10505
10506         * math/libm-test.inc (lrint_test_data): Add more tests.
10507         (llrint_test_data): Likewise.
10508         (lround_test_data): Likewise.
10509         (llround_test_data): Likewise.
10510
10511         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10512         (llrint_test_data): Add tests used for lrint.
10513
10514         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10515         test.
10516         * sysdeps/i386/configure: Regenerated.
10517         * sysdeps/i386/i686/multiarch/Makefile
10518         [$(config-cflags-sse4) = yes]: Make code unconditional.
10519         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10520         Likewise.
10521         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10522         Likewise.
10523         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10524         test.
10525         * sysdeps/x86_64/configure: Regenerated.
10526         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10527         Make code unconditional.
10528         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10529         Likewise.
10530         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10531         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10532
10533         * scripts/rpm2dynsym.sh: Remove file.
10534
10535 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10536
10537         * configure.ac (libc_cv_cxx_thread_local): Define.
10538         * configure: Regenerate.
10539         * config.make.in (have-cxx-thread_local): Define.
10540         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10541         (LDLIBS-tst-thread_local1): Define.
10542         (tests): Add tst-thread_local1.
10543         [have-cxx-thread_local != yes] (tests-unsupported): Add
10544         tst-thread_local1.
10545         * nptl/tst-thread_local1.cc: New file.
10546
10547 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10548
10549         [BZ #19078]
10550         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10551         (u_thres): Likewise.
10552         (__expl): Determine whether to call __kernel_standard_l based on
10553         value of result, not argument.
10554
10555         * math/libm-test.inc (scalb_test_data): Add more expectations for
10556         the "inexact" exception.
10557
10558         [BZ #19077]
10559         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10560         0.0L for argument 1.0L.
10561
10562         [BZ #19076]
10563         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10564         constant 0.0L when computing infinite result.
10565
10566 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10567
10568         [BZ #10432]
10569         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10570         malloc_usable_size.
10571
10572 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10573
10574         [BZ #19018]
10575         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10576         Mangle function pointer before storing it.
10577         (__call_tls_dtors): Demangle function pointer before calling it.
10578
10579 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10580
10581         [BZ #19012]
10582         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10583         Clean up on failure.
10584
10585 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10586
10587         [BZ #19071]
10588         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10589         long int variable to store possibly incremented high part of
10590         mantissa.
10591         * math/libm-test.inc (lround_test_data): Add tests used for
10592         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10593         for tests requiring 64-bit long.  Do not condition tests on
10594         [TEST_FLOAT] unnecessarily.
10595         (llround_test_data): Add tests used for lround.  Add another
10596         expectation for the "inexact" exception.  Do not condition tests
10597         on [TEST_FLOAT] unnecessarily.
10598
10599         [BZ #887]
10600         [BZ #19049]
10601         [BZ #19050]
10602         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10603         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10604         <fix-int-fp-convert-zero.h>.
10605         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10606         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10607         <fix-int-fp-convert-zero.h>.
10608         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10609         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10610         <fix-int-fp-convert-zero.h>.
10611         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10612         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10613         <fix-int-fp-convert-zero.h>.
10614         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10615         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10616         <fix-int-fp-convert-zero.h>.
10617         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10618         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10619         <fix-int-fp-convert-zero.h>.
10620         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10621         * sysdeps/ieee754/flt-32/s_erff.c: Include
10622         <fix-int-fp-convert-zero.h>.
10623         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10624         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10625         <fix-int-fp-convert-zero.h>.
10626         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10627         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10628         <fix-int-fp-convert-zero.h>.
10629         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10630         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10631         <fix-int-fp-convert-zero.h>.
10632         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10633         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10634         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10635         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10636         file.
10637         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10638
10639 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10640
10641         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10642
10643 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10644
10645         [BZ #19059]
10646         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10647         overflowing computation.
10648         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10649         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10650         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10651         Likewise.
10652         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10653         Likewise.
10654         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10655         Likewise.
10656         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10657         Likewise.
10658         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10659         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10660         Likewise.
10661         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10662         Likewise.
10663         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10664
10665         * nss/rewrite_field.c (__nss_rewrite_field): Use
10666         internal_function.
10667         * nss/valid_field.c (__nss_valid_field): Likewise.
10668         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10669
10670 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10671
10672         [BZ #18724]
10673         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10674         (__nss_invalid_field_characters, __nss_valid_field)
10675         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10676         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10677         tst-field.c: New file.
10678         * nss/Makefile (routines): Add valid_field, rewrite_field.
10679         (tests-static): Define unconditionally.
10680         (tests): Include tests-static.
10681         [build-static-nss] (tests-static): Use append.
10682         [build-static-nss] (tests): Remove modification.
10683         * nss/getent.c (print_group): Call putgrent.  Report error.
10684         (print_gshadow): Call putsgent.  Report error.
10685         (print_passwd): Call putpwent.  Report error.
10686         (print_shadow): Call putspent.  Report error.
10687         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10688         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10689         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10690         name, password, directory, shell fields for valid syntax.  Rewrite
10691         GECOS field to match syntax.
10692         * pwd/Makefile (tests): Add tst-putpwent.
10693         * pwd/tst-putpwent.c: New file.
10694         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10695         Check grName, grpasswd, gr_mem fields for valid syntax.
10696         Change loop variable i to size_t.
10697         * grp/Makefile (tests): Add tst-putgrent.
10698         * grp/tst-putgrent.c: New file.
10699         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10700         valid syntax.
10701         * shadow/Makefile (tests): Add tst-putspent.
10702         * shadow/tst-putspent.c: New file.
10703         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10704         sg_mem fields for valid syntax.
10705         * gshadow/Makefile (tests): Add tst-putsgent.
10706         * gshadow/tst-putsgent.c: New file.
10707
10708 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10709
10710         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10711         assembly instructions.
10712
10713 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10714
10715         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10716         prefix from operands.
10717
10718 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10719
10720         [BZ #16347]
10721         [BZ #19046]
10722         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10723         <libc-internal.h>.
10724         (MAXLGM): Do not use diagnostic control macros.
10725         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10726         threshold for ldbl-128ibm.
10727         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10728         instead of multiplying by log then subtracting.
10729         * math/auto-libm-test-in: Add more tests of lgamma.
10730         * math/auto-libm-test-out: Regenerated.
10731
10732         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10733         (TYPE_HEX_DIG): Likewise.
10734         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10735         precisions when printing floating-point numbers.
10736         (check_float_internal): Likewise.
10737
10738 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10739
10740         [BZ #16620]
10741         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10742         of log (10) rounded downward to 48 bits.
10743         (log10_low): Use corresponding low part of log (10).
10744
10745         [BZ #19032]
10746         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10747         compute result as (x - x) / (x - x) not as 0 / 0.
10748         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10749         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10750
10751         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10752         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10753         and expm1.
10754         * math/auto-libm-test-out: Regenerated.
10755         * math/libm-test.inc (acos_test_data): Add more tests.
10756         (asin_test_data): Likewise.
10757         (asinh_test_data): Likewise.
10758         (atan_test_data): Likewise.
10759         (atanh_test_data): Likewise.
10760         (atan2_test_data): Likewise.
10761         (cbrt_test_data): Likewise.
10762         (ceil_test_data): Likewise.
10763         (copysign_test_data): Likewise.
10764         (cos_test_data): Likewise.
10765         (cosh_test_data): Likewise.
10766         (erf_test_data): Likewise.
10767         (erfc_test_data): Likewise.
10768         (exp_test_data): Likewise.
10769         (exp10_test_data): Likewise.
10770         (exp2_test_data): Likewise.
10771         (expm1_test_data): Likewise.
10772         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10773
10774 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10775
10776         [BZ #19006]
10777         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10778         to ...
10779         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10780         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10781         to ...
10782         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10783         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10784         to ...
10785         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10786         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10787         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10788         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10789         to ...
10790         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10791         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10792         Moved to ...
10793         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10794         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10795         Moved to ...
10796         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10797         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10798         to ...
10799         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10800         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10801         Moved to ...
10802         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10803         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10804         to ...
10805         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10806         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10807         Removed.
10808         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10809         Likewise.
10810         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10811         Likewise.
10812         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10813         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10814         Likewise.
10815         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10816         Likewise.
10817         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10818         Likewise.
10819         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10820         Likewise.
10821         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10822         Likewise.
10823         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10824         Likewise.
10825         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10826         Likewise.
10827         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10828         Likewise.
10829         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10830         Likewise.
10831         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10832         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10833         Likewise.
10834         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10835         Likewise.
10836         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10837         Likewise.
10838         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10839         Likewise.
10840         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10841         Likewise.
10842         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10843         Replace ../i486/pthread_cond_timedwait.S with
10844         ../pthread_cond_timedwait.S.
10845
10846 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10847
10848         * math/libm-test.inc (acos_test_data): Refine expectations for
10849         errno and "inexact" exceptions.
10850         (acosh_test_data): Likewise.
10851         (asin_test_data): Likewise.
10852         (asinh_test_data): Likewise.
10853         (atan_test_data): Likewise.
10854         (atanh_test_data): Likewise.
10855         (atan2_test_data): Likewise.
10856         (cbrt_test_data): Likewise.
10857         (ceil_test_data): Likewise.
10858         (copysign_test_data): Likewise.
10859         (cosh_test_data): Likewise.
10860         (erf_test_data): Likewise.
10861         (erfc_test_data): Likewise.
10862         (exp_test_data): Likewise.
10863         (exp10_test_data): Likewise.
10864         (exp2_test_data): Likewise.
10865         (expm1_test_data): Likewise.
10866         (fabs_test_data): Likewise.
10867         (floor_test_data): Likewise.
10868         (fma_test_data): Likewise.
10869         (fmax_test_data): Likewise.
10870         (fmin_test_data): Likewise.
10871         (fmod_test_data): Likewise.
10872         (fpclassify_test_data): Likewise.
10873         (frexp_test_data): Likewise.
10874         (hypot_test_data): Likewise.
10875         (ilogb_test_data): Likewise.
10876         (isgreater_test_data): Likewise.
10877         (isgreaterequal_test_data): Likewise.
10878         (isinf_test_data): Likewise.
10879         (isless_test_data): Likewise.
10880         (islessequal_test_data): Likewise.
10881         (islessgreater_test_data): Likewise.
10882         (isnan_test_data): Likewise.
10883         (isnormal_test_data): Likewise.
10884         (issignaling_test_data): Likewise.
10885         (isunordered_test_data): Likewise.
10886         (j0_test_data): Likewise.
10887         (j1_test_data): Likewise.
10888         (jn_test_data): Likewise.
10889         (lgamma_test_data): Likewise.
10890         (lrint_test_data): Likewise.
10891         (llrint_test_data): Likewise.
10892         (log_test_data): Likewise.
10893         (log10_test_data): Likewise.
10894         (log1p_test_data): Likewise.
10895         (log2_test_data): Likewise.
10896         (logb_test_data): Likewise.
10897         (lround_test_data): Likewise.
10898         (llround_test_data): Likewise.
10899         (modf_test_data): Likewise.
10900         (nearbyint_test_data): Likewise.
10901         (nextafter_test_data): Likewise.
10902         (nexttoward_test_data): Likewise.
10903         (pow_test_data): Likewise.
10904         (remainder_test_data): Likewise.
10905         (remquo_test_data): Likewise.
10906         (rint_test_data): Likewise.
10907         (round_test_data): Likewise.
10908         (signbit_test_data): Likewise.
10909         (sinh_test_data): Likewise.
10910         (sqrt_test_data): Likewise.
10911         (tanh_test_data): Likewise.
10912         (tgamma_test_data): Likewise.
10913         (trunc_test_data): Likewise.
10914         (y0_test_data): Likewise.
10915         (y1_test_data): Likewise.
10916         (yn_test_data): Likewise.
10917         (significand_test_data): Likewise.
10918
10919 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10920
10921         * manual/filesys.texi (Storage Allocation): Document that
10922         posix_fallocate emulation fails when fd is open with O_WRONLY.
10923
10924 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10925
10926         [BZ #19016]
10927         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10928         allow more cases with X^2 + Y^2 >= 0.5.
10929         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10930         normal element in sum instead of special-casing based on values of
10931         arguments.
10932         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10933         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10934         -1 as normal element in sum instead of special-casing based on
10935         values of arguments.
10936         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10937         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10938         (__x2y2m1): Update comment.
10939         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10940         as normal element in sum instead of special-casing based on values
10941         of arguments.
10942         * math/s_clog.c (__clog): Handle more cases using log1p without
10943         hypot.
10944         * math/s_clog10.c (__clog10): Likewise.
10945         * math/s_clog10f.c (__clog10f): Likewise.
10946         * math/s_clog10l.c (__clog10l): Likewise.
10947         * math/s_clogf.c (__clogf): Likewise.
10948         * math/s_clogl.c (__clogl): Likewise.
10949         * math/auto-libm-test-in: Add more tests of clog and clog10.
10950         * math/auto-libm-test-out: Regenerated.
10951         * sysdeps/i386/fpu/libm-test-ulps: Update.
10952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10953
10954 2015-09-28  Martin Sebor  <msebor@redhat.com>
10955
10956         [BZ #18969]
10957         * string/Makefile (LOCALES): Define.
10958         (gen-locales.mk): Include.
10959         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10960         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10961         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10962         on setlocale failure.
10963
10964 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10965
10966         [BZ #18985]
10967         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10968         (__strftime_internal): Likewise.
10969         * time/tst-strftime.c (do_bz18985): New test.
10970         (do_test): Call it.
10971
10972 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10973
10974         [BZ #18956]
10975         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10976         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10977         extracting high part.
10978         * math/auto-libm-test-in: Add another test of pow.
10979         * math/auto-libm-test-out: Regenerated.
10980         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10981
10982 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10983
10984         [BZ #18825]
10985         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10986         New macro.
10987         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10988         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10989         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10990         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10991         DBL_NARROW_EVAL, reloading the PIC register as needed.
10992         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10993         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10994         FLT_NARROW_EVAL.  Use separate return path for case when first
10995         argument is NaN.
10996         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10997         DEFINE_LDBL_MIN.
10998         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10999         PIC register.
11000         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11001         math_check_force_underflow_nonneg.
11002         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11003         underflow for subnormal result.
11004         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11005         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11006         math_check_force_underflow_nonneg.
11007         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11008         math_check_force_underflow.
11009         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11010         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11011         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11012         DEFINE_LDBL_MIN.
11013         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11014         * math/auto-libm-test-in: Add more tests of pow.
11015         * math/auto-libm-test-out: Regenerated.
11016
11017 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11018
11019         * nss/bug17079.c (init_test_items): Add diagnostic for
11020         inconsistent entries.
11021         (test_buffer_size): Skip inconsistent entries.
11022
11023 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11024
11025         [BZ #13304]
11026         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11027         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11028         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11029
11030         [BZ #13304]
11031         * sysdeps/microblaze/s_fma.c: New file.
11032         * sysdeps/microblaze/s_fmaf.c: Likewise.
11033         * sysdeps/microblaze/sfp-machine.h: Likewise.
11034
11035 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11036
11037         [BZ #17250]
11038         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11039         member.
11040
11041 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11042
11043         [BZ #18803]
11044         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11045         (MO): New macro.
11046         (__ieee754_hypot) [PIC]: Load PIC register.
11047         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11048         DBL_NARROW_EVAL.
11049         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11050         math_check_force_underflow_nonneg in case where result might be
11051         tiny.
11052         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11053         Likewise.
11054         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11055         Likewise.
11056         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11057         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11058         * math/auto-libm-test-in: Add more tests of hypot.
11059         * math/auto-libm-test-out: Regenerated.
11060
11061 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11062
11063         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11064
11065 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11066
11067         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11068         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11069         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11070         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11071         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11072         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11073         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11074
11075         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11076         LOAD_PIC_REG.
11077
11078         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11079         (FLT_CHECK_FORCE_UFLOW): Likewise.
11080         (DBL_CHECK_FORCE_UFLOW): Likewise.
11081         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11082         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11083         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11084         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11085         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11086         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11087         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11088         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11089         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11090         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11091         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11092         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11093         (flt_min): Replace with use of DEFINE_FLT_MIN.
11094         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11095         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11096         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11097         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11098         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11099         (flt_min): Replace with use of DEFINE_FLT_MIN.
11100         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11101         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11102         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11103         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11104         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11105         (flt_min): Replace with use of DEFINE_FLT_MIN.
11106         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11107         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11108         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11109         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11110         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11111         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11112         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11113         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11114         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11115         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11116         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11117         (flt_min): Replace with use of DEFINE_FLT_MIN.
11118         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11119         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11120         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11121         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11122         main computation.
11123         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11124         (flt_min): Replace with use of DEFINE_FLT_MIN.
11125         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11126         main computation.
11127         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11128         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11129         (MO): New macro.
11130         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11131         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11132         (flt_min): Replace with use of DEFINE_FLT_MIN.
11133         (MO): New macro.
11134         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11135         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11136         (__log1pl): Use MO.
11137
11138         [BZ #19003]
11139         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11140         $(config-cflags-nofma).
11141
11142 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11143
11144         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11145
11146 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11147
11148         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11149         (TWO127): Likewise.
11150
11151         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11152         (min_of_type): Likewise.
11153         (math_check_force_underflow): Likewise.
11154         (math_check_force_underflow_nonneg): Likewise.
11155         (math_check_force_underflow_complex): Likewise.
11156         * math/e_exp2l.c (__ieee754_exp2l): Use
11157         math_check_force_underflow_nonneg.
11158         * math/k_casinh.c (__kernel_casinh): Likewise.
11159         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11160         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11161         * math/s_catan.c (__catan): Use
11162         math_check_force_underflow_complex.
11163         * math/s_catanf.c (__catanf): Likewise.
11164         * math/s_catanh.c (__catanh): Likewise.
11165         * math/s_catanhf.c (__catanhf): Likewise.
11166         * math/s_catanhl.c (__catanhl): Likewise.
11167         * math/s_catanl.c (__catanl): Likewise.
11168         * math/s_ccosh.c (__ccosh): Likewise.
11169         * math/s_ccoshf.c (__ccoshf): Likewise.
11170         * math/s_ccoshl.c (__ccoshl): Likewise.
11171         * math/s_cexp.c (__cexp): Likewise.
11172         * math/s_cexpf.c (__cexpf): Likewise.
11173         * math/s_cexpl.c (__cexpl): Likewise.
11174         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11175         * math/s_clog10.c (__clog10): Likewise.
11176         * math/s_clog10f.c (__clog10f): Likewise.
11177         * math/s_clog10l.c (__clog10l): Likewise.
11178         * math/s_clogf.c (__clogf): Likewise.
11179         * math/s_clogl.c (__clogl): Likewise.
11180         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11181         * math/s_csinf.c (__csinf): Likewise.
11182         * math/s_csinh.c (__csinh): Likewise.
11183         * math/s_csinhf.c (__csinhf): Likewise.
11184         * math/s_csinhl.c (__csinhl): Likewise.
11185         * math/s_csinl.c (__csinl): Likewise.
11186         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11187         * math/s_csqrtf.c (__csqrtf): Likewise.
11188         * math/s_csqrtl.c (__csqrtl): Likewise.
11189         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11190         * math/s_ctanf.c (__ctanf): Likewise.
11191         * math/s_ctanh.c (__ctanh): Likewise.
11192         * math/s_ctanhf.c (__ctanhf): Likewise.
11193         * math/s_ctanhl.c (__ctanhl): Likewise.
11194         * math/s_ctanl.c (__ctanl): Likewise.
11195         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11196         instead of volatile.
11197         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11198         math_check_force_underflow.
11199         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11200         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11201         volatile when forcing underflow.
11202         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11203         math_check_force_underflow_nonneg.
11204         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11205         Likewise.
11206         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11207         math_check_force_underflow.
11208         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11209         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11210         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11211         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11212         math_check_force_underflow_nonneg.
11213         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11214         math_check_force_underflow.
11215         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11216         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11217         instead of volatile.
11218         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11219         math_check_force_underflow.
11220         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11221         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11222         math_check_force_underflow_nonneg.
11223         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11224         math_check_force_underflow.
11225         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11226         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11227         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11228         math_check_force_underflow_nonneg.
11229         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11230         Likewise.
11231         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11232         math_check_force_underflow.
11233         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11234         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11235         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11236         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11237         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11238         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11239         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11240         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11241         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11242         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11243         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11244         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11245         Likewise.
11246         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11247         math_check_force_underflow_nonneg.
11248         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11249         Likewise.
11250         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11251         math_check_force_underflow.
11252         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11253         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11254         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11255         Likewise.
11256         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11257         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11258         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11259         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11260         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11261         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11262         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11263         instead of volatile.
11264         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11265         math_check_force_underflow.
11266         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11267         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11268         math_check_force_underflow.
11269         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11270         Likewise.
11271         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11272         Use math_check_force_underflow_nonneg.
11273         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11274         math_check_force_underflow.
11275         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11276         Likewise.
11277         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11278         Likewise.
11279         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11280         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11281         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11282         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11283         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11284         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11285         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11286         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11287         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11288         math_check_force_underflow_nonneg.
11289         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11290         math_check_force_underflow.
11291         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11292         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11293         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11294         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11295         math_check_force_underflow_nonneg.
11296         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11297         math_check_force_underflow.
11298         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11299         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11300         instead of volatile.
11301         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11302         math_check_force_underflow.
11303
11304         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11305         * stdlib/strtod_l.c: Include <math_private.h>.
11306         (overflow_value): Use math_narrow_eval.
11307         (underflow_value): Likewise.
11308         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11309         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11310         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11311         (__ieee754_gamma_r): Likewise.
11312         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11313         Likewise.
11314         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11315         Likewise.
11316         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11317         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11318         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11319         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11320         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11321         (__ieee754_gammaf_r): Likewise.
11322         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11323         Likewise.
11324         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11325         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11326         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11327         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11328         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11329         volatile.
11330         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11331         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11332         math_narrow_eval.
11333         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11334         Likewise.
11335         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11336         Likewise.
11337         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11338         Likewise.
11339         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11340         volatile.
11341         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11342         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11343         math_narrow_eval.
11344         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11345         Likewise.
11346         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11347         Likewise.
11348
11349 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11350
11351         * nptl/Versions: Remove ignored symbols.
11352
11353 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11354
11355         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11356         * nss/Makefile (tests): Update.
11357
11358 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11359
11360         * nss/bug18287.c: New file.
11361         * nss/Makefile (tests): Add bug18287.
11362
11363 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11364
11365         * mach/Versions (__mach_host_self_): Add symbol.
11366
11367 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11368
11369         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11370         vm_page_size.
11371
11372 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11373
11374         Really fix sysdeps/i386/fpu/s_scalbn.S build
11375
11376         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11377         (libc: GLIBC_2_22): Remove unused version set.
11378
11379 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11380
11381         * config.make.in (enable-timezone-tools): New variable.
11382         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11383         (enable_timezone_tools): Export to generated files.
11384         * configure: Regenerate.
11385         * INSTALL: Regenerate.
11386         * manual/install.texi (--disable-timezone-tools): Document new flag.
11387         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11388         ifeq ($(enable-timezone-tools),yes) check.
11389
11390 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11391
11392         * timezone/Makefile: Revert previous change.
11393
11394         [BZ #18980]
11395         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11396         (DEFINE_DBL_MIN): Likewise.
11397         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11398         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11399         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11400         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11401         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11402         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11403         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11404         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11405         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11406         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11407         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11408         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11409         (flt_min): Replace with use of DEFINE_FLT_MIN.
11410         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11411         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11412         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11413         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11414         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11415         (flt_min): Replace with use of DEFINE_FLT_MIN.
11416         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11417         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11418         (flt_min): Replace with use of DEFINE_FLT_MIN.
11419         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11420         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11421         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11422         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11423         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11424         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11425         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11426         (__ieee754_pow): Use DBL_NARROW_EVAL.
11427         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11428         (__ieee754_powf): Use FLT_NARROW_EVAL.
11429         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11430         (__ieee754_expf_sse2): Convert double-precision result to single
11431         precision.
11432         * sysdeps/i386/fpu/libm-test-ulps: Update.
11433
11434 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11435
11436         * timezone/Makefile: Ignore unused variable errors due to private.h
11437         (time_t_min) and (time_t_max).
11438         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11439         Likewise.
11440
11441 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11442
11443         [BZ #18981]
11444         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11445         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11446         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11447         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11448         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11449         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11450         (__scalbn): Use DBL_NARROW_EVAL.
11451         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11452         (__scalbnf): Use FLT_NARROW_EVAL.
11453
11454 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11455
11456         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11457         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11458         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11459         * stdio-common/printf_fp.c (___printf_fp):
11460         Use signbit to get the sign. Use isinf macro to allow inlining.
11461         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11462         * stdio-common/printf_size.c (__printf_size): Likewise.
11463
11464 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11465
11466         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11467
11468 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11469
11470         [BZ #18980]
11471         * sysdeps/generic/math_private.h: Include <float.h>.
11472         (math_narrow_eval): New macro.
11473         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11474         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11475         math_narrow_eval on overflowing return value.
11476         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11477         Likewise.
11478         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11479         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11480         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11481         Likewise.
11482         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11483
11484 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11485
11486         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11487         * math/Makefile: Remove isinf_ns.c.
11488         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11489         * math/multc3.c (__multc3): Likewise.
11490         * math/s_casin.c (__casin): Likewise.
11491         * math/s_casinf.c (__casinf): Likewise.
11492         * math/s_casinl.c (__casinl): Likewise.
11493         * math/s_cproj.c (__cproj): Likewise.
11494         * math/s_cprojf.c (__cprojf): Likewise.
11495         * math/s_cprojl.c (__cprofl): Likewise.
11496         * math/s_ctan.c (__ctan): Likewise.
11497         * math/s_ctanf.c (__ctanf): Likewise.
11498         * math/s_ctanh.c (__ctanh): Likewise.
11499         * math/s_ctanhf.c (__ctanhf): Likewise.
11500         * math/s_ctanhl.c (__ctanhl): Likewise.
11501         * math/s_ctanl.c (__ctanl): Likewise.
11502         * math/w_fmod.c (__fmod): Likewise.
11503         * math/w_fmodf.c (__fmodf): Likewise.
11504         * math/w_fmodl.c (_fmodl): Likewise.
11505         * math/w_remainder.c (__remainder): Likewise.
11506         * math/w_remainderf.c (__remainderf): Likewise.
11507         * math/w_remainderl.c (__remainderl): Likewise.
11508         * math/w_scalb.c (__scalb): Likewise.
11509         * math/w_scalbf.c (__scalbf): Likewise.
11510         * math/w_scalbl.c (__scalbl): Likewise.
11511         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11512         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11513         with isinf.
11514         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11515         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11516         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11517         __isinf_nsf with isinf.
11518         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11519         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11520         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11521         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11522         with isinf.
11523         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11524         __isinf_nsl with isinf.
11525         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11526         with isinf.
11527         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11528         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11529         __isinf_nsl with isinf.
11530         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11531         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11532         with isinf.
11533
11534 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11535
11536         * resolv/base64.c (rcsid): Remove unused static.
11537         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11538         static.  (tqpi1): Likewise.
11539         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11540         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11541         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11542         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11543         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11544         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11545         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11546         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11547         Likewise.
11548
11549 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11550
11551         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11552         <nptl/pthreadP.h>.
11553         (_longjmp_unwind): Use __libc_ptf_call.
11554         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11555
11556 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11557
11558         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11559         * sysdeps/arm/__longjmp.S: Likewise.
11560
11561 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11562
11563         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11564         Use __builtin_signbit.
11565         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11566         Use __builtin_signbitf.
11567         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11568         Use __builtin_signbitl.
11569         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11570         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11571
11572 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11573
11574         [BZ #15367]
11575         [BZ #17441]
11576
11577         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11578         * math/math.h (fpclassify): Use __builtin_fpclassify when
11579         available.  (signbit): Use __builtin_signbit(f/l).
11580         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11581         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11582         (isinf): Use __builtin_isinf_sign.
11583
11584 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11585
11586         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11587         * benchtests/bench-math-inlines.c: New benchmark.
11588         * benchtests/bench-util.h: New file.
11589         * benchtests/bench-util.c: New file.
11590         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11591
11592 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11593
11594         * elf/tst-dlmopen1.c: Define TEST_SO.
11595         (do_test): Use TEST_SO.
11596
11597         * elf/dl-load.c: Include libc-internal.h.
11598         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11599
11600 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11601
11602         [BZ #17887]
11603         * time/strptime_l.c (__strptime_internal): Make %z accept
11604         [+-]HH:MM time zones.
11605
11606 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11607
11608         [BZ #17886]
11609         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11610         valid time zone.
11611
11612 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11613
11614         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11615         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11616         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11617         (__ASSUME_FDATASYNC): Delete.
11618
11619 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11620
11621         * conform/linknamespace.pl: Require weak undefined symbols to be
11622         in the standard namespace.
11623         (%strong_syms): Rename to %seen_syms.
11624         (%strong_seen): Rename to %seen_where.
11625
11626 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11627
11628         [BZ #18970]
11629         * misc/error.c (error): Replace pthread_setcancelstate with
11630         __pthread_setcancelstate.
11631         (error_at_line): Likewise.
11632         * posix/wordexp.c (parse_comm): Likewise.
11633         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11634         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11635         (__pthread_setcancelstate): This.
11636         (pthread_setcancelstate): Add an alias.
11637         * nptl/nptl-init.c (pthread_functions): Replace
11638         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11639         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11640         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11641         hidden_proto.
11642         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11643         it with hidden_def.
11644         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11645         (pthread_setcancelstate): Renamed to ...
11646         (__pthread_setcancelstate): This.
11647         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11648         __libc_ptf_call with __pthread_setcancelstate.
11649
11650 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11651             Andreas Schwab  <schwab@suse.de>
11652
11653         [BZ #17118]
11654         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11655         result when imaginary part of argument is infinite using sine and
11656         cosine.
11657         * math/s_ctanf.c (__ctanf): Likewise.
11658         * math/s_ctanl.c (__ctanl): Likewise.
11659         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11660         of result when real part of argument is infinite using sine and
11661         cosine.
11662         * math/s_ctanhf.c (__ctanhf): Likewise.
11663         * math/s_ctanhl.c (__ctanhl): Likewise.
11664         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11665         (ctanh_test_data): Add more tests of ctanh.
11666
11667 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11668
11669         [BZ #15384]
11670         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11671         bit-mask as in subtraction.
11672         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11673         Likewise.
11674         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11675         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11676         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11677
11678         [BZ #18951]
11679         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11680         underflow exception for small results.
11681         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11682         Likewise.
11683         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11684         Likewise.
11685         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11686         Likewise.
11687         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11688         Likewise.
11689         * math/auto-libm-test-in: Add more tests of tgamma.
11690         * math/auto-libm-test-out: Regenerated.
11691
11692 2015-09-17  Andreas Schwab  <schwab@suse.de>
11693
11694         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11695
11696 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11697
11698         [BZ #18977]
11699         * math/bits/mathcalls.h
11700         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11701         not declare.
11702         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11703         Likewise.
11704         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11705         Likewise.
11706         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11707         Likewise.
11708         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11709         Likewise.
11710         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11711         Likewise.
11712         * conform/data/math.h-data
11713         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11714         function.
11715         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11716         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11717         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11718         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11719         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11720         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11721         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11722         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11723         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11724         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11725         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11726
11727         [BZ #6803]
11728         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11729         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11730         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11731         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11732         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11733         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11734         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11735         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11736         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11737         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11738         Likewise.
11739         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11740         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11741         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11742         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11743         long_double_symbol calls.
11744         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11745         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11746         strong alias of __ldexpl.
11747         (scalbnl): Define using long_double_symbol.
11748         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11749         Remove alias.
11750         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11751         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11752         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11753         (scalbln_test_data): Add more errno expectations.
11754
11755 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11756
11757         Cache the host port like we cache the task port.  This way we do not
11758         need to call the kernel just to get the port.  Furthermore, we no
11759         longer increase the reference count on every invocation of
11760         `mach_host_self'.
11761
11762         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11763         Protect declarations against the macro expansion.
11764         * mach/mach_init.c (__mach_host_self_): New variable.
11765         (mach_init): Initialize `__mach_host_self_'.
11766         * mach/mach_init.h (__mach_host_self_): New declaration.
11767         (__mach_host_self, mach_host_self): New macros.
11768         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11769         Release reference.
11770
11771 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11772
11773         [BZ #4404]
11774         * po/de.po: Update from Translation Project.
11775
11776         [BZ #16415]
11777         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11778         (__expm1l): Remove code to handle positive infinity and overflow.
11779         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11780         variable.
11781         (__expm1l): Remove code to handle positive infinity and overflow.
11782
11783 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11784             Paul Pluzhnikov  <ppluzhnikov@google.com>
11785
11786         [BZ #18872]
11787         * stdio-common/Makefile (tst-printf-bz18872): New test.
11788         (tst-printf-bz18872-mem.out): Likewise.
11789         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11790         * stdio-common/vfprintf.c: Fix memory leaks.
11791
11792 2015-09-16  Andreas Schwab  <schwab@suse.de>
11793
11794         [BZ #17244]
11795         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11796         Remove extra va_start/va_end calls.
11797
11798         [BZ #17243]
11799         * posix/execl.c (execl): Add missing va_end.
11800         * posix/execle.c (execle): Likewise.
11801         * posix/execlp.c (execlp): Likewise.
11802
11803 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11804
11805         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11806         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11807
11808 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11809
11810         [BZ #18967]
11811         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11812         undefine around includes of <bits/mathcalls.h>.
11813         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11814         not declare function.
11815         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11816         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11817         (scalb): Likewise.
11818         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11819         not define macro.
11820         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11821         variable.
11822         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11823         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11824         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11825
11826         [BZ #18857]
11827         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11828         return non-finite argument without doing ordered comparisons on
11829         it.
11830
11831         [BZ #16296]
11832         * math/fenv.h (fegetround): Use __attribute_pure__.
11833         * include/fenv.h (__fegetround): Likewise.
11834
11835         [BZ #18595]
11836         * math/s_ctan.c (__ctan): Force underflow exception for results
11837         whose real or imaginary part has small absolute value.
11838         * math/s_ctanf.c (__ctanf): Likewise.
11839         * math/s_ctanh.c (__ctanh): Likewise.
11840         * math/s_ctanhf.c (__ctanhf): Likewise.
11841         * math/s_ctanhl.c (__ctanhl): Likewise.
11842         * math/s_ctanl.c (__ctanl): Likewise.
11843         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11844         and ctanh.  Add more tests of ctan and ctanh.
11845
11846         [BZ #15918]
11847         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11848         handling of cases where one argument is an infinity.
11849
11850         [BZ #18875]
11851         [BZ #18966]
11852         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11853         (MO): New macro.
11854         (__ieee754_exp10): For small results, force underflow exception
11855         and remove excess range and precision from return value.
11856         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11857         (MO): New macro.
11858         (__ieee754_exp10f): For small results, force underflow exception
11859         and remove excess range and precision from return value.
11860         * math/auto-libm-test-in: Add more tests of exp10.
11861         * math/auto-libm-test-out: Regenerated.
11862
11863 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11864
11865         [BZ #18875]
11866         [BZ #18961]
11867         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11868         (MO): New macro.
11869         (__ieee754_exp): For small results, force underflow exception and
11870         remove excess range and precision from return value.
11871         (__exp_finite): Likewise.
11872         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11873         (MO): New macro.
11874         (__ieee754_expf): For small results, force underflow exception and
11875         remove excess range and precision from return value.
11876         (__expf_finite): Likewise.
11877         * math/auto-libm-test-in: Add more tests of exp.
11878         * math/auto-libm-test-out: Regenerated.
11879
11880         [BZ #16521]
11881         [BZ #18875]
11882         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11883         small results.
11884         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11885         (MO): New macro.
11886         (__ieee754_exp2): For small results, force underflow exception and
11887         remove excess range and precision from return value.
11888         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11889         (MO): New macro.
11890         (__ieee754_exp2f): For small results, force underflow exception
11891         and remove excess range and precision from return value.
11892         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11893         (MO): New macro.
11894         (__ieee754_exp2l): Force underflow exception for small results.
11895         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11896         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11897         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11898         (MO): New macro.
11899         (__ieee754_exp2l): Force underflow exception for small results.
11900         * math/auto-libm-test-in: Add more tests or exp2.
11901         * math/auto-libm-test-out: Regenerated.
11902
11903 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11904
11905         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11906
11907         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11908         /dev/null.
11909
11910 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11911
11912         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11913         io fs process)): Drop spurious backslash.
11914
11915 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11916
11917         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11918         Use sysinfo system call instead of parsing /proc/meminfo.
11919         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11920         Likewise.
11921
11922 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11923
11924         [BZ #16985]
11925         * programs/localedef.c (main): Display argv[remaining] when
11926         output_path is NULL.
11927
11928 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11929
11930         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11931         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11932         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11933         tanh.
11934         * math/auto-libm-test-out: Regenerated.
11935         * sysdeps/i386/fpu/libm-test-ulps: Update.
11936         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11937         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11939
11940 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11941
11942         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11943         Use 'override' keyword to freeze the value here, preventing
11944         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11945
11946 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11947
11948         [BZ #14912]
11949         * sysdeps/aarch64/bits/atomic.h: Move to ...
11950         * sysdeps/aarch64/atomic-machine.h: ...here.
11951         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11952         _AARCH64_ATOMIC_MACHINE_H.
11953         * sysdeps/alpha/bits/atomic.h: Move to ...
11954         * sysdeps/alpha/atomic-machine.h: ...here.
11955         * sysdeps/arm/bits/atomic.h: Move to ...
11956         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11957         * bits/atomic.h: Move to ...
11958         * sysdeps/generic/atomic-machine.h: ...here.
11959         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11960         * sysdeps/i386/bits/atomic.h: Move to ...
11961         * sysdeps/i386/atomic-machine.h: ...here.
11962         * sysdeps/ia64/bits/atomic.h: Move to ...
11963         * sysdeps/ia64/atomic-machine.h: ...here.
11964         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11965         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11966         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11967         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11968         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11969         * sysdeps/microblaze/bits/atomic.h: Move to ...
11970         * sysdeps/microblaze/atomic-machine.h: ...here.
11971         * sysdeps/mips/bits/atomic.h: Move to ...
11972         * sysdeps/mips/atomic-machine.h: ...here.
11973         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11974         * sysdeps/powerpc/bits/atomic.h: Move to ...
11975         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11976         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11977         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11978         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11979         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11980         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11981         <atomic-machine.h> instead of <bits/atomic.h>.
11982         * sysdeps/s390/bits/atomic.h: Move to ...
11983         * sysdeps/s390/atomic-machine.h: ...here.
11984         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11985         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11986         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11987         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11988         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11989         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11990         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11991         * sysdeps/tile/bits/atomic.h: Move to ...
11992         * sysdeps/tile/atomic-machine.h: ...here.
11993         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11994         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11995         <sysdeps/tile/atomic-machine.h> instead of
11996         <sysdeps/tile/bits/atomic.h>.
11997         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11998         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11999         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12000         <sysdeps/tile/atomic-machine.h> instead of
12001         <sysdeps/tile/bits/atomic.h>.
12002         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12003         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12004         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12005         <sysdeps/arm/atomic-machine.h> instead of
12006         <sysdeps/arm/bits/atomic.h>.
12007         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12008         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12009         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12010         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12011         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12012         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12013         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12014         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12015         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12016         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12017         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12018         * sysdeps/x86_64/bits/atomic.h: Move to ...
12019         * sysdeps/x86_64/atomic-machine.h: ...here.
12020         * include/atomic.h: Include <atomic-machine.h> instead of
12021         <bits/atomic.h>.
12022
12023         * sysdeps/mips/mips32/libm-test-ulps: Update.
12024         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12025
12026         [BZ #18952]
12027         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12028         not convert non-integer negative arguments to int to determine the
12029         value of signgam.
12030         * math/auto-libm-test-in: Add more tests of lgamma.
12031         * math/auto-libm-test-out: Regenerated.
12032
12033         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12034         cosh, csqrt, erfc, expm1 and lgamma.
12035         * math/auto-libm-test-out: Regenerated.
12036         * sysdeps/i386/fpu/libm-test-ulps: Update.
12037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12038
12039 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12040
12041         [BZ #2542]
12042         [BZ #2543]
12043         [BZ #2558]
12044         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12045         __lgamma_neg for arguments from -28.0 to -2.0.
12046         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12047         __lgamma_negf for arguments from -15.0 to -2.0.
12048         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12049         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12050         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12051         Call __lgamma_negl for arguments from -33.0 to -2.0.
12052         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12053         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12054         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12055         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12056         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12057         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12058         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12059         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12060         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12061         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12062         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12063         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12064         (__lgamma_neg): Likewise.
12065         (__lgamma_negl): Likewise.
12066         (__lgamma_product): Likewise.
12067         (__lgamma_productl): Likewise.
12068         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12069         * math/auto-libm-test-in: Add more tests of lgamma.
12070         * math/auto-libm-test-out: Regenerated.
12071         * sysdeps/i386/fpu/libm-test-ulps: Update.
12072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12073
12074 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12075
12076         [BZ #18675]
12077         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12078
12079 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12080
12081         [BZ #14912]
12082         * bits/libc-lock.h: Move to ...
12083         * sysdeps/generic/libc-lock.h: ...here.
12084         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12085         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12086         * sysdeps/mach/hurd/libc-lock.h: ...here.
12087         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12088         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12089         * sysdeps/mach/bits/libc-lock.h: Move to ...
12090         * sysdeps/mach/libc-lock.h: ...here.
12091         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12092         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12093         * sysdeps/nptl/libc-lock.h: ...here.
12094         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12095         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12096         * sysdeps/nptl/libc-lockP.h: ...here.
12097         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12098         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12099         <bits/libc-lock.h>.
12100         * dirent/scandir-tail.c: Likewise.
12101         * dlfcn/dlerror.c: Likewise.
12102         * elf/dl-close.c: Likewise.
12103         * elf/dl-iteratephdr.c: Likewise.
12104         * elf/dl-lookup.c: Likewise.
12105         * elf/dl-open.c: Likewise.
12106         * elf/dl-support.c: Likewise.
12107         * elf/dl-writev.h: Likewise.
12108         * elf/rtld.c: Likewise.
12109         * grp/fgetgrent.c: Likewise.
12110         * gshadow/fgetsgent.c: Likewise.
12111         * gshadow/sgetsgent.c: Likewise.
12112         * iconv/gconv_conf.c: Likewise.
12113         * iconv/gconv_db.c: Likewise.
12114         * iconv/gconv_dl.c: Likewise.
12115         * iconv/gconv_int.h: Likewise.
12116         * iconv/gconv_trans.c: Likewise.
12117         * include/link.h: Likewise.
12118         * inet/getnameinfo.c: Likewise.
12119         * inet/getnetgrent.c: Likewise.
12120         * inet/getnetgrent_r.c: Likewise.
12121         * intl/bindtextdom.c: Likewise.
12122         * intl/dcigettext.c: Likewise.
12123         * intl/finddomain.c: Likewise.
12124         * intl/gettextP.h: Likewise.
12125         * intl/loadmsgcat.c: Likewise.
12126         * intl/localealias.c: Likewise.
12127         * intl/textdomain.c: Likewise.
12128         * libidn/idn-stub.c: Likewise.
12129         * libio/libioP.h: Likewise.
12130         * locale/duplocale.c: Likewise.
12131         * locale/freelocale.c: Likewise.
12132         * locale/newlocale.c: Likewise.
12133         * locale/setlocale.c: Likewise.
12134         * login/getutent_r.c: Likewise.
12135         * login/getutid_r.c: Likewise.
12136         * login/getutline_r.c: Likewise.
12137         * login/utmp-private.h: Likewise.
12138         * login/utmpname.c: Likewise.
12139         * malloc/mtrace.c: Likewise.
12140         * misc/efgcvt.c: Likewise.
12141         * misc/error.c: Likewise.
12142         * misc/fstab.c: Likewise.
12143         * misc/getpass.c: Likewise.
12144         * misc/mntent.c: Likewise.
12145         * misc/syslog.c: Likewise.
12146         * nis/nis_call.c: Likewise.
12147         * nis/nis_callback.c: Likewise.
12148         * nis/nss-default.c: Likewise.
12149         * nis/nss_compat/compat-grp.c: Likewise.
12150         * nis/nss_compat/compat-initgroups.c: Likewise.
12151         * nis/nss_compat/compat-pwd.c: Likewise.
12152         * nis/nss_compat/compat-spwd.c: Likewise.
12153         * nis/nss_nis/nis-alias.c: Likewise.
12154         * nis/nss_nis/nis-ethers.c: Likewise.
12155         * nis/nss_nis/nis-grp.c: Likewise.
12156         * nis/nss_nis/nis-hosts.c: Likewise.
12157         * nis/nss_nis/nis-network.c: Likewise.
12158         * nis/nss_nis/nis-proto.c: Likewise.
12159         * nis/nss_nis/nis-pwd.c: Likewise.
12160         * nis/nss_nis/nis-rpc.c: Likewise.
12161         * nis/nss_nis/nis-service.c: Likewise.
12162         * nis/nss_nis/nis-spwd.c: Likewise.
12163         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12164         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12165         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12166         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12167         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12168         * nis/nss_nisplus/nisplus-network.c: Likewise.
12169         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12170         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12171         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12172         * nis/nss_nisplus/nisplus-service.c: Likewise.
12173         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12174         * nis/ypclnt.c: Likewise.
12175         * nptl/libc_pthread_init.c: Likewise.
12176         * nss/getXXbyYY.c: Likewise.
12177         * nss/getXXent.c: Likewise.
12178         * nss/getXXent_r.c: Likewise.
12179         * nss/nss_db/db-XXX.c: Likewise.
12180         * nss/nss_db/db-netgrp.c: Likewise.
12181         * nss/nss_db/nss_db.h: Likewise.
12182         * nss/nss_files/files-XXX.c: Likewise.
12183         * nss/nss_files/files-alias.c: Likewise.
12184         * nss/nsswitch.c: Likewise.
12185         * posix/regex_internal.h: Likewise.
12186         * posix/wordexp.c: Likewise.
12187         * pwd/fgetpwent.c: Likewise.
12188         * resolv/res_hconf.c: Likewise.
12189         * resolv/res_libc.c: Likewise.
12190         * shadow/fgetspent.c: Likewise.
12191         * shadow/lckpwdf.c: Likewise.
12192         * shadow/sgetspent.c: Likewise.
12193         * socket/opensock.c: Likewise.
12194         * stdio-common/reg-modifier.c: Likewise.
12195         * stdio-common/reg-printf.c: Likewise.
12196         * stdio-common/reg-type.c: Likewise.
12197         * stdio-common/vfprintf.c: Likewise.
12198         * stdio-common/vfscanf.c: Likewise.
12199         * stdlib/abort.c: Likewise.
12200         * stdlib/cxa_atexit.c: Likewise.
12201         * stdlib/fmtmsg.c: Likewise.
12202         * stdlib/random.c: Likewise.
12203         * stdlib/setenv.c: Likewise.
12204         * string/strsignal.c: Likewise.
12205         * sunrpc/auth_none.c: Likewise.
12206         * sunrpc/bindrsvprt.c: Likewise.
12207         * sunrpc/create_xid.c: Likewise.
12208         * sunrpc/key_call.c: Likewise.
12209         * sunrpc/rpc_thread.c: Likewise.
12210         * sysdeps/arm/backtrace.c: Likewise.
12211         * sysdeps/generic/ldsodefs.h: Likewise.
12212         * sysdeps/generic/stdio-lock.h: Likewise.
12213         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12214         * sysdeps/i386/backtrace.c: Likewise.
12215         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12216         * sysdeps/m68k/backtrace.c: Likewise.
12217         * sysdeps/mach/hurd/cthreads.c: Likewise.
12218         * sysdeps/mach/hurd/dirstream.h: Likewise.
12219         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12220         * sysdeps/nptl/malloc-machine.h: Likewise.
12221         * sysdeps/nptl/stdio-lock.h: Likewise.
12222         * sysdeps/posix/dirstream.h: Likewise.
12223         * sysdeps/posix/getaddrinfo.c: Likewise.
12224         * sysdeps/posix/system.c: Likewise.
12225         * sysdeps/pthread/aio_suspend.c: Likewise.
12226         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12227         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12228         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12229         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12230         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12231         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12232         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12233         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12234         * sysdeps/unix/sysv/linux/system.c: Likewise.
12235         * sysdeps/x86_64/backtrace.c: Likewise.
12236         * time/alt_digit.c: Likewise.
12237         * time/era.c: Likewise.
12238         * time/tzset.c: Likewise.
12239         * wcsmbs/wcsmbsload.c: Likewise.
12240         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12241         instead of <bits/libc-lock.h> in comment.
12242
12243 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12244
12245         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12246         Only use .set mips2 if the current ISA is below mips2.
12247         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12248         Likewise.
12249         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12250         mips32r2 if the current ISA is below mips32r2.
12251         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12252         (TLS_IE): Updated to use the TLD_RDHWR macro.
12253         (TLS_LE): Likewise.
12254         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12255         __ASSEMBLER__ condition.
12256
12257 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12258
12259         Fix parallel build of before-compile targets.
12260
12261         * sysdeps/mach/Makefile ($(patsubst
12262         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12263         mach-before-compile target.
12264         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12265         io fs process)): Move rule to dedicated hurd-before-compile target.
12266
12267 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12268
12269         Fix rules generating headers in hurd/ and mach/ when initial make call
12270         has subdir= explicitly set.
12271
12272         * sysdeps/mach/Makefile ($(patsubst
12273         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12274         calling $(MAKE).
12275         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12276         io fs process)): Force subdir to hurd when calling $(MAKE).
12277         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12278         subdir to mach when calling $(MAKE).
12279
12280 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12281
12282         Check sysheaders when looking for Mach and Hurd headers
12283
12284         * sysdeps/mach/configure.ac: Add sysheaders check.
12285         * sysdeps/mach/configure: Regenerate.
12286         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12287         * sysdeps/mach/hurd/configure: Regenerate.
12288
12289 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12290
12291         [BZ #18921]
12292         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12293         Fix inverted sense of test of 'o_directory_works' value.
12294         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12295         Bernhard Voelker <mail@bernhard-voelker.de>.
12296
12297 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12298
12299         [BZ #14912]
12300         * bits/linkmap.h: Move to ...
12301         * sysdeps/generic/linkmap.h: ...here.
12302         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12303         * sysdeps/aarch64/linkmap.h: ...here.
12304         * sysdeps/arm/bits/linkmap.h: Move to ...
12305         * sysdeps/arm/linkmap.h: ...here.
12306         * sysdeps/hppa/bits/linkmap.h: Move to ...
12307         * sysdeps/hppa/linkmap.h: ...here.
12308         * sysdeps/ia64/bits/linkmap.h: Move to ...
12309         * sysdeps/ia64/linkmap.h: ...here.
12310         * sysdeps/mips/bits/linkmap.h: Move to ...
12311         * sysdeps/mips/linkmap.h: ...here.
12312         * sysdeps/s390/bits/linkmap.h: Move to ...
12313         * sysdeps/s390/linkmap.h: ...here.
12314         * sysdeps/sh/bits/linkmap.h: Move to ...
12315         * sysdeps/sh/linkmap.h: ...here.
12316         * sysdeps/x86/bits/linkmap.h: Move to ...
12317         * sysdeps/x86/linkmap.h: ...here.
12318         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12319
12320 2015-09-04  Andreas Schwab  <schwab@suse.de>
12321
12322         [BZ #18635]
12323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12324         (__makecontext): Terminate FDE before return label.
12325         (__novec_makecontext): Likewise.
12326
12327 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12328
12329         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12330         first member of struct sv in syscall macro.
12331
12332 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12333
12334         [BZ #14912]
12335         * bits/stdio-lock.h: Move to ...
12336         * sysdeps/generic/stdio-lock.h: ...here.
12337         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12338         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12339         * sysdeps/nptl/stdio-lock.h: ...here.
12340         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12341         * include/libio.h: Include <stdio-lock.h> instead of
12342         <bits/stdio-lock.h>.
12343         * sysdeps/nptl/fork.c: Likewise.
12344         * sysdeps/pthread/flockfile.c: Likewise.
12345         * sysdeps/pthread/ftrylockfile.c: Likewise.
12346         * sysdeps/pthread/funlockfile.c: Likewise.
12347
12348         [BZ #14912]
12349         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12350         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12351         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12352         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12353         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12354         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12355         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12356
12357 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12358
12359         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12360         (test-xfail-tst-protected1b): New variable.
12361
12362 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12363
12364         [BZ #14912]
12365         * bits/libc-tsd.h: Move to ...
12366         * sysdeps/generic/libc-tsd.h: ...here.
12367         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12368         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12369         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12370         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12371         * include/ctype.h: Include <libc-tsd.h> instead of
12372         <bits/libc-tsd.h>.
12373         * include/rpc/rpc.h: Likewise.
12374         * locale/localeinfo.h: Likewise.
12375         * sunrpc/rpc_thread.c: Likewise.
12376         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12377         * sysdeps/nptl/malloc-machine.h: Likewise.
12378
12379         * Makefile (headers): Remove bits/libc-lock.h.
12380         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12381
12382         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12383         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12384         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12385         <bits/stdio-lock.h>.
12386         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12387         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12388
12389 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12390
12391         [BZ #18757]
12392         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12393         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12394         BZ #18757.
12395
12396 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12397
12398         * malloc/mtrace.pl: Filter out NULL entries.
12399
12400 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12401
12402         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12403         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12404         macro.
12405
12406         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12407         (TCP_CC_INFO): Likewise.
12408         (TCP_SAVE_SYN): Likewise.
12409         (TCP_SAVED_SYN): Likewise.
12410
12411 2015-08-31  Brett Neumeier <brett@neumeier.us>
12412
12413         [BZ #18870]
12414         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12415
12416 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         [BZ #18873]
12419         Fix broken overflow check in posix_fallocate
12420         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12421         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12422         Fix parenthesization typo.
12423
12424 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12425
12426         [BZ #18887]
12427         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12428         tst-mntent-blank-passno.
12429         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12430         * misc/tst-mntent-blank-corrupt.c: New test.
12431         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12432         * misc/tst-mntent.c (do_test): ... here.
12433
12434 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12435
12436         [BZ #4404]
12437         * po/de.po: Fix SIGALRM typo.
12438
12439 2015-08-28  James Perkins  <james@loowit.net>
12440
12441         * time/tst-strptime2.c (tests): Replace short list of test
12442         strings for strptime %z specifier with code which exhaustively
12443         tests every combination of sign and 0 to 5 digits. Tests for
12444         rejection of invalid strings.
12445
12446 2015-08-28  James Perkins  <james@loowit.net>
12447
12448         [BZ #16141]
12449         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12450         calculation, removing incorrect decimal time rounding, so that
12451         all minute values result in a valid seconds value.
12452         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12453         offset range limits to UTC-99:59 through UTC+99:59 to parse
12454         current and historical use cases.
12455         * time/tst-strptime2.c (tests): Modify and add tests for the
12456         strptime %z input field descriptor, specifically conversion of
12457         minutes to seconds and validating an offset range of -9959 to
12458         +9959.
12459
12460 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12461             Dmitry V. Levin  <ldv@altlinux.org>
12462
12463         [BZ #18877]
12464         * posix/Makefile (tests): Add tst-mmap-offset.
12465         * posix/tst-mmap.c: New file.
12466         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12467         offset calculation for negative values.
12468
12469 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12470
12471         * sysdeps/i386/init-arch.h: New file.
12472         * sysdeps/i386/i586/init-arch.h: Likewise.
12473         * sysdeps/i386/i686/init-arch.h: Likewise.
12474         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12475         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12476         * sysdeps/x86/cpu-features.h (bit_I586): New.
12477         (bit_I686): Likewise.
12478         (bit_CX8): Likewise.
12479         (bit_CMOV): Likewise.
12480         (index_CX8): Likewise.
12481         (index_CMOV): Likewise.
12482         (index_I586): Likewise.
12483         (index_I686): Likewise.
12484         (reg_CX8): Likewise.
12485         (reg_CMOV): Likewise.
12486         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12487         available at compile-time.
12488         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12489         available at compile-time.
12490         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12491         (USE_I686): Likewise.
12492
12493 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12494
12495         * sysdeps/i386/bcopy.S: New file.
12496         * sysdeps/i386/bzero.S: Likewise.
12497         * sysdeps/i386/memcpy.S: Likewise.
12498         * sysdeps/i386/memmove.S: Likewise.
12499         * sysdeps/i386/mempcpy.S: Likewise.
12500         * sysdeps/i386/memset.S: Likewise.
12501         * sysdeps/i386/bzero.c: Removed.
12502         * sysdeps/i386/memset.c: Likewise.
12503         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12504         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12505         * sysdeps/i386/i586/memset_chk.S: Likewise.
12506         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12507         * sysdeps/i386/memcpy_chk.S: Here.
12508         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12509         * sysdeps/i386/memmove_chk.S: Here.
12510         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12511         * sysdeps/i386/mempcpy_chk.S: Likewise.
12512         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12513         * sysdeps/i386/memset_chk.S: Likewise.
12514
12515 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12516
12517         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12518         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12519         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12520         * soft-fp/fmadf4.c: Ditto.
12521         * soft-fp/fmatf4.c: Ditto.
12522
12523 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12524
12525         * sysdeps/i386/i586/Implies: Removed.
12526         * sysdeps/i386/i686/Implies: Likewise.
12527
12528 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12529
12530         * sysdeps/i386/i486/strlen.S: Moved to ...
12531         * sysdeps/i386/strlen.S: Here.
12532
12533 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12534
12535         * sysdeps/i386/i486/strcat.S: Moved to ...
12536         * sysdeps/i386/strcat.S: Here.
12537
12538 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12539
12540         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12541         * sysdeps/i386/pthread_spin_trylock.S: Here.
12542         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12543         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12544
12545 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12546
12547         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12548         * sysdeps/i386/string-inlines.c: Here.
12549
12550 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12551
12552         * sysdeps/i386/i486/htonl.S: Moved ...
12553         * sysdeps/i386/htonl.S: here.
12554
12555 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12556
12557         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12558         * sysdeps/i386/bits/atomic.h: Here.
12559
12560 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12561
12562         * sysdeps/i386/i486/Versions: Removed.
12563
12564 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12565
12566         [BZ #2898]
12567         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12568         Based on patch by Aurelien Jarno.
12569
12570 2015-08-26  Stan Shebs  <stanshebs@google.com>
12571
12572         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12573         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12574
12575 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12576
12577         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12578         * sysdeps/powerpc/dl-procinfo.c:
12579         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12580         feature so it shows when LD_SHOW_AUXV=1.
12581
12582 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12583
12584         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12585         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12586         definition.  ISA 2.07B no longer requires full sync.
12587
12588 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12589
12590         [BZ #18863]
12591         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12592         (si_call_addr): Define.
12593         (si_syscall): Define.
12594         (si_arch): Define.
12595
12596 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12597
12598         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12599         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12600         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12601         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12602         (__memset_zero_constant_len_parameter): New.
12603         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12604         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12605         (__memset_zero_constant_len_parameter): Don't define if
12606         __memset_chk or USE_AS_BZERO are defined.
12607
12608         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12609         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12610         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12611
12612         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12613         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12614         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12615         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12616         comments.
12617         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12618         -mno-mmx for $(all-rtld-routines).
12619         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12620         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12621         i386.
12622
12623 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12624
12625         * sysdeps/generic/unwind.h
12626         (_Unwind_Word): Use __mode__(__unwind_word__)
12627         instead of __mode__(__word__).
12628         (_Unwind_Sword): Likewise.
12629
12630         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12631         (MAX_NEEDED_INPUT): New define.
12632         (MAX_NEEDED_OUTPUT): New define.
12633
12634         * NEWS: New item for IBM z13 string optimizations.
12635
12636         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12637         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12638         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12639         * sysdeps/s390/multiarch/Makefile
12640         (sysdep_routines): Add memrchr functions.
12641         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12642         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12643
12644         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12645         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12646         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12647         * sysdeps/s390/multiarch/Makefile
12648         (sysdep_routines): Add wmemcmp functions.
12649         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12650         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12651         * benchtests/bench-wmemcmp.c: New File.
12652         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12653
12654         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12655         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12656         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12657         * sysdeps/s390/multiarch/Makefile
12658         (sysdep_routines): Add wmemset functions.
12659         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12660         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12661         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12662         * string/test-memset.c: Add wmemset support.
12663         * wcsmbs/test-wmemset.c: New File.
12664         * wcsmbs/Makefile (strop-tests): Add wmemset.
12665         * benchtests/bench-memset.c: Add wmemset support.
12666         * benchtests/bench-wmemset.c: New File.
12667         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12668
12669         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12670         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12671         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12672         * sysdeps/s390/multiarch/Makefile
12673         (sysdep_routines): Add memccpy functions.
12674         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12675         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12676         * string/memccpy.c: Use MEMCCPY if defined.
12677
12678         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12679         * sysdeps/s390/multiarch/memchr.c: Likewise.
12680         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12681         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12682         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12683         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12684         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12685         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12686         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12687         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12688         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12689         and rawmemchr functions.
12690         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12691         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12692         and wmemchr.
12693         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12694         * string/test-memchr.c: Add wmemchr support.
12695         * wcsmbs/test-wmemchr.c: New File.
12696         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12697         * benchtests/bench-memchr.c: Add wmemchr support.
12698         * benchtests/bench-wmemchr.c: New File.
12699         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12700
12701         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12702         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12703         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12704         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12705         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12706         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12707         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12708         wcscspn functions.
12709         * sysdeps/s390/multiarch/ifunc-impl-list.c
12710         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12711         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12712         * string/test-strcspn.c: Add wcscspn support.
12713         * wcsmbs/test-wcscspn.c: New File.
12714         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12715         * benchtests/bench-strcspn.c: Add wcscspn support.
12716         * benchtests/bench-wcscspn.c: New File.
12717         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12718
12719         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12720         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12721         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12722         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12723         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12724         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12725         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12726         wcspbrk functions.
12727         * sysdeps/s390/multiarch/ifunc-impl-list.c
12728         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12729         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12730         * string/test-strpbrk.c: Add wcspbrk support.
12731         * wcsmbs/test-wcspbrk.c: New File.
12732         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12733         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12734         * benchtests/bench-wcspbrk.c: New File.
12735         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12736
12737         * sysdeps/s390/multiarch/strspn-c.c: New File.
12738         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12739         * sysdeps/s390/multiarch/strspn.c: Likewise.
12740         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12741         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12742         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12743         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12744         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12745         wcsspn functions.
12746         * sysdeps/s390/multiarch/ifunc-impl-list.c
12747         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12748         * string/test-strspn.c: Add wcsspn support.
12749         * wcsmbs/test-wcsspn.c: New File.
12750         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12751         * benchtests/bench-strspn.c: Add wcsspn support.
12752         * benchtests/bench-wcsspn.c: New File.
12753         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12754
12755         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12756         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12757         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12758         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12759         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12760         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12761         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12762         wcsrchr functions.
12763         * sysdeps/s390/multiarch/ifunc-impl-list.c
12764         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12765         * benchtests/bench-wcsrchr.c: New File.
12766         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12767
12768         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12769         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12770         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12771         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12772         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12773         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12774         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12775         wcschrnul functions.
12776         * sysdeps/s390/multiarch/ifunc-impl-list.c
12777         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12778         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12779         * string/test-strchr.c: Add wcschrnul support.
12780         * wcsmbs/test-wcschrnul.c: New File.
12781         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12782         * benchtests/bench-strchr.c: Add wcschrnul support.
12783         * benchtests/bench-wcschrnul.c: New File.
12784         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12785
12786         * sysdeps/s390/multiarch/strchr-c.c: New File.
12787         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12788         * sysdeps/s390/multiarch/strchr.c: Likewise.
12789         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12790         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12791         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12792         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12793         wcschr functions.
12794         * sysdeps/s390/multiarch/ifunc-impl-list.c
12795         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12796         * string/strchr.c (STRCHR): Define and use macro.
12797         * benchtests/bench-wcschr.c: New File.
12798         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12799
12800         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12801         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12802         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12803         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12804         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12805         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12806         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12807         wcsncmp functions.
12808         * sysdeps/s390/multiarch/ifunc-impl-list.c
12809         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12810         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12811         * benchtests/bench-strncmp.c: Add wcsncmp support.
12812         * benchtests/bench-wcsncmp.c: New File.
12813         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12814
12815         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12816         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12817         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12818         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12819         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12820         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12821         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12822         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12823         wcscmp functions.
12824         * sysdeps/s390/multiarch/ifunc-impl-list.c
12825         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12826         * string/strcmp.c (STRCMP): Define and use macro.
12827         * benchtests/bench-wcscmp.c: New File.
12828         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12829         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12830         instead of _HAVE_STRING_ARCH_memchr.
12831
12832         * sysdeps/s390/multiarch/strncat-c.c: New File.
12833         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12834         * sysdeps/s390/multiarch/strncat.c: Likewise.
12835         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12836         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12837         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12838         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12839         wcsncat functions.
12840         * sysdeps/s390/multiarch/ifunc-impl-list.c
12841         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12842         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12843         * string/test-strncat.c: Add wcsncat support.
12844         * wcsmbs/test-wcsncat.c: New File.
12845         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12846         * benchtests/bench-strncat.c: Add wcsncat support.
12847         * benchtests/bench-wcsncat.c: New File.
12848         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12849
12850         * sysdeps/s390/multiarch/strcat-c.c: New File.
12851         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12852         * sysdeps/s390/multiarch/strcat.c: Likewise.
12853         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12854         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12855         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12856         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12857         wcscat functions.
12858         * sysdeps/s390/multiarch/ifunc-impl-list.c
12859         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12860         * string/strcat.c (STRCAT): Define and use macro.
12861         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12862         * string/test-strcat.c: Add wcscat support.
12863         * wcsmbs/test-wcscat.c: New File.
12864         * wcsmbs/Makefile (strop-tests): Add wcscat.
12865         * benchtests/bench-strcat.c: Add wcscat support.
12866         * benchtests/bench-wcscat.c: New File.
12867         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12868
12869         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12870         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12871         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12872         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12873         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12874         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12875         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12876         wcpncpy functions.
12877         * sysdeps/s390/multiarch/ifunc-impl-list.c
12878         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12879         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12880         * string/test-stpncpy.c: Add wcpncpy support.
12881         * wcsmbs/test-wcpncpy.c: New File.
12882         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12883         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12884         * benchtests/bench-wcpncpy.c: New File.
12885         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12886
12887         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12888         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12889         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12890         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12891         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12892         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12893         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12894         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12895         wcsncpy functions.
12896         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12897         * sysdeps/s390/multiarch/ifunc-impl-list.c
12898         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12899         * string/test-strncpy.c: Add wcsncpy support.
12900         * wcsmbs/test-wcsncpy.c: New File.
12901         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12902         * benchtests/bench-strncpy.c: Add wcsncpy support.
12903         * benchtests/bench-wcsncpy.c: New File.
12904         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12905
12906         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12907         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12908         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12909         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12910         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12911         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12912         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12913         wcpcpy functions.
12914         * string/stpcpy.c: Use STPCPY if defined.
12915         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12916         * sysdeps/s390/multiarch/ifunc-impl-list.c
12917         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12918         * string/test-stpcpy.c: Add wcpcpy support.
12919         * wcsmbs/test-wcpcpy.c: New File.
12920         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12921         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12922         * benchtests/bench-wcpcpy.c: New File.
12923         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12924
12925         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12926         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12927         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12928         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12929         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12930         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12931         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12932         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12933         wcscpy functions.
12934         * sysdeps/s390/multiarch/ifunc-impl-list.c
12935         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12936         * benchtests/bench-wcscpy.c: New File.
12937         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12938
12939         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12940         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12941         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12942         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12943         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12944         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12945         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12946         wcsnlen functions.
12947         * sysdeps/s390/multiarch/ifunc-impl-list.c
12948         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12949         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12950         * string/test-strnlen.c: Add wcsnlen support.
12951         * wcsmbs/test-wcsnlen.c: New File.
12952         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12953         * benchtests/bench-strnlen.c: Add wcsnlen support.
12954         * benchtests/bench-wcsnlen.c: New File.
12955         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12956
12957         * sysdeps/s390/multiarch/Makefile: New File.
12958         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12959         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12960         * sysdeps/s390/multiarch/strlen.c: Likewise.
12961         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12962         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12963         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12964         * string/strlen.c (STRLEN): Define and use macro.
12965         * sysdeps/s390/multiarch/ifunc-impl-list.c
12966         (IFUNC_VX_IMPL): New macro function.
12967         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12968         * benchtests/Makefile (wcsmbs-bench): New variable.
12969         (string-bench-all): Added wcsmbs-bench.
12970         * benchtests/bench-wcslen.c: New File.
12971
12972         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12973         s390_vx_libc_ifunc2): New macro function.
12974
12975         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12976         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12977         assembler support.
12978         * sysdeps/s390/configure: Regenerated.
12979
12980         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12981         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12982
12983         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12984         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12985         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12986
12987         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12988         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12989         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12990         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12991         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12992         (memcmp, bcmp): Use __memcmp_default as alias source.
12993         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12994         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12995         Rename to __memcmp_default.
12996         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12997         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12998         (memcpy): Use __memcpy_default as alias source.
12999         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13000         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13001         Rename to __memcpy_default.
13002         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13003         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13004         (memset): Use __memset_default as alias source.
13005         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13006         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13007         Rename to __memset_default.
13008         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13009         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13010         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13011         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13012         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13013         (memcmp, bcmp): Use __memcmp_default as alias source.
13014         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13015         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13016         Rename to __memcmp_default.
13017         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13018         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13019         (memcpy): Use __memcpy_default as alias source.
13020         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13021         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13022         Rename to __memcpy_default.
13023         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13024         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13025         (memset): Use __memset_default as alias source.
13026         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13027         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13028         Rename to __memset_default.
13029         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13030         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13031
13032         [BZ #18610]
13033         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13034         __ieee_instruction_pointer to __unused.
13035         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13036         __ieee_instruction_pointer.
13037         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13038         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13039         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13040         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13041         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13042         Mark dxc-field as reserved.
13043
13044 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13045
13046         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13047         if the weak reference is not null.
13048
13049 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13050
13051         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13052
13053         [BZ #11214]
13054         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13055
13056 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13057
13058         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13059         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13060         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13061         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13062         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13063         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13064         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13065         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13066         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13067         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13068         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13069         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13070         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13071         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13072         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13073         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13074         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13075         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13076
13077 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13078
13079         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13080         register other than r0 for tabort, it has special meaning.
13081         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13082         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13083         transaction before starting syscall.
13084
13085 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13086
13087         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13088
13089 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13090
13091         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13092
13093         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13094         * sysdeps/x86_64/rtld-memset.S: Likewise.
13095         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13096         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13097         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13098         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13099
13100         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13101
13102 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13103
13104         * debug/strcpy_chk.c: Improve performance.
13105         * debug/stpcpy_chk.c: Likewise.
13106         * sysdeps/x86_64/strcpy_chk.S: Remove.
13107         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13108
13109         [BZ #18240]
13110         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13111
13112 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13113
13114         [BZ #15128]
13115         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13116         ifuncmain8.
13117         (modules-names): Add ifuncmod8.
13118         ($(objpfx)ifuncmain8): New rule.
13119         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13120         <cpuid.h>.
13121         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13122         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13123         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13124         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13125         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13126         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13127         * sysdeps/x86_64/ifuncmain8.c: New file.
13128         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13129         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13130         Removed.
13131         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13132         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13133         Change rtld_savespace_sse to __glibc_unused2.
13134         (RTLD_CHECK_FOREIGN_CALL): Removed.
13135         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13136         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13137         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13138
13139 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13140
13141         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13142
13143 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13144
13145         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13146         Unconditionally set __fpcr to avoid uninialized warning.
13147         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13148
13149 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13150
13151         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13152         is corrupt.
13153
13154         * malloc/arena.c (arena_get2): Drop unused argument.
13155         (arena_lock): Adjust.
13156         (arena_get_retry): Likewise.
13157
13158 2015-08-24  Andreas Schwab  <schwab@suse.de>
13159
13160         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13161         Don't define.
13162         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13163         (__ASSUME_IPC64): Don't undef.
13164         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13165         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13166         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13167         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13168         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13169         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13170         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13171         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13172         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13173         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13174         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13175         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13176         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13177         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13178         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13179         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13180         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13181         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13182         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13183         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13184         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13185
13186 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13187
13188         * manual/Makefile (install): Only build manual when perl is available.
13189
13190 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13191
13192         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13193         '#undef memcpy' by '#undef memchr'.
13194
13195 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13196
13197         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13198         memchr not point to the internal __GI_memchr implementation.
13199
13200 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13201
13202         * timezone/Makefile (CFLAGS-zdump.c): Remove
13203         -Wno-strict-prototypes.
13204         (CFLAGS-zic.c): Likewise.
13205         (CFLAGS-ialloc.c): Likewise.
13206         (CFLAGS-scheck.c): Likewise.
13207
13208         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13209         -Wno-error=undef.
13210
13211 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13212
13213         * i386/i686/multiarch/strcasestr-c.c: Removed.
13214         * x86_64/multiarch/strcasestr.c: Likewise.
13215         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13216         Remove strcasestr.
13217
13218 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13219
13220         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13221
13222         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13223         variables for high and low parts before possibly modifying them.
13224
13225 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13226
13227         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13228         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13229         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13230         of "multiarch/init-arch.h".
13231         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13232         * sysdeps/x86/init-arch.h: This.
13233
13234 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13235
13236         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13237         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13238
13239 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13240
13241         [BZ #17787]
13242         * manual/macros.texi: Add twoexp macro.
13243         * manual/filesys.texi: Fix exponents.
13244         * manual/llio.texi: Likewise.
13245         * manual/stdio.texi: Likewise.
13246
13247 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13248
13249         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13250         incorrect use.
13251
13252 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13253
13254         [BZ #18370]
13255         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13256         whose real or imaginary part has small absolute value.
13257         * math/s_csqrtf.c (__csqrtf): Likewise.
13258         * math/s_csqrtl.c (__csqrtl): Likewise.
13259         * math/auto-libm-test-in: Add more tests of csqrt.
13260         * math/auto-libm-test-out: Regenerated.
13261         * sysdeps/i386/fpu/libm-test-ulps: Update.
13262
13263 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13264
13265         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13266         __ppc_set_ppr_very_low): New functions.
13267         * manual/platform.texi: Add documentation about
13268         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13269
13270 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13271
13272         * string/stpncpy.c (stpncpy): Improve performance using
13273         __strnlen/memcpy/memset.
13274
13275 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13276
13277         [BZ #18796]
13278         * scripts/test-installation.pl: Don't add -lmvec to build options if
13279         libmvec wasn't built.
13280
13281 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13282
13283         [BZ #14341]
13284         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13285         case when there is a gap between DT_REL and DT_JMPREL sections.
13286         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13287         (LDFLAGS-tst-split-dynreloc): New.
13288         (tst-split-dynreloc-ENV): Likewise.
13289         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13290         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13291
13292 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13293
13294         [BZ #18822]
13295         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13296         attribute_hidden.
13297         (__xstat64_conv): Likewise.
13298         (__xstat32_conv): Likewise.
13299
13300 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13301
13302         [BZ #18822]
13303         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13304         Don't load %ebx when calling __setcontext.  Call __setcontext
13305         with HIDDEN_JUMPTARGET.
13306         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13307         libc_hidden_def.
13308
13309 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13310
13311         * sysdeps/i386/i686/Makefile
13312         [$(subdir) == string] (sysdep_routines): Moved to ...
13313         * sysdeps/i386/Makefile: Here.
13314         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13315         * sysdeps/i386/cacheinfo.c: Here.
13316         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13317         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13318         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13319         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13320
13321 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13322
13323         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13324         __i586__ is defined.
13325         (HAS_I686): Defined to 1 if __i686__ is defined.
13326
13327 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13328
13329         * elf/Makefile [$(have-z-execstack) = yes]
13330         (CPPFLAGS-tst-execstack.c): New variable.
13331
13332         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13333         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13334         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13335         UTMPX || _HAVE_UT_TV].
13336         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13337         UTMPX || _HAVE_UT_TV - 0].
13338
13339 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13340
13341         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13342         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13343         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13344
13345 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13346
13347         * sysdeps/powerpc/dl-procinfo.c:
13348         (_dl_powerpc_cap_flags): Added missing strings for some
13349         hwcap features.
13350         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13351
13352 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13353
13354         Port the 0x7efe...feff pattern to GCC 6.
13355         See Steve Ellcey's bug report in:
13356         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13357         * string/memrchr.c (MEMRCHR):
13358         * string/rawmemchr.c (RAWMEMCHR):
13359         * string/strchr.c (strchr):
13360         * string/strchrnul.c (STRCHRNUL):
13361         Rewrite code to avoid issues with signed shift overflow.
13362
13363 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13364
13365         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13366         whether cpuid is available only if HAS_CPUID is 0.
13367         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13368         (HAS_I586): Likewise.
13369         (HAS_I686): Likewise.
13370
13371 2015-08-18  Zack Weinberg  <zackw@panix.com>
13372
13373         * misc/Versions (libc): Add GLIBC_2.23.
13374
13375 2015-08-18  Alan Modra  <amodra@gmail.com>
13376
13377         [BZ #18421]
13378         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13379         .Lp__global.
13380         (_start): Load %dp via .Lp__global.
13381         [!SHARED]: Use .section .rodata.
13382
13383 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13384
13385         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13386         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13387
13388 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13389
13390         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13391         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13392
13393 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13394
13395         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13396         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13397
13398 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13399
13400         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13401         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13402
13403 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13404
13405         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13406         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13407
13408 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13409
13410         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13411         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13412
13413 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13414
13415         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13416
13417 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13418
13419         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13420         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13421         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13422         (__ASSUME_LWS_CAS): Delete.
13423
13424 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13425
13426         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13427         * sysdeps/hppa/configure: Regenerated.
13428         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13429         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13430         * sysdeps/hppa/nptl/tls.h: Likewise.
13431
13432 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13433
13434         [BZ #18823]
13435         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13436         for scaling up small arguments.
13437         * math/s_csqrtf.c (__csqrtf): Likewise.
13438         * math/s_csqrtl.c (__csqrtl): Likewise.
13439         * math/auto-libm-test-in: Add more tests of csqrt.
13440         * math/auto-libm-test-out: Regenerated.
13441
13442 2015-08-17  Andreas Schwab  <schwab@suse.de>
13443
13444         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13445         version set GLIBC_2.19.
13446
13447 2015-08-16  Zack Weinberg  <zackw@panix.com>
13448
13449         [BZ #18681]
13450         * misc/regexp.h: This interface is no longer supported.
13451         Remove all contents, leaving only an #error directive.
13452         * misc/regexp.c (loc1, loc2, locs, step, advance):
13453         Demote to compatibility symbols.
13454
13455 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13456
13457         [BZ #18084]
13458         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13459         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13460         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13461         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13462         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13463         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13464         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13465         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13466         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13467
13468 2015-08-15  Zack Weinberg  <zackw@panix.com>
13469
13470         [BZ #18795]
13471         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13472         buffer length is known to be too large, not if it's known to be
13473         small enough.
13474         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13475         overflow at runtime, involving a length parameter, twice: once
13476         with a compile-time constant length parameter, once without.
13477
13478 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13479
13480         [BZ #18824]
13481         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13482         scaling x * y up instead of down.
13483         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13484         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13485         * math/auto-libm-test-in: Add more tests of fma.
13486         * math/auto-libm-test-out: Regenerated.
13487
13488 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13489
13490         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13491
13492 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13493
13494         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13495         unnecessary movq.
13496         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13497         Likewise.
13498
13499 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13500
13501         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13502         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13503         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13504         and tgamma.
13505         * math/auto-libm-test-out: Regenerated.
13506         * sysdeps/i386/fpu/libm-test-ulps: Update.
13507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13508
13509         [BZ #16520]
13510         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13511         (__tanh): Force underflow exception for arguments with small
13512         absolute value.
13513         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13514         (__tanhf): Force underflow exception for arguments with small
13515         absolute value.
13516         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13517         (__tanhl): Force underflow exception for arguments with small
13518         absolute value.
13519         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13520         (__tanhl): Force underflow exception for arguments with small
13521         absolute value.
13522         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13523         (__tanhl): Force underflow exception for arguments with small
13524         absolute value.
13525         * math/auto-libm-test-in: Add more tests of tanh.
13526         * math/auto-libm-test-out: Regenerated.
13527         * sysdeps/i386/fpu/libm-test-ulps: Update.
13528
13529 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13530
13531         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13532         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13533
13534 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13535
13536         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13537         <cpuid.h>.
13538
13539 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13540
13541         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13542         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13543
13544 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13545
13546         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13547         Remove $(objpfx)init-arch.o.
13548         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13549         init-arch.
13550         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13551         (INIT_ARCH_EXT): Defined as empty.
13552         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13553         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13554         __init_cpu_features call.  Replace HAS_XXX with
13555         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13556         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13557         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13558         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13559         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13560         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13561         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13562         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13563         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13564         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13565         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13566         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13567         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13568         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13569         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13570         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13571         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13572         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13573         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13574         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13575         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13576         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13577         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13578         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13579         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13580         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13581         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13582         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13583         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13584         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13585         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13586         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13587         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13588         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13589         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13590         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13591
13592 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13593
13594         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13595         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13596         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13597         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13598         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13599         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13600         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13601         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13602         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13603         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13604         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13605         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13606         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13607         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13608         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13609         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13610         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13611         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13612         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13613         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13614         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13615         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13616         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13617         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13618         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13619         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13620         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13621         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13622         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13623         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13624         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13625         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13626         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13627         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13628         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13629         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13630         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13631         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13632         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13633         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13634         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13635         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13636         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13637
13638 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13639
13640         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13641         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13642         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13643         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13644         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13645         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13646         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13647         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13648         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13649         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13650         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13651         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13652         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13653         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13654         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13655         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13656         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13657         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13658         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13659         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13660         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13661         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13662         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13663         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13664         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13665         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13666         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13667         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13668         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13669         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13670         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13671         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13672         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13673         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13674         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13675         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13676         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13677         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13678         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13679         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13680         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13681         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13682         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13683
13684 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13685
13686         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13687         (dl_platform_init): Call init_cpu_features.
13688         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13689         * sysdeps/i386/i686/cacheinfo.c
13690         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13691         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13692         * sysdeps/i386/i686/multiarch/Versions: Removed.
13693         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13694         Removed.
13695         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13696         * sysdeps/unix/sysv/linux/x86/Makefile
13697         (libpthread-sysdep_routines): Remove init-arch.
13698         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13699         <sysdeps/x86_64/dl-procinfo.c> instead of
13700         sysdeps/generic/dl-procinfo.c>.
13701         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13702         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13703         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13704         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13705         [$(subdir) == elf] (tests-static): Add
13706         tst-get-cpu-features-static.
13707         * sysdeps/x86/Versions: New file.
13708         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13709         * sysdeps/x86/cpu-features.c: Likewise.
13710         * sysdeps/x86/cpu-features.h: Likewise.
13711         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13712         * sysdeps/x86/libc-start.c: Likewise.
13713         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13714         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13715         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13716         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13717         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13718         Assume USE_MULTIARCH is defined and don't check it.
13719         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13720         (is_amd): Likewise.
13721         (max_cpuid): Likewise.
13722         (intel_check_word): Likewise.
13723         (__cache_sysconf): Don't call __init_cpu_features.
13724         (__x86_preferred_memory_instruction): Removed.
13725         (init_cacheinfo): Don't call __init_cpu_features. Replace
13726         __cpu_features with GLRO(dl_x86_cpu_features).
13727         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13728         (dl_platform_init): Call init_cpu_features.
13729         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13730         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13731         * sysdeps/x86_64/multiarch/Versions: Removed.
13732         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13733         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13734         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13735         Removed.
13736         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13737
13738 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13739
13740         [BZ #18820]
13741         * libio/Makefile (test-fmemopen-mem): New test.
13742         * libio/test-fmemopen.c (do_bz18820): New test.
13743         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13744         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13745
13746 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13747
13748         [BZ #16734]
13749         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13750         (FREE_BUF): Delete.
13751         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13752         * libio/genops.c (_IO_setb): Use malloc and free directly.
13753         (_IO_default_doallocate, _IO_default_finish): Likewise.
13754         ( _IO_unbuffer_all): Likewise.
13755         ( libc_freeres_fn): Likewise.
13756         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13757         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13758         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13759         (_IO_wdefault_doallocate): Likewise.
13760
13761 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13762
13763         [BZ #18086]
13764         * sysdeps/posix/nice.c (nice): Restore old errno.
13765         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13766
13767 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13768
13769         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13770
13771 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13772
13773         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13774         __bcopy and add a weak_alias to bcopy.
13775         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13776         for static build.
13777
13778         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13779         cleanup macro usage.
13780         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13781         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13782         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13783         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13784         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13785         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13786         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13787         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13788         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13789         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13790         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13791         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13792         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13793         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13794         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13795         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13796         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13797         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13798         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13799
13800         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13801         libc_hidden_def.
13802         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13803
13804         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13805         (sysdep_routines): Add strstr-ppc64.
13806         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13807
13808 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13809
13810         [BZ #18778]
13811         * elf/Makefile (tests): Add Add tst-nodelete2.
13812         (modules-names): Add tst-nodelete2mod.
13813         (tst-nodelete2mod.so-no-z-defs): New.
13814         ($(objpfx)tst-nodelete2): Likewise.
13815         ($(objpfx)tst-nodelete2.out): Likewise.
13816         (LDFLAGS-tst-nodelete2): Likewise.
13817         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13818         out of loop through all loaded libraries.
13819         * elf/tst-nodelete2.c: New file.
13820         * elf/tst-nodelete2mod.c: Likewise.
13821         * elf/tst-znodelete-zlib.cc: Delete.
13822
13823 2015-08-11  Andreas Schwab  <schwab@suse.de>
13824
13825         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13826         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13827         (__openat64_nocancel): Likewise.
13828
13829 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13830
13831         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13832         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13833         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13834         * math/auto-libm-test-out: Regenerated.
13835         * sysdeps/i386/fpu/libm-test-ulps: Update.
13836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13837
13838 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13839
13840         [BZ #18790]
13841         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13842         threshold for returning +/- 1.
13843         * math/auto-libm-test-in: Add more tests of tanh.
13844         * math/auto-libm-test-out: Regenerated.
13845         * sysdeps/i386/fpu/libm-test-ulps: Update.
13846
13847 2015-08-10  Andreas Schwab  <schwab@suse.de>
13848
13849         [BZ #18781]
13850         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13851         MORE_OFLAGS to oflag.
13852         * io/test-lfs.c (do_test): Test openat64.
13853
13854 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13855
13856         [BZ #18789]
13857         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13858         smaller threshold for returning the argument.
13859         * math/auto-libm-test-in: Add more tests of sinh.
13860         * math/auto-libm-test-out: Regenerated.
13861         * sysdeps/i386/fpu/libm-test-ulps: Update.
13862
13863 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13864
13865         [BZ #18674]
13866         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13867         break.
13868
13869 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13870
13871         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13872         (generated): Don't add $(addprefix z.,$(tzfiles)).
13873
13874 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13875
13876         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13877         * scripts/sysd-rules.awk: Likewise.
13878
13879 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13880
13881         * iconvdata/tst-tables.sh: Change echo -n to printf.
13882         * nss/db-Makefile: Likewise.
13883         * posix/tst-getconf.sh: Likewise.
13884         * stdio-common/tst-unbputc.sh: Likewise.
13885
13886 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13887
13888         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13889         MADV_*_PAGES defines behind this feature check.
13890
13891 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13892
13893         [BZ #18480]
13894         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13895         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13896         Define.
13897         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13898         LOAD_REGS_5, LOAD_REGS_6): Update.
13899         (INTERNAL_SYSCALL): Update using new LOAD defines.
13900         (INTERNAL_SYSCALL_NCS): Likewise.
13901         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13902
13903 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13904
13905         [BZ #16734]
13906         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13907
13908 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13909
13910         [BZ #17905]
13911         * catgets/Makefile (tst-catgets-mem): New test.
13912         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13913         * catgets/open_catalog.c (__open_catalog): Likewise.
13914         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13915
13916 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13917
13918         [BZ #18787]
13919         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13920         clobber registers.
13921         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13922         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13923         Cast return to __typeof (oldval).
13924
13925 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13926
13927         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13928         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13929         and delete sys/syscall.h include.
13930
13931 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13932
13933         [BZ #16517]
13934         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13935         (tan): Force underflow exception for arguments with small absolute
13936         value.
13937         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13938         (__kernel_tanf): Force underflow exception for arguments with
13939         small absolute value.
13940         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13941         (__kernel_tanl): Force underflow exception for arguments with
13942         small absolute value.
13943         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13944         (__kernel_tanl): Force underflow exception for arguments with
13945         small absolute value.
13946         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13947         (__kernel_tanl): Force underflow exception for arguments with
13948         small absolute value.
13949         * math/auto-libm-test-in: Add more tests of tan.
13950         * math/auto-libm-test-out: Regenerated.
13951
13952 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13953
13954         Fix sysdeps/i386/fpu/s_scalbn.S build
13955
13956         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13957
13958 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13959
13960         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13961
13962 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13963
13964         Fix gcrt0.o compilation
13965
13966         When static-start-installed-name is different from
13967         start-installed-name, we must not use the shared objects.
13968
13969         * csu/Makefile
13970         (extra-objs): Add gmon-start.o when building shared library and
13971         $(static-start-installed-name) is different from
13972         $(start-installed-name).
13973         $(objpfx)g$(static-start-installed-name): When building shared
13974         library and $(static-start-installed-name) is different from
13975         $(static-start-installed-name), revert to non-shared rule,
13976         i.e. using $(objpfx)% and gmon-start.o.
13977
13978 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13979
13980         [BZ #16519]
13981         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13982         (__ieee754_sinh): Force underflow exception for arguments with
13983         small absolute value.
13984         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13985         (__ieee754_sinhf): Force underflow exception for arguments with
13986         small absolute value.
13987         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13988         (__ieee754_sinhl): Force underflow exception for arguments with
13989         small absolute value.
13990         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13991         (__ieee754_sinhl): Force underflow exception for arguments with
13992         small absolute value.
13993         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13994         (__ieee754_sinhl): Force underflow exception for arguments with
13995         small absolute value.
13996         * math/auto-libm-test-in: Add more tests of sinh.
13997         * math/auto-libm-test-out: Regenerated.
13998         * sysdeps/i386/fpu/libm-test-ulps: Update.
13999
14000 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14001
14002         * libio/oldfileops.c: Include unistd.h.
14003
14004 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14005
14006         * stdlib/isomac.c: Include ctype.h.
14007
14008 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14009
14010         * dirent/tst-seekdir.c (main): Converted to ...
14011         (do_test): ... this.
14012         (TEST_FUNCTION): New macro.
14013         Include test-skeleton.c.
14014         * elf/tst-dlmodcount.c (main): Converted to ...
14015         (do_test): ... this.
14016         (TEST_FUNCTION): New macro.
14017         Include test-skeleton.c.
14018         * elf/tst-order-main.c (main): Converted to ...
14019         (do_test): ... this.
14020         (TEST_FUNCTION): New macro.
14021         Include test-skeleton.c.
14022         * elf/tst-pie2.c (main): Converted to ...
14023         (do_test): ... this.
14024         (TEST_FUNCTION): New macro.
14025         Include test-skeleton.c.
14026         * inet/tst-ether_aton.c (main): Converted to ...
14027         (do_test): ... this.
14028         (TEST_FUNCTION): New macro.
14029         Include test-skeleton.c.
14030         * misc/tst-mntent.c (main): Converted to ...
14031         (do_test): ... this.
14032         (TEST_FUNCTION): New macro.
14033         Include test-skeleton.c.
14034         * misc/tst-tsearch.c (main): Converted to ...
14035         (do_test): ... this.
14036         (TEST_FUNCTION): New macro.
14037         Include test-skeleton.c.
14038         * posix/tst-regexloc.c (main): Converted to ...
14039         (do_test): ... this.
14040         (TEST_FUNCTION): New macro.
14041         Include test-skeleton.c.
14042         * resolv/tst-aton.c (main): Converted to ...
14043         (do_test): ... this.
14044         (TEST_FUNCTION): New macro.
14045         Include test-skeleton.c.
14046         * stdio-common/test-fwrite.c (main): Converted to ...
14047         (do_test): ... this.
14048         (TEST_FUNCTION): New macro.
14049         Include test-skeleton.c.
14050         * stdio-common/tst-ferror.c (main): Converted to ...
14051         (do_test): ... this.
14052         (TEST_FUNCTION): New macro.
14053         Include test-skeleton.c.
14054         * stdio-common/tst-printf.c (main): Converted to ...
14055         (do_test): ... this.
14056         (TEST_FUNCTION): New macro.
14057         Include test-skeleton.c.
14058         * stdio-common/tst-printfsz.c (main): Converted to ...
14059         (do_test): ... this.
14060         (TEST_FUNCTION): New macro.
14061         Include test-skeleton.c.
14062         * stdlib/tst-strtod.c (main): Converted to ...
14063         (do_test): ... this.
14064         (TEST_FUNCTION): New macro.
14065         Include test-skeleton.c.
14066         * string/tst-strlen.c (main): Converted to ...
14067         (do_test): ... this.
14068         (TEST_FUNCTION): New macro.
14069         Include test-skeleton.c.
14070         * string/tst-svc.c (main): Converted to ...
14071         (do_test): ... this.
14072         (TEST_FUNCTION): New macro.
14073         Include test-skeleton.c.
14074         * time/tst-strptime.c (main): Converted to ...
14075         (do_test): ... this.
14076         (TEST_FUNCTION): New macro.
14077         Include test-skeleton.c.
14078         * timezone/tst-timezone.c (main): Converted to ...
14079         (do_test): ... this.
14080         (TEST_FUNCTION): New macro.
14081         Include test-skeleton.c.
14082
14083 2015-08-05  Zack Weinberg  <zackw@panix.com>
14084
14085         * misc/regexp.h: Update comments.
14086
14087 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14088
14089         [BZ #18635]
14090         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14091         before return label.
14092
14093 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14094
14095         [BZ #18661]
14096         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14097         when calling __errno_location.
14098         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14099         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14100
14101 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14102
14103         [BZ #18661]
14104         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14105         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14106         __gettimeofday.
14107
14108 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14109
14110         [BZ #18661]
14111         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14112         (__start_context): Don't use pop to restore %rdi so that stack
14113         is aligned to 16 bytes when calling __setcontext.
14114
14115 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14116
14117         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14118         only for libc.
14119         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14120
14121 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14122
14123         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14124         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14125         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14126
14127 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14128
14129         * string/memccpy.c (memccpy):
14130         Improve performance by using memchr/memcpy/__mempcpy.
14131
14132 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14133
14134         * string/strncpy.c (strncpy):
14135         Improve performance by using __strnlen/memcpy.
14136
14137 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14138
14139         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14140         Optimize to avoid an unnecessary FPCR read.
14141
14142 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14143
14144         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14145         Optimize to reduce FPCR/FPSR accesses.
14146
14147 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14148
14149         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14150         dead->data[category] != NULL.
14151
14152 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14153
14154         [BZ #18647]
14155         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14156         and |x| close to 1, use absolute value of x when computing log.
14157         * math/auto-libm-test-in: Add more tests of pow.
14158         * math/auto-libm-test-out: Regenerated.
14159
14160 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14161
14162         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14163         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14164         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14165
14166 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14167
14168         [BZ #18525]
14169         * locales/km_KH: Remove timezone definition.
14170         * locales/lo_LA: Likewise.
14171         * locales/my_MM: Likewise.
14172         * locales/nan_TW@latin: Likewise.
14173         * locales/th_TH: Likewise.
14174         * locales/uk_UA: Likewise.
14175
14176 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14177
14178         [BZ #18265]
14179         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14180         (wcsncat): Likewise.
14181         (wcscmp): Likewise.
14182         (wcsncmp): Likewise.
14183
14184 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14185
14186         * test-skeleton.c (usage): New function.
14187         (main): Call usage when opt is '?'.
14188
14189 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14190
14191         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14192         before first use.
14193
14194 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14195
14196         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14197         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14198         in there too.
14199
14200 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14201
14202         * version.h (RELEASE): Set to "development".
14203         (VERSION): Set to "2.22.90"
14204
14205         * version.h (RELEASE): Set to "stable".
14206         (VERSION): Set to "2.22"
14207         * include/features.h (__GLIBC_MINOR__): Set to 22.
14208
14209 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14210
14211         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14212         Restructure macro to avoid "value computed is not used" warning.
14213         (atomic_compare_and_exchange_val_acq): Likewise.
14214
14215 2015-08-04  Andreas Schwab  <schwab@suse.de>
14216
14217         [BZ #18635]
14218         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14219         ret.
14220         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14221
14222 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14223
14224         * po/pl.po: Updated translation.
14225         * po/uk.po: Likewise.
14226         * po/fi.po: Likewise.
14227         * po/ko.po: Likewise.
14228         * po/ru.po: Likewise.
14229         * po/vi.po: Likewise.
14230
14231 2015-07-31  Zack Weinberg  <zackw@panix.com>
14232
14233         [BZ #18681]
14234         * regexp.h: Add unconditional #warning stating that this header
14235         will be removed soon.  Revise banner comment to match.
14236         (compile): Consistently use ERROR instead of RETURN to report
14237         errors (partial fix for bz#18681).
14238         * regexp.c: Don't include regexp.h. Remove some unnecessary
14239         declarations.
14240
14241 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14242
14243         * po/libc.pot: Regenerated.
14244
14245 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14246
14247         [BZ #18740]
14248         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14249         float-vlen4-arch-ext-cflags): Removed.
14250         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14251         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14252
14253 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14254
14255         [BZ #14113]
14256         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14257         aligned to __aligned__.
14258         (pthread_cond_t, pthread_rwlock_t): Likewise.
14259
14260 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14261
14262         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14263
14264 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14265
14266         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14267         (struct sigaction): Change sa_flags from a long to an int, and add
14268         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14269
14270 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14271
14272         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14273         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14274         sysdeps/generic/sysdep.h include.
14275         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14276         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14277         sysdeps/hppa/sysdep.h.
14278         (ENTRY, PSEUDO): Undefine before defining.
14279
14280 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14281
14282         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14283         from scratch to use INTERNAL_SYSCALL.
14284
14285 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14286
14287         [BZ #18078]
14288         * scripts/check-localplt.awk: Support alternate relocations.
14289         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14290         sections.
14291         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14292         malloc entries with + REL R_386_GLOB_DAT.
14293         * sysdeps/x86_64/localplt.data: New file.
14294
14295 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14296
14297         [BZ #18731]
14298         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14299         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14300         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14301
14302 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14303
14304         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14305
14306 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14307
14308         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14309         directly in terms of __sync_fetch_and_add and delete (int) cast.
14310
14311 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14312
14313         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14314         the -D_ASM_IA64_CURRENT_H flag.
14315
14316 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14317
14318         [BZ #18641]
14319         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14320
14321 2015-07-27  Andreas Schwab  <schwab@suse.de>
14322
14323         * conform/conformtest.pl (checknamespace): Filter out string
14324         literals while tokenizing.
14325
14326 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14327
14328         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14329         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14330         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14331
14332 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14333
14334         * nptl/tst-join7mod.c: Add #include <string.h>.
14335
14336 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14337
14338         * sysdeps/nios2/libm-test-ulps: Update.
14339
14340 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14341
14342         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14343         Fix order of arguments to the rt_sigprocmask syscall.
14344         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14345         Likewise.
14346
14347 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14348
14349         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14350
14351 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14352
14353         [BZ #18457]
14354         * nptl/Makefile (tests): New test case tst-join7.
14355         (modules-names): New test case module tst-join7mod.
14356         * nptl/tst-join7.c: New file.
14357         * nptl/tst-join7mod.c: New file.
14358         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14359         all translation units in libc.so, libpthread.so and rtld.
14360
14361 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14362
14363         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14364
14365 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14366
14367         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14368         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14369         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14370         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14371         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14372         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14373         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14374         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14375         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14376         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14377         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14378         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14379         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14380         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14381         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14382         implementation.
14383
14384 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14385
14386         [BZ #17711]
14387         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14388         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14389         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14390         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14391         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14392         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14393
14394 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14395
14396         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14397         instead of just saying load lock in the comments.
14398
14399 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14400
14401         * sysdeps/unix/Subdirs: Moved ...
14402         * sysdeps/posix/Subdirs: ... here.
14403         * login/pty.h (struct termios, struct winsize): Add forward decls.
14404         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14405         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14406         * sysdeps/arm/nacl/libc.abilist: Updated.
14407         * sysdeps/nacl/libutil.abilist: New file.
14408
14409         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14410         (SIGWINCH): New macro.
14411
14412         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14413         * sysdeps/arm/nacl/libc.abilist: Add it.
14414
14415 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14416
14417         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14418
14419 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14420
14421         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14422         Swap __glibc_reserved0 and sa_flags order.
14423
14424 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14425
14426         [BZ #18657]
14427         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14428         are pending TLS destructor calls.
14429         * include/link.h (struct link_map): Add concurrency note for
14430         L_TLS_DTOR_COUNT.
14431         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14432         Don't touch the link map flag.  Atomically increment
14433         l_tls_dtor_count.
14434         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14435         Avoid taking the load lock and don't touch the link map flag.
14436         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14437         * stdlib/Makefile (tests): Use it.
14438         * stdlib/tst-tls-atexit.c (do_test): dlopen
14439         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14440         to allow tst-tls-atexit-nodelete test case to use it.
14441
14442 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14443
14444         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14445         to bits/types.h.
14446         (msgqnum_t): New typedef.
14447         (msglen_t): Likewise.
14448         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14449         and msg_qbytes type to msglen_t.
14450
14451 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14452
14453         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14454         pad0 to __glibc_reserved0.
14455         (struct stat64): Likewise.
14456
14457 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14458
14459         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14460         Change sa_flags from a long to an int and add __glibc_reserved0 before
14461         it for padding.
14462
14463 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14464
14465         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14466         anonymous by deleting "siginfo" name.
14467
14468 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14469
14470         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14471         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14472         rather than __nacl_irt_filename.
14473         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14474
14475         * NEWS: New item for arm-nacl port.
14476         * sysdeps/arm/nacl/libc.abilist: New file.
14477         * sysdeps/nacl/ld.abilist: New file.
14478         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14479         * sysdeps/nacl/libanl.abilist: New file.
14480         * sysdeps/nacl/libcrypt.abilist: New file.
14481         * sysdeps/nacl/libdl.abilist: New file.
14482         * sysdeps/nacl/libm.abilist: New file.
14483         * sysdeps/nacl/libpthread.abilist: New file.
14484         * sysdeps/nacl/libresolv.abilist: New file.
14485         * sysdeps/nacl/librt.abilist: New file.
14486
14487 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14488
14489         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14490         __startcontext to initialize the new context.
14491         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14492         up CFI directive to forbid further backtracing.
14493
14494 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14495
14496         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14497         reference.
14498         * charmaps/ANSI_X3.4-1968: Likewise.
14499         * charmaps/BS_4730: Likewise.
14500         * charmaps/BS_VIEWDATA: Likewise.
14501         * charmaps/CP1250: Likewise.
14502         * charmaps/CP1251: Likewise.
14503         * charmaps/CP1252: Likewise.
14504         * charmaps/CP1253: Likewise.
14505         * charmaps/CP1254: Likewise.
14506         * charmaps/CP1255: Likewise.
14507         * charmaps/CP1256: Likewise.
14508         * charmaps/CSN_369103: Likewise.
14509         * charmaps/EBCDIC-DK-NO: Likewise.
14510         * charmaps/GB_1988-80: Likewise.
14511         * charmaps/GREEK-CCITT: Likewise.
14512         * charmaps/GREEK7: Likewise.
14513         * charmaps/INIS-8: Likewise.
14514         * charmaps/ISIRI-3342: Likewise.
14515         * charmaps/ISO_2033-1983: Likewise.
14516         * charmaps/ISO_5427-EXT: Likewise.
14517         * locales/POSIX: Likewise.
14518         * locales/ar_SA: Likewise.
14519         * locales/be_BY: Likewise.
14520         * locales/be_BY@latin: Likewise.
14521         * locales/ca_ES: Likewise.
14522         * locales/cs_CZ: Likewise.
14523         * locales/da_DK: Likewise.
14524         * locales/de_BE: Likewise.
14525         * locales/de_CH: Likewise.
14526         * locales/de_LU: Likewise.
14527         * locales/en_AU: Likewise.
14528         * locales/en_BW: Likewise.
14529         * locales/en_CA: Likewise.
14530         * locales/en_DK: Likewise.
14531         * locales/en_GB: Likewise.
14532         * locales/en_IE: Likewise.
14533         * locales/en_NZ: Likewise.
14534         * locales/en_ZA: Likewise.
14535         * locales/en_ZW: Likewise.
14536         * locales/es_AR: Likewise.
14537         * locales/es_BO: Likewise.
14538         * locales/es_CL: Likewise.
14539         * locales/es_CO: Likewise.
14540         * locales/es_DO: Likewise.
14541         * locales/es_EC: Likewise.
14542         * locales/es_ES: Likewise.
14543         * locales/es_HN: Likewise.
14544         * locales/es_MX: Likewise.
14545         * locales/es_PA: Likewise.
14546         * locales/es_PE: Likewise.
14547         * locales/es_PY: Likewise.
14548         * locales/es_SV: Likewise.
14549         * locales/es_US: Likewise.
14550         * locales/es_UY: Likewise.
14551         * locales/es_VE: Likewise.
14552         * locales/et_EE: Likewise.
14553         * locales/fa_IR: Likewise.
14554         * locales/fo_FO: Likewise.
14555         * locales/fr_CA: Likewise.
14556         * locales/fr_CH: Likewise.
14557         * locales/gv_GB: Likewise.
14558         * locales/he_IL: Likewise.
14559         * locales/hr_HR: Likewise.
14560         * locales/id_ID: Likewise.
14561         * locales/is_IS: Likewise.
14562         * locales/it_CH: Likewise.
14563         * locales/iw_IL: Likewise.
14564         * locales/kl_GL: Likewise.
14565         * locales/ko_KR: Likewise.
14566         * locales/kw_GB: Likewise.
14567         * locales/lg_UG: Likewise.
14568         * locales/lt_LT: Likewise.
14569         * locales/lv_LV: Likewise.
14570         * locales/mi_NZ: Likewise.
14571         * locales/nhn_MX: Likewise.
14572         * locales/nl_BE: Likewise.
14573         * locales/pl_PL: Likewise.
14574         * locales/sk_SK: Likewise.
14575         * locales/sl_SI: Likewise.
14576         * locales/sv_FI: Likewise.
14577         * locales/tl_PH: Likewise.
14578         * locales/tr_TR: Likewise.
14579         * locales/vi_VN: Likewise.
14580
14581 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14582
14583         [BZ #17475]
14584         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14585         of tu_IN and bh_IN.
14586
14587 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14588
14589         [BZ #18694]
14590         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14591         bits/wordsize.h.
14592         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14593
14594 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14595
14596         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14597         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14598         (spawn_thread): New function.
14599         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14600         (do_test): ... here.  Use IS_LOADED to test for its
14601         availability.
14602
14603 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14604
14605         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14606
14607 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14608
14609         [BZ #18696]
14610         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14611         si_addr_bnd.
14612         (si_lower): New.
14613         (si_upper): Likewise.
14614
14615 2015-07-16  David S. Miller  <davem@davemloft.net>
14616
14617         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14618
14619 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14620
14621         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14622         buffer.
14623         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14624         fail output information.
14625
14626 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14627
14628         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14629         and strstr-ppc64..
14630         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14631         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14632         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14633         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14634         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14635
14636 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14637
14638         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14639         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14640         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14641         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14642
14643 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14644
14645         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14646         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14647         rtld_hidden_proto.
14648         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14649
14650 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14651
14652         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14653         the test can fail.
14654
14655         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14656
14657         [BZ #18676]
14658         * elf/tst-nodelete-opened.c: New test case.
14659         * elf/tst-nodelete-opened-lib.c: New test case module.
14660         * elf/Makefile (tests, modules-names): Use them.
14661         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14662         early.
14663
14664 2015-07-15  David S. Miller  <davem@davemloft.net>
14665
14666         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14667         futex-intenal.h
14668         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14669         * sysdeps/sparc/sparc64/Makefile: Likewise.
14670         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14671         Remove space from macro define.
14672         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14673
14674 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14675
14676         [BZ #17475]
14677         * locale/iso-639.def: Update Bhili and Tulu language codes as
14678         per iso639-3.
14679
14680 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14681
14682         * elf/tst-leaks1.c (main): Converted to ...
14683         (do_test): ... this.
14684         (TEST_FUNCTION): New macro.
14685         Include test-skeleton.c.
14686         * localedata/tst-langinfo.c (main): Converted to ...
14687         (do_test): ... this.
14688         (TEST_FUNCTION): New macro.
14689         Include test-skeleton.c.
14690         * math/test-fpucw.c (main): Converted to ...
14691         (do_test): ... this.
14692         (TEST_FUNCTION): New macro.
14693         Include test-skeleton.c.
14694         * math/test-tgmath.c (main): Converted to ...
14695         (do_test): ... this.
14696         (TEST_FUNCTION): New macro.
14697         Include test-skeleton.c.
14698         * math/test-tgmath2.c (main): Converted to ...
14699         (do_test): ... this.
14700         (TEST_FUNCTION): New macro.
14701         Include test-skeleton.c.
14702         * setjmp/tst-setjmp.c (main): Converted to ...
14703         (do_test): ... this.
14704         (TEST_FUNCTION): New macro.
14705         Include test-skeleton.c.
14706         * stdio-common/tst-sscanf.c (main): Converted to ...
14707         (do_test): ... this.
14708         (TEST_FUNCTION): New macro.
14709         Include test-skeleton.c.
14710         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14711         (do_test): ... this.
14712         (TEST_FUNCTION): New macro.
14713         Include test-skeleton.c.
14714
14715         * elf/tst-audit9.c (main): Converted to ...
14716         (do_test): ... this.
14717         (TEST_FUNCTION): New macro.
14718         Include test-skeleton.c.
14719
14720 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14721
14722         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14723
14724 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14725
14726         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14727         New variable.
14728
14729 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14730
14731         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14732
14733 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14734
14735         * sysdeps/generic/dl-fileid.h: New file.
14736         * sysdeps/posix/dl-fileid.h: New file.
14737         * sysdeps/nacl/dl-fileid.h: New file.
14738         * include/link.h: Include <dl-fileid.h>.
14739         (struct link_map): Replace l_dev and l_ino with l_file_id.
14740         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14741         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14742         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14743
14744 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14745
14746         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14747
14748 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14749
14750         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14751         Add iff $CXX is set.
14752         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14753         Likewise.
14754         (tst-nodelete-zmodiff): Likewise.
14755         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14756
14757 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14758
14759         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14760
14761 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14762
14763         * sysdeps/aarch64/fpu/math_private.h
14764         (define math_opt_barrier): Add AArch64 version.
14765         (math_force_eval): Likewise.
14766
14767 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14768
14769         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14770
14771 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14772
14773         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14774         %ld with %jd and cast to intmax_t.
14775         (do_test_length_zero): Likewise.
14776
14777 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14778
14779         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14780
14781 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14782
14783         * sysdeps/tile/libm-test-ulps: Regenerated.
14784
14785         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14786         Comment out the whole function, not just its body.
14787
14788 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14789
14790         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14791         locks.
14792
14793         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14794
14795 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14796
14797         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14798         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14799
14800 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14801
14802         * sysdeps/nptl/futex-internal.h: New file.
14803         * sysdeps/nacl/futex-internal.h: New file.
14804         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14805         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14806         error checking.
14807         (setxid_unmark_thread): Likewise.
14808         (__nptl_setxid): Likewise.
14809         (__wait_lookup_done): Likewise.
14810         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14811         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14812         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14813         * nptl/pthread_once.c (clear_once_control): Likewise.
14814         (__pthread_once_slow): Likewise.
14815         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14816         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14817         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14818         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14819         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14820         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14821         Likewise.
14822         (__pthread_rwlock_rdlock): Likewise.
14823         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14824         Likewise.
14825         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14826         Likewise.
14827         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14828         Likewise.
14829         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14830         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14831         Likewise.
14832         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14833         __ASSUME_PRIVATE_FUTEX check.
14834         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14835         Check that shared futexes are supported.
14836         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14837         wrappers with error checking.
14838         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14839         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14840         * nptl/pthread_barrierattr_setpshared.c
14841         (pthread_barrierattr_setpshared): Check that shared futexes are
14842         supported.
14843         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14844         Likewise.
14845         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14846         Likewise.
14847         * nptl/sem_init.c (futex_private_if_supported): Remove.
14848         (__new_sem_init): Adapt and check that shared futexes are supported.
14849         * nptl/sem_open.c (sem_open): Likewise.
14850         * nptl/sem_post.c (futex_wake): Remove.
14851         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14852         (do_futex_wait): Use futex wrappers with error checking.
14853         * nptl/sem_wait.c: Include lowlevellock.h.
14854         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14855         Use futex_supports_pshared.
14856         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14857         Use futex wrappers with error checking.
14858         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14859         Likewise.
14860         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14861         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14862         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14863         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14864         (futex_wake): Likewise.
14865         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14866         (do_futex_wait): Use futex wrappers with error checking.
14867         (__new_sem_wait_slow): Update EINTR handling.
14868         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14869
14870 2015-07-09  Martin Sebor  <msebor@redhat.com>
14871
14872         [BZ #18435]
14873         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14874         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14875         * nptl/Makefile (test-xfail-tst-once5): Define.
14876
14877 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14878
14879         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14880         * elf/dl-minimal.c: For readability, reorder some definitions and
14881         introduce more page breaks.  Include <stdio.h>.
14882         (__libc_fatal): New function.
14883
14884         * include/unistd.h: Add rtld_hidden_proto for _exit.
14885         * posix/_exit.c: Add rtld_hidden_def.
14886         * sysdeps/mach/hurd/_exit.c: Likewise.
14887         * sysdeps/nacl/_exit.c: Likewise.
14888         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14889         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14890
14891 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14892
14893         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14894         bndmov encoding with zero displacement.
14895
14896 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14897             H.J. Lu  <hongjiu.lu@intel.com>
14898
14899         [BZ #18134]
14900         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14901         * sysdeps/i386/configure: Regenerated.
14902         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14903         (_dl_runtime_profile): Save and restore Intel MPX return bound
14904         registers when calling _dl_call_pltexit.  Add
14905         PRESERVE_BND_REGS_PREFIX before return.
14906         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14907         (LRV_BND1_OFFSET): Likewise.
14908         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14909         lrv_bnd1.
14910         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14911         typo in bndmov encoding.
14912         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14913         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14914         branch instructions to preserve bounds.
14915
14916 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14917
14918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14919         [GLIBC_2.22]: Add fmemopen.
14920
14921 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14922
14923         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14924         returns an error, also try to use host port from __mach_host_self for
14925         the __vm_wire call.
14926         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14927
14928 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14929
14930         [BZ #18400]
14931         [BZ #18648]
14932         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14933         Fix pr_uid and pr_gid members.
14934         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14935         definition to elf_greg_t.
14936
14937 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14938
14939         [BZ #18383]
14940         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14941         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14942         * sysdeps/arm/configure: Regenerated.
14943         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14944         (test-xfail-tst-tlsalign-static): Variable removed.
14945
14946         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14947         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14948         rather than explicit 'ln -s'.
14949
14950         * resolv/rpc/netdb.h: New file.
14951         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14952
14953 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14954
14955         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14956         length buffers.
14957         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14958         test-skeleton.c.
14959
14960         [BZ #6544]
14961         [BZ #11216]
14962         [BZ #12836]
14963         [BZ #13151]
14964         [BZ #13152]
14965         [BZ #14292]
14966         * include/stdio.h (fmemopen): Remove hidden prototype.
14967         (__fmemopen): Add new hidden prototype.
14968         * libio/Makefile: Add oldfmemopen object.
14969         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14970         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14971         compliance.
14972         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14973         symbol compatibility.
14974         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14975         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14976         fmemopen.
14977         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14978         on append and read mode.
14979         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14980         fmemopen.
14981         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14982         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14983         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14984         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14985         Likewise.
14986         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14987         [GLIBC_2.22]: Likewise.
14988         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14989         Likewise.
14990         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14991         Likewise.
14992         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14993         [GLIBC_2.22]: Likewise.
14994         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14995         [GLIBC_2.22]: Likewise.
14996         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14997         [GLIBC_2.22]: Likewise.
14998         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14999         [GLIBC_2.22]: Likewise.
15000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15001         [GLIBC_2.22]: Likewise.
15002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15003         [GLIBC_2.22]: Likewise.
15004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15005         [GLIBC_2.22]: Likewise.
15006         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15007         Likewise.
15008         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15009         Likewise.
15010         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15011         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15012         [GLIBC_2.22]: Likewise.
15013         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15014         [GLIBC_2.22]: Likewise.
15015         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15016         [GLIBC_2.22]: Likewise.
15017         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15018         [GLIBC_2.22]: Likewise.
15019         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15020         Likewise.
15021         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15022         Likewise.
15023         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15024         Likewise.
15025         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15026         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15027
15028 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15029
15030         [BZ #18643]
15031         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15032         IPV6_PATHMTU, and IPV6_DONTFRAG.
15033
15034 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15035
15036         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15037         and _IO_UNBUFFERED.
15038         * libio/oldfileops.c: Likewise.
15039         * libio/wfileops.c: Likewise.
15040
15041 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15042
15043         * nscd/selinux.c: Delete selinux/flask.h include.
15044
15045 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15046
15047         [BZ #18641]
15048         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15049         (putpwent): Likewise.
15050         (getpwnam): Likewise.
15051         (getpwent_r): Likewise.
15052         (getpwuid_r): Likewise.
15053         (getpwnam_r): Likewise.
15054         (fgetpwent_r): Likewise.
15055
15056 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15057
15058         [BZ #18557]
15059         * inet/rcmd.c (__validuser2_sa): Check user first to
15060         short-circuit host check.
15061
15062 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15063             Mikhail Ilin  <m.ilin@samsung.com>
15064
15065         [BZ #17833]
15066         * elf/Makefile (tests): Add tst-nodelete.
15067         (modules-names): Add tst-nodelete-uniquemod.
15068         (tst-nodelete-uniquemod.so-no-z-defs): New.
15069         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15070         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15071         ($(objpfx)tst-nodelete): Likewise.
15072         ($(objpfx)tst-nodelete.out): Likewise.
15073         (LDFLAGS-tst-nodelete): Likewise.
15074         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15075         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15076         implement forced object deletion.
15077         (_dl_close): Pass false to _dl_close_worker.
15078         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15079         * elf/tst-nodelete.cc: New file.
15080         * elf/tst-nodeletelib.cc: Likewise.
15081         * elf/tst-znodeletelib.cc: Likewise.
15082         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15083
15084 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15085
15086         [BZ #18508]
15087         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15088         Depend on $(libdl).
15089         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15090         is not called infinitely times.
15091         (backtrace_helper): New function.
15092         (trace_arg): New struct.
15093         (st1): Enlarge stack size.
15094         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15095         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15096         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15097         Likewise.
15098
15099 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15100
15101         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15102
15103 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15104
15105         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15106         Include sys/types.h instead of bits/types.h.
15107         Remove inclusion of bits/wordsize.h.
15108
15109 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15110
15111         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15112         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15113         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15114         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15115         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15116         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15117
15118 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15119
15120         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15121         link-defines.sym.
15122         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15123         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15124         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15125         and LR_SIZE.
15126         * sysdeps/i386/link-defines.sym: New file.
15127
15128 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15129
15130         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15131         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15132         ($(objpfx)tst-audit3): New rule.
15133         ($(objpfx)tst-audit3.out): Likewise.
15134         * sysdeps/i386/tst-audit3.c: New file.
15135         * sysdeps/i386/tst-audit3.h: Likewise.
15136         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15137         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15138
15139 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15140
15141         [BZ #18633]
15142         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15143         pointer in C code.
15144         (__strcat_c): Likewise.
15145         (__strcat_g): Likewise.
15146
15147 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15148
15149         [BZ #18592]
15150         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15151
15152 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15153
15154         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15155         New function.  (__ieee754_sqrtf): New function.
15156         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15157         New function.
15158         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15159         New function.
15160
15161 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15162
15163         * sysdeps/ieee754/support.c: Remove unused file.
15164
15165 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15166
15167         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15168         registers instead of d ones so the layout is kernel abi compatible.
15169         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15170         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15171         Likewise.
15172
15173 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15174
15175         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15176
15177 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15178
15179         [BZ #18619]
15180         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15181         and return argument in case of subnormal argument.
15182
15183 2015-07-01  Martin Sebor  <msebor@redhat.com>
15184
15185         [BZ #18435]
15186         * nptl/Makefile: Add tst-once5.cc.
15187         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15188         Remove macro redefinitions.
15189         * nptl/tst-once5.cc: New test.
15190
15191 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15192
15193         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15194
15195         * sysdeps/arm/libm-test-ulps: Regenerated.
15196
15197         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15198         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15199
15200 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15201
15202         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15203         lll_lock_wait_private and lll_futex_wake probes.
15204
15205         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15206         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15207         Likewise.
15208         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15209         atomic_spin_nop.
15210         * sysdeps/x86_64/bits/atomic.h: Likewise.
15211         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15212         to atomic_spin_nop and move ...
15213         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15214         ... here and ...
15215         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15216         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15217         atomic_spin_nop instead of BUSY_WAIT_NOP.
15218         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15219         Likewise.
15220         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15221         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15222         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15223         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15224         instead of atomic_delay.
15225
15226 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15227
15228         [BZ #18613]
15229         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15230         X_ADJ not X when adjusting exponent.
15231         (__ieee754_gamma_r): Do intermediate computations in
15232         round-to-nearest then adjust overflowing and underflowing results
15233         as needed.
15234         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15235         of X_ADJ not X when adjusting exponent.
15236         (__ieee754_gammaf_r): Do intermediate computations in
15237         round-to-nearest then adjust overflowing and underflowing results
15238         as needed.
15239         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15240         log of X_ADJ not X when adjusting exponent.
15241         (__ieee754_gammal_r): Do intermediate computations in
15242         round-to-nearest then adjust overflowing and underflowing results
15243         as needed.  Use 1.0L not 1.0f as numerator of division.
15244         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15245         log of X_ADJ not X when adjusting exponent.
15246         (__ieee754_gammal_r): Do intermediate computations in
15247         round-to-nearest then adjust overflowing and underflowing results
15248         as needed.  Use 1.0L not 1.0f as numerator of division.
15249         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15250         of X_ADJ not X when adjusting exponent.
15251         (__ieee754_gammal_r): Do intermediate computations in
15252         round-to-nearest then adjust overflowing and underflowing results
15253         as needed.  Use 1.0L not 1.0f as numerator of division.
15254         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15255         to auto-libm-test-in.
15256         (tgamma_test): Use ALL_RM_TEST.
15257         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15258         tests of tgamma with spurious-overflow.
15259         * math/auto-libm-test-out: Regenerated.
15260         * math/gen-libm-have-vector-test.sh: Do not check for START.
15261         * sysdeps/i386/fpu/libm-test-ulps: Update.
15262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15263
15264         [BZ #18612]
15265         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15266         arguments, just return 0.5 times the argument, with underflow
15267         forced as needed.
15268         * math/auto-libm-test-in: Add more tests of j1.
15269         * math/auto-libm-test-out: Regenerated.
15270
15271         [BZ #16559]
15272         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15273         (__ieee754_j1): Force underflow exception for small results.
15274         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15275         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15276         (__ieee754_j1f): Force underflow exception for small results.
15277         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15278         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15279         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15280         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15281         (__ieee754_j1l): Force underflow exception for small results.
15282         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15283         * math/auto-libm-test-in: Add more tests of j1 and jn.
15284         * math/auto-libm-test-out: Regenerated.
15285
15286         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15287         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15288         (PF_MPLS): Likewise.
15289         (AF_IB): Likewise.
15290         (AF_MPLS): Likewise.
15291         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15292         value and macro.
15293         (MS_RMT_MASK): Include MS_LAZYTIME.
15294
15295 2015-06-26  Mel Gorman  <mgorman@suse.de>
15296
15297         [BZ #18502]
15298         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15299         already minimal.
15300
15301 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15302
15303         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15304         (DT_MIPS_NUM): Update.
15305         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15306         DT_MIPS_RLD_MAP_REL.
15307
15308 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15309
15310         [BZ #16559]
15311         [BZ #18602]
15312         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15313         round-to-nearest internally then recompute results that
15314         underflowed to zero in the original rounding mode.
15315         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15316         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15317         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15318         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15319         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15320         * sysdeps/i386/fpu/libm-test-ulps: Update.
15321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15322
15323 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15324
15325         * NEWS: Fixed description of link with vector math library.
15326
15327 2015-06-25  Andreas Schwab  <schwab@suse.de>
15328
15329         [BZ #18549]
15330         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15331         * libio/test-fmemopen.c (do_test): Add test for it.
15332
15333 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15334
15335         [BZ #17841]
15336         * Makeconfig (no-pie-ldflag): New.
15337         (+link): Set to $(+link-pie) if default to PIE.
15338         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15339         * config.make.in (build-pie-default): New.
15340         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15341         is default.  AC_SUBST.
15342         * configure: Regenerated.
15343         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15344
15345 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15346
15347         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15348         to 'unsigned int'.
15349
15350         * resolv/gai_misc.h (struct waitlist): Change type of field
15351         counterp to 'volatile unsigned int *'.
15352         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15353         FUTEXADDR and OLDVAL.
15354         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15355         Give local variable TOTAL type 'volatile unsigned int'.
15356         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15357         * resolv/gai_suspend.c (gai_suspend):
15358         Give local variable CNTR type 'unsigned int'.
15359
15360         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15361         counterp to 'volatile unsigned int *'.
15362         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15363         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15364         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15365         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15366         Give local variable TOTAL type 'volatile unsigned int'.
15367         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15368
15369 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15370
15371         [BZ #18383]
15372         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15373         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15374         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15375         comment for i386/x86-64.
15376         (test-xfail-tst-tlsalign-extern-static): Removed.
15377
15378 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15379
15380         * math/test-double.h: New file.
15381         * math/test-float.h: Likewise.
15382         * math/test-ldouble.h: Likewise.
15383         * math/test-math-inline.h: Likewise.
15384         * math/test-math-no-inline.h: Likewise.
15385         * math/test-math-scalar.h: Likewise.
15386         * math/test-math-vector.h: Likewise.
15387         * math/test-vec-loop.h: Remove file.  Contents moved into
15388         test-math-vector.h.
15389         * math/libm-test.inc (MATHCONST): Do not document macro.
15390         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15391         and test-math-scalar.h.
15392         (FUNC): Remove macro.
15393         (FUNC_TEST): Likewise.
15394         (FLOAT): Likewise.
15395         (MATHCONST): Likewise.
15396         (PRINTF_EXPR): Likewise.
15397         (PRINTF_XEXPR): Likewise.
15398         (PRINTF_NEXPR): Likewise.
15399         (TEST_DOUBLE): Likewise.
15400         (TEST_MATHVEC): Likewise.
15401         (__NO_MATH_INLINES): Likewise.
15402         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15403         and test-math-scalar.h.
15404         (FUNC): Remove macro.
15405         (FUNC_TEST): Likewise.
15406         (FLOAT): Likewise.
15407         (MATHCONST): Likewise.
15408         (PRINTF_EXPR): Likewise.
15409         (PRINTF_XEXPR): Likewise.
15410         (PRINTF_NEXPR): Likewise.
15411         (TEST_FLOAT): Likewise.
15412         (TEST_MATHVEC): Likewise.
15413         (__NO_MATH_INLINES): Likewise.
15414         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15415         and test-math-scalar.h.
15416         (FUNC): Remove macro.
15417         (FUNC_TEST): Likewise.
15418         (FLOAT): Likewise.
15419         (MATHCONST): Likewise.
15420         (PRINTF_EXPR): Likewise.
15421         (PRINTF_XEXPR): Likewise.
15422         (PRINTF_NEXPR): Likewise.
15423         (TEST_DOUBLE): Likewise.
15424         (TEST_MATHVEC): Likewise.
15425         (TEST_INLINE): Likewise.
15426         (__NO_MATH_INLINES): Likewise.
15427         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15428         test-math-scalar.h.
15429         (FUNC): Remove macro.
15430         (FUNC_TEST): Likewise.
15431         (FLOAT): Likewise.
15432         (MATHCONST): Likewise.
15433         (PRINTF_EXPR): Likewise.
15434         (PRINTF_XEXPR): Likewise.
15435         (PRINTF_NEXPR): Likewise.
15436         (TEST_FLOAT): Likewise.
15437         (TEST_MATHVEC): Likewise.
15438         (TEST_INLINE): Likewise.
15439         (__NO_MATH_INLINES): Likewise.
15440         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15441         and test-math-scalar.h.
15442         (FUNC): Remove macro.
15443         (FUNC_TEST): Likewise.
15444         (FLOAT): Likewise.
15445         (MATHCONST): Likewise.
15446         (PRINTF_EXPR): Likewise.
15447         (PRINTF_XEXPR): Likewise.
15448         (PRINTF_NEXPR): Likewise.
15449         (TEST_LDOUBLE): Likewise.
15450         (TEST_MATHVEC): Likewise.
15451         (TEST_INLINE): Likewise.
15452         (__NO_MATH_INLINES): Likewise.
15453         * math/test-ldouble.c: Include test-ldouble.h,
15454         test-math-no-inline.h and test-math-scalar.h.
15455         (FUNC): Remove macro.
15456         (FUNC_TEST): Likewise.
15457         (FLOAT): Likewise.
15458         (MATHCONST): Likewise.
15459         (PRINTF_EXPR): Likewise.
15460         (PRINTF_XEXPR): Likewise.
15461         (PRINTF_NEXPR): Likewise.
15462         (TEST_LDOUBLE): Likewise.
15463         (TEST_MATHVEC): Likewise.
15464         (__NO_MATH_INLINES): Likewise.
15465         * math/test-double-vlen2.h: Include test-double.h,
15466         test-math-no-inline.h and test-math-vector.h.
15467         (FLOAT): Remove macro.
15468         (FUNC): Likewise.
15469         (MATHCONST): Likewise.
15470         (PRINTF_EXPR): Likewise.
15471         (PRINTF_XEXPR): Likewise.
15472         (PRINTF_NEXPR): Likewise.
15473         (TEST_DOUBLE): Likewise.
15474         (TEST_MATHVEC): Likewise.
15475         (__NO_MATH_INLINES): Likewise.
15476         (CNCT): Likewise.
15477         (CONCAT): Likewise.
15478         (WRAPPER_NAME): Likewise.
15479         (WRAPPER_DECL): Likewise.
15480         (WRAPPER_DECL_ff): Likewise.
15481         (WRAPPER_DECL_fFF): Likewise.
15482         (VECTOR_WRAPPER): Likewise.
15483         (VECTOR_WRAPPER_ff): Likewise.
15484         (VECTOR_WRAPPER_fFF): Likewise.
15485         (VEC_LEN): New macro.
15486         * math/test-double-vlen4.h: Include test-double.h,
15487         test-math-no-inline.h and test-math-vector.h.
15488         (FLOAT): Remove macro.
15489         (FUNC): Likewise.
15490         (MATHCONST): Likewise.
15491         (PRINTF_EXPR): Likewise.
15492         (PRINTF_XEXPR): Likewise.
15493         (PRINTF_NEXPR): Likewise.
15494         (TEST_DOUBLE): Likewise.
15495         (TEST_MATHVEC): Likewise.
15496         (__NO_MATH_INLINES): Likewise.
15497         (CNCT): Likewise.
15498         (CONCAT): Likewise.
15499         (WRAPPER_NAME): Likewise.
15500         (WRAPPER_DECL): Likewise.
15501         (WRAPPER_DECL_ff): Likewise.
15502         (WRAPPER_DECL_fFF): Likewise.
15503         (VECTOR_WRAPPER): Likewise.
15504         (VECTOR_WRAPPER_ff): Likewise.
15505         (VECTOR_WRAPPER_fFF): Likewise.
15506         (VEC_LEN): New macro.
15507         * math/test-double-vlen8.h: Include test-double.h,
15508         test-math-no-inline.h and test-math-vector.h.
15509         (FLOAT): Remove macro.
15510         (FUNC): Likewise.
15511         (MATHCONST): Likewise.
15512         (PRINTF_EXPR): Likewise.
15513         (PRINTF_XEXPR): Likewise.
15514         (PRINTF_NEXPR): Likewise.
15515         (TEST_DOUBLE): Likewise.
15516         (TEST_MATHVEC): Likewise.
15517         (__NO_MATH_INLINES): Likewise.
15518         (CNCT): Likewise.
15519         (CONCAT): Likewise.
15520         (WRAPPER_NAME): Likewise.
15521         (WRAPPER_DECL): Likewise.
15522         (WRAPPER_DECL_ff): Likewise.
15523         (WRAPPER_DECL_fFF): Likewise.
15524         (VECTOR_WRAPPER): Likewise.
15525         (VECTOR_WRAPPER_ff): Likewise.
15526         (VECTOR_WRAPPER_fFF): Likewise.
15527         (VEC_LEN): New macro.
15528         * math/test-float-vlen4.h: Include test-float.h,
15529         test-math-no-inline.h and test-math-vector.h.
15530         (FLOAT): Remove macro.
15531         (FUNC): Likewise.
15532         (MATHCONST): Likewise.
15533         (PRINTF_EXPR): Likewise.
15534         (PRINTF_XEXPR): Likewise.
15535         (PRINTF_NEXPR): Likewise.
15536         (TEST_FLOAT): Likewise.
15537         (TEST_MATHVEC): Likewise.
15538         (__NO_MATH_INLINES): Likewise.
15539         (CNCT): Likewise.
15540         (CONCAT): Likewise.
15541         (WRAPPER_NAME): Likewise.
15542         (WRAPPER_DECL): Likewise.
15543         (WRAPPER_DECL_ff): Likewise.
15544         (WRAPPER_DECL_fFF): Likewise.
15545         (VECTOR_WRAPPER): Likewise.
15546         (VECTOR_WRAPPER_ff): Likewise.
15547         (VECTOR_WRAPPER_fFF): Likewise.
15548         (VEC_LEN): New macro.
15549         * math/test-float-vlen8.h: Include test-float.h,
15550         test-math-no-inline.h and test-math-vector.h.
15551         (FLOAT): Remove macro.
15552         (FUNC): Likewise.
15553         (MATHCONST): Likewise.
15554         (PRINTF_EXPR): Likewise.
15555         (PRINTF_XEXPR): Likewise.
15556         (PRINTF_NEXPR): Likewise.
15557         (TEST_FLOAT): Likewise.
15558         (TEST_MATHVEC): Likewise.
15559         (__NO_MATH_INLINES): Likewise.
15560         (CNCT): Likewise.
15561         (CONCAT): Likewise.
15562         (WRAPPER_NAME): Likewise.
15563         (WRAPPER_DECL): Likewise.
15564         (WRAPPER_DECL_ff): Likewise.
15565         (WRAPPER_DECL_fFF): Likewise.
15566         (VECTOR_WRAPPER): Likewise.
15567         (VECTOR_WRAPPER_ff): Likewise.
15568         (VECTOR_WRAPPER_fFF): Likewise.
15569         (VEC_LEN): New macro.
15570         * math/test-float-vlen16.h: Include test-float.h,
15571         test-math-no-inline.h and test-math-vector.h.
15572         (FLOAT): Remove macro.
15573         (FUNC): Likewise.
15574         (MATHCONST): Likewise.
15575         (PRINTF_EXPR): Likewise.
15576         (PRINTF_XEXPR): Likewise.
15577         (PRINTF_NEXPR): Likewise.
15578         (TEST_FLOAT): Likewise.
15579         (TEST_MATHVEC): Likewise.
15580         (__NO_MATH_INLINES): Likewise.
15581         (CNCT): Likewise.
15582         (CONCAT): Likewise.
15583         (WRAPPER_NAME): Likewise.
15584         (WRAPPER_DECL): Likewise.
15585         (WRAPPER_DECL_ff): Likewise.
15586         (WRAPPER_DECL_fFF): Likewise.
15587         (VECTOR_WRAPPER): Likewise.
15588         (VECTOR_WRAPPER_ff): Likewise.
15589         (VECTOR_WRAPPER_fFF): Likewise.
15590         (VEC_LEN): New macro.
15591         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15592         test-vec-loop.h.
15593         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15594         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15595         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15596         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15597         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15598         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15599         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15600
15601 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15602
15603         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15604         (__getlogin_r): ... this.
15605
15606 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15607
15608         [BZ #18594]
15609         * math/s_ccosh.c (__ccosh): Compare with least normal value
15610         instead of comparing class with FP_SUBNORMAL.
15611         * math/s_ccoshf.c (__ccoshf): Likewise.
15612         * math/s_ccoshl.c (__ccoshl): Likewise.
15613         * math/s_cexp.c (__cexp): Likewise.
15614         * math/s_cexpf.c (__cexpf): Likewise.
15615         * math/s_cexpl.c (__cexpl): Likewise.
15616         * math/s_csin.c (__csin): Likewise.
15617         * math/s_csinf.c (__csinf): Likewise.
15618         * math/s_csinh.c (__csinh): Likewise.
15619         * math/s_csinhf.c (__csinhf): Likewise.
15620         * math/s_csinhl.c (__csinhl): Likewise.
15621         * math/s_csinl.c (__csinl): Likewise.
15622         * math/s_ctan.c (__ctan): Likewise.
15623         * math/s_ctanf.c (__ctanf): Likewise.
15624         * math/s_ctanh.c (__ctanh): Likewise.
15625         * math/s_ctanhf.c (__ctanhf): Likewise.
15626         * math/s_ctanhl.c (__ctanhl): Likewise.
15627         * math/s_ctanl.c (__ctanl): Likewise.
15628         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15629         csin, csinh, ctan and ctanh.
15630         * math/auto-libm-test-out: Regenerated.
15631         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15632         * sysdeps/i386/fpu/libm-test-ulps: Update.
15633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15634
15635 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15636
15637         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15638         return value is wrong, print the expected value too.
15639
15640 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15641
15642         [BZ #18585]
15643         * elf/readlib.c (is_gdb_python_file): New.
15644         (process_file): Don't issue errors on filenames with -gdb.py
15645         suffix.
15646
15647 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15648
15649         * math/auto-libm-test-in: Add more tests of csin and csinh.
15650         * math/auto-libm-test-out: Regenerated.
15651         * math/libm-test.inc (csin_test_data): Remove tests moved to
15652         auto-libm-test-in.
15653         (csinh_test_data): Likewise.
15654
15655         [BZ #18593]
15656         * math/s_csin.c (__csin): Negate before rather than after possibly
15657         overflowing multiplication.
15658         * math/s_csinf.c (__csinf): Likewise.
15659         * math/s_csinh.c (__csinh): Likewise.
15660         * math/s_csinhf.c (__csinhf): Likewise.
15661         * math/s_csinhl.c (__csinhl): Likewise.
15662         * math/s_csinl.c (__csinl): Likewise.
15663         * math/auto-libm-test-in: Add some tests of csin and csinh.
15664         * math/auto-libm-test-out: Regenerated.
15665         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15666         (csinh_test_data): Likewise.
15667         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15668
15669         [BZ #18586]
15670         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15671         underflow exception for small results.
15672
15673 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15674
15675         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15676         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15677         variable and included header.
15678         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15679         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15680         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15681         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15682         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15683         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15684         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15685         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15686         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15687         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15688         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15689         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15690         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15691         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15692         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15693         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15694
15695 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15696
15697         [BZ #16526]
15698         [BZ #16538]
15699         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15700         (__sin): Force underflow exception for arguments with small
15701         absolute value.
15702         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15703         (__kernel_sinf): Force underflow exception for arguments with
15704         small absolute value.
15705         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15706         (__kernel_sincosl): Force underflow exception for arguments with
15707         small absolute value.
15708         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15709         (__kernel_sinl): Force underflow exception for arguments with
15710         small absolute value.
15711         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15712         (__kernel_sincosl): Force underflow exception for arguments with
15713         small absolute value.
15714         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15715         (__kernel_sinl): Force underflow exception for arguments with
15716         small absolute value.
15717         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15718         (__kernel_sinl): Force underflow exception for arguments with
15719         small absolute value.
15720         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15721         (__kernel_sinf): Force underflow exception for arguments with
15722         small absolute value.
15723         * math/auto-libm-test-in: Add more tests of sin and sincos.
15724         * math/auto-libm-test-out: Regenerated.
15725
15726         [BZ #18245]
15727         [BZ #18583]
15728         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15729         (__kernel_standard_l): Use feholdexcept and fesetenv around
15730         conversion to double instead of special-casing overflow and
15731         underflow.
15732         * math/libm-test.inc (fmod_test_data): Add more tests.
15733         (remainder_test_data): Likewise.
15734         (sqrt_test_data): Likewise.
15735
15736 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15737
15738         [BZ #17403]
15739         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15740         atomic_read_barrier, atomic_write_barrier): Define.
15741         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15742         atomic_read_barrier, atomic_write_barrier): Define.
15743
15744 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15745
15746         * math/Makefile [$(PERL) != no]
15747         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15748         dependency on libm-test.stmp below the inclusion of Rules.
15749
15750 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15751
15752         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15753         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15754         and included header.
15755         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15756         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15757         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15758         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15759         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15760         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15761         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15762         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15763         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15764         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15765         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15766         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15767         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15768         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15769         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15770         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15771         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15772         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15773         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15774
15775 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15776
15777         [BZ #18371]
15778         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15779         intermediate but not final result might underflow.
15780         * math/s_csqrtf.c (__csqrtf): Likewise.
15781         * math/s_csqrtl.c (__csqrtl): Likewise.
15782         * math/auto-libm-test-in: Add more tests of csqrt.
15783         * math/auto-libm-test-out: Regenerated.
15784         * sysdeps/i386/fpu/libm-test-ulps: Update.
15785
15786         [BZ #18219]
15787         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15788         threshold on absolute value of exponent for which scaling is used.
15789         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15790         * math/auto-libm-test-in: Add more tests of exp2.
15791         * math/auto-libm-test-out: Regenerated.
15792
15793 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15794
15795         [BZ #17977]
15796         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15797         when initializing interface list, based on the bug analysis
15798         and the patch proposed by Eric Newton.
15799         * resolv/tst-res_hconf_reorder.c: New test.
15800         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15801         tst-res_hconf_reorder.
15802         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15803         and $(shared-thread-library).
15804         (tst-res_hconf_reorder-ENV): New variable.
15805
15806         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15807         in comment.
15808
15809 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15810
15811         [BZ #16353]
15812         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15813         (__expm1): Force underflow exception for arguments with small
15814         absolute value.
15815         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15816         (__expm1f): Force underflow exception for arguments with small
15817         absolute value.
15818         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15819         (__expm1): Force underflow exception for arguments with small
15820         absolute value.
15821         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15822         (__expm1f): Force underflow exception for arguments with small
15823         absolute value.
15824         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15825         Check for small arguments before calling __expm1.
15826         * math/auto-libm-test-in: Do not mark underflow exceptions as
15827         possibly missing for bug 16353.
15828         * math/auto-libm-test-out: Regenerated.
15829
15830 2015-06-22  Andreas Schwab  <schwab@suse.de>
15831
15832         [BZ #18513]
15833         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15834         PTR queries.
15835
15836 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15837
15838         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15839
15840         * string/strcoll_l.c: Remove unused struct element idxnow.
15841
15842 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15843
15844         [BZ #18569]
15845         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15846         underflow and return argument in case of subnormal argument.
15847         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15848         Likewise.
15849         * math/auto-libm-test-in: Add more tests of expm1.
15850         * math/auto-libm-test-out: Regenerated.
15851
15852         [BZ #16361]
15853         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15854         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15855         tiny results.
15856         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15857         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15858         tiny results.
15859         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15860         mark underflow exceptions as possibly missing for bug 16361.
15861         * math/auto-libm-test-out: Regenerated.
15862
15863 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15864
15865         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15866         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15867         Remove variable.
15868         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15869         (test-xfail-XOPEN2K8/utmpx.h/conform).
15870
15871         * conform/conformtest.pl ($xerrors): New variable.
15872         (note_error): New function.
15873         (compiletest): New argument $xfail.  Use not_error.
15874         (runtest): Likewise.
15875         (top level): Handle xfail- lines.  Update calls to compiletest and
15876         runtest.  Handle xfail- and optional- in headers listed with
15877         allow-header.
15878         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15879         (O_EXEC): Likewise.
15880         (O_SEARCH): Likewise.
15881         * conform/data/stropts.h-data (ioctl): Likewise.
15882         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15883         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15884         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15885         (msghdr.msg_controllen): Likewise.
15886         (cmsghdr.cmsg_len): Likewise.
15887         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15888         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15889         variable.
15890         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15891         (test-xfail-XPG4/stropts.h/conform): Likewise.
15892         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15893         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15894         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15895         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15896         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15897         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15898         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15899         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15900         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15901         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15902         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15903         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15904         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15905         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15906         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15907         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15908         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15909         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15910         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15911
15912 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15913
15914         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15915         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15916         definitions for proper unfolding of __MATHDECL_VEC.
15917
15918 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15919
15920         * benchtests/bench-strcoll.c:
15921         Include string.h.
15922         (main): Remove unused variable res.
15923
15924 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15925
15926         * timezone/Makefile (%/UTC %/Universal):
15927         Generate test-result files for UTC and Universal.
15928
15929 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15930
15931         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15932
15933 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15934
15935         [BZ #16350]
15936         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15937         for arguments with small absolute value.
15938         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15939         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15940         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15941         (__asinh): Force underflow exception for arguments with small
15942         absolute value.
15943         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15944         (__asinhf): Force underflow exception for arguments with small
15945         absolute value.
15946         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15947         (__asinhl): Force underflow exception for arguments with small
15948         absolute value.
15949         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15950         (__asinhl): Force underflow exception for arguments with small
15951         absolute value.
15952         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15953         (__asinhl): Force underflow exception for arguments with small
15954         absolute value.
15955         * math/auto-libm-test-in: Do not mark underflow exceptions as
15956         possibly missing for bug 16350.
15957         * math/auto-libm-test-out: Regenerated.
15958
15959         * include/bits/ipc.h: Remove file.
15960         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15961         variable.
15962         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15963         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15964         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15965         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15966         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15967         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15968         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15969         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15970         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15971
15972         * math/auto-libm-test-in: Remove spurious underflow allowance for
15973         tests of cexp.
15974         * math/auto-libm-test-out: Regenerated.
15975
15976         [BZ #18558]
15977         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15978         unconditional definition.
15979         (MCAST_BLOCK_SOURCE): Likewise.
15980         (MCAST_UNBLOCK_SOURCE): Likewise.
15981         (MCAST_LEAVE_GROUP): Likewise.
15982         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15983         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15984         (MCAST_MSFILTER): Likewise.
15985         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15986         Remove variable.
15987         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15988         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15989         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15990         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15991         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15992
15993 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15994
15995         * NEWS: Mention addition of x86_64 vector sincosf.
15996         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15997         * math/test-float-vlen4.h: Likewise.
15998         * math/test-float-vlen8.h: Likewise.
15999         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16000         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16001         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16002         * sysdeps/x86_64/fpu/Versions: New versions added.
16003         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16004         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16005         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16006         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16007         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16008         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16009         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16010         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16011         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16012         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16013         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16014         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16015         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16016         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16017         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16018         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16019         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16020         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16021         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16022         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16023         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16024         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16025         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16026         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16027
16028         * NEWS: Mention addition of x86_64 vector sincos.
16029         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16030         * math/math.h (__MATHDECL_VEC): New macro.
16031         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16032         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16033         declaration under condition.
16034         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16035         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16036         TEST_VEC_LOOP change.
16037         * math/test-double-vlen4.h: Likewise.
16038         * math/test-double-vlen8.h: Likewise.
16039         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16040         * math/test-float-vlen4.h: Likewise.
16041         * math/test-float-vlen8.h: Likewise.
16042         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16043         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16044         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16045         * sysdeps/x86_64/fpu/Versions: New versions added.
16046         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16047         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16048         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16049         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16050         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16051         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16052         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16053         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16054         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16055         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16056         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16057         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16058         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16059         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16060         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16061         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16062         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16063         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16064         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16065         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16066         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16067         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16068         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16069         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16070
16071         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16072         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16073         redirections for powf.
16074         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16075         * sysdeps/x86_64/fpu/Versions: New versions added.
16076         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16077         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16078         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16079         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16080         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16081         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16082         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16083         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16084         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16085         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16086         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16087         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16088         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16089         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16090         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16091         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16092         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16093         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16094         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16095         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16096         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16097         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16098         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16099         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16100         * math/test-float-vlen16.h: Fixed 2 argument macro.
16101         * math/test-float-vlen4.h: Likewise.
16102         * math/test-float-vlen8.h: Likewise.
16103         * NEWS: Mention addition of x86_64 vector powf.
16104
16105 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16106
16107         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16108         and redefine.
16109         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16110         and redefine.
16111         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16112         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16113         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16114
16115         [BZ #18553]
16116         * resource/getpriority.c (getpriority): Rename to __getpriority
16117         and define as weak alias of __getpriority.
16118         * resource/setpriority.c (setpriority): Rename to __setpriority
16119         and define as weak alias of __setpriority.
16120         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16121         __getpriority and define as weak alias of __getpriority.
16122         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16123         __setpriority and define as weak alias of __setpriority.
16124         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16125         strong name.
16126         (setpriority): Use __setpriority as strong name.
16127         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16128         __getpriority and define as weak alias of __getpriority.
16129         * include/sys/resource.h (__getpriority): Declare.  Use
16130         libc_hidden_proto.
16131         (__setpriority): Likewise.
16132         (getpriority): Don't use libc_hidden_proto.
16133         (setpriority): Likewise.
16134         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16135         getpriority.  Call __setpriority instead of setpriority.
16136         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16137         Remove variable.
16138
16139         [BZ #18547]
16140         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16141         as weak alias of __getttynam.  Use prototype function definition.
16142         Call __setttyent, __getttyent and __endttyent instead of
16143         setttyent, getttyent and endttyent.
16144         (getttyent): Rename to __getttyent and define as weak alias of
16145         __getttyent.  Call __setttyent instead of setttyent.  Call
16146         __fgets_unlocked instead of fgets_unlocked.
16147         (setttyent): Rename to __setttyent and define as weak alias of
16148         __setttyent.
16149         (endttyent): Rename to __endttyent and define as weak alias of
16150         __endttyent.
16151         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16152         (__setttyent): Likewise.
16153         (__endttyent): Likewise.
16154         (getttyent): Don't use libc_hidden_proto.
16155         (setttyent): Likewise.
16156         (endttyent): Likewise.
16157         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16158         __endttyent instead of setttyent, getttyent and endttyent.
16159         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16160         Remove variable.
16161
16162         [BZ #18546]
16163         * socket/recv.c (__recv): Use libc_hidden_def.
16164         * socket/socket.c (__socket): Likewise.
16165         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16166         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16167         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16168         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16169         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16170         libc_hidden_def.
16171         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16172         libc_hidden_weak.
16173         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16174         Use libc_hidden_proto.
16175         (__recv): Likewise.
16176         * socket/Versions (libc): Export __recv and __socket at version
16177         GLIBC_PRIVATE.
16178         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16179         instead of recv.
16180         (init_mq_netlink): Call __socket instead of socket.
16181         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16182         Remove variable.
16183
16184         [BZ #18545]
16185         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16186         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16187         hidden_weak.
16188         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16189         define as alias of __mq_timedsend.  Use hidden_weak.
16190         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16191         __mq_timedsend as strong name.
16192         (mq_timedreceive): Use __mq_timedreceive as strong name.
16193         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16194         (__mq_timedreceive): Likewise.
16195         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16196         __mq_timedreceive instead of mq_timedreceive.
16197         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16198         instead of mq_timedsend.
16199         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16200         Remove variable.
16201
16202         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16203         hidden_def and hidden_weak instead of libc_hidden_def and
16204         libc_hidden_weak.
16205         (top level): Refer to hidden_def in comment.
16206         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16207         macro.  Use it instead of libc_hidden_def.
16208         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16209         specify __GI_* name explicitly.
16210         (mq_timedreceive): Likewise.
16211         (mq_setattr): Likewise.
16212
16213         [BZ #18544]
16214         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16215         __pthread_barrier_init and define as weak alias of
16216         __pthread_barrier_init.
16217         * sysdeps/sparc/nptl/pthread_barrier_init.c
16218         (pthread_barrier_init): Likewise.
16219         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16220         __pthread_barrier_wait and define as weak alias of
16221         __pthread_barrier_wait.
16222         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16223         (pthread_barrier_wait): Likewise.
16224         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16225         (pthread_barrier_wait): Likewise.
16226         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16227         (pthread_barrier_wait): Likewise.
16228         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16229         (pthread_barrier_wait): Likewise.
16230         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16231         __pthread_barrier_wait at version GLIBC_PRIVATE.
16232         * include/pthread.h (__pthread_barrier_init): Declare.
16233         (__pthread_barrier_wait): Likewise.
16234         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16235         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16236         (helper_thread): Likewise.
16237         (init_mq_netlink): Call __pthread_barrier_init instead of
16238         pthread_barrier_init.
16239
16240         [BZ #18542]
16241         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16242         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16243         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16244         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16245         vswscanf.
16246         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16247         Remove variable.
16248
16249         [BZ #18540]
16250         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16251         strong alias of _IO_fflush.  Use libc_hidden_def.
16252         * libio/iofflush_u.c (fflush_unlocked): Rename to
16253         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16254         Use libc_hidden_weak.
16255         * include/stdio.h (__fflush_unlocked): Declare.  Use
16256         libc_hidden_proto.
16257         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16258         fflush_unlocked.
16259         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16260         Remove variable.
16261
16262         [BZ #18539]
16263         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16264         define as weak alias of __addseverity.
16265         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16266         Remove variable.
16267         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16268         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16269         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16270
16271         [BZ #18536]
16272         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16273         (__tfind): Likewise.
16274         (__tdelete): Likewise.
16275         (__twalk): Likewise.
16276         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16277         __twalk to GLIBC_PRIVATE.
16278         * include/search.h (__tsearch): Use libc_hidden_proto.
16279         (__tfind): Likewise.
16280         (__tdelete): Likewise.
16281         (__twalk): Likewise.
16282         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16283         Call __tdelete instead of tdelete.
16284         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16285         tfind.  Call __tsearch instead of tsearch.
16286         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16287         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16288         Remove variable.
16289         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16290
16291         [BZ #18534]
16292         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16293         (dprintf): Define as a weak alias of __dprintf, not a strong
16294         alias.
16295         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16296         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16297         dprintf.
16298         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16299         Remove variable.
16300         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16301         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16302
16303         [BZ #18533]
16304         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16305         not a strong alias.
16306         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16307         Remove variable.
16308
16309         [BZ #18532]
16310         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16311         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16312         (in6addr_loopback): Rename to __in6addr_loopback and define as
16313         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16314         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16315         libc_hidden_proto.
16316         (__in6addr_any): Likewise.
16317         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16318         in6addr_any.
16319         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16320         variable.
16321         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16322
16323 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16324
16325         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16326         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16327         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16328         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16329         redirections for pow.
16330         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16331         * sysdeps/x86_64/fpu/Versions: New versions added.
16332         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16333         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16334         build of SSE, AVX2 and AVX512 IFUNC versions.
16335         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16336         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16337         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16338         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16339         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16340         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16341         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16342         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16343         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16344         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16345         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16346         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16347         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16348         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16349         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16350         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16351         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16352         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16353         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16354         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16355         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16356         * NEWS: Mention addition of x86_64 vector pow.
16357
16358         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16359         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16360         redirections for expf.
16361         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16362         * sysdeps/x86_64/fpu/Versions: New versions added.
16363         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16364         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16365         build of SSE, AVX2 and AVX512 IFUNC versions.
16366         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16367         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16368         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16369         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16370         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16371         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16372         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16373         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16374         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16375         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16376         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16377         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16378         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16379         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16380         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16381         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16382         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16383         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16384         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16385         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16386         * NEWS: Mention addition of x86_64 vector expf.
16387
16388         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16389         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16390         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16391         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16392         redirections for exp.
16393         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16394         * sysdeps/x86_64/fpu/Versions: New versions added.
16395         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16396         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16397         build of SSE, AVX2 and AVX512 IFUNC versions.
16398         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16399         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16400         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16401         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16402         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16403         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16404         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16405         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16406         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16407         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16408         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16409         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16410         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16411         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16412         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16413         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16414         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16415         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16416         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16417         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16418         * NEWS: Mention addition of x86_64 vector exp.
16419
16420         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16421         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16422         redirections for logf.
16423         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16424         * sysdeps/x86_64/fpu/Versions: New versions added.
16425         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16426         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16427         build of SSE, AVX2 and AVX512 IFUNC versions.
16428         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16429         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16430         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16431         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16432         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16433         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16434         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16435         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16436         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16437         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16438         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16439         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16440         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16441         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16442         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16443         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16444         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16445         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16446         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16447         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16448         * NEWS: Mention addition of x86_64 vector logf.
16449
16450         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16451         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16452         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16453         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16454         redirections for log.
16455         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16456         * sysdeps/x86_64/fpu/Versions: New versions added.
16457         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16458         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16459         build of SSE, AVX2 and AVX512 IFUNC versions.
16460         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16461         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16462         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16463         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16464         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16465         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16466         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16467         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16468         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16469         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16470         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16471         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16472         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16473         test.
16474         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16475         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16476         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16477         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16478         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16479         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16480         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16481         * NEWS: Mention addition of x86_64 vector log.
16482
16483 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16484
16485         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16486         cfi_adjust_cfa_offset argument.
16487         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16488         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16489
16490         [BZ #18034]
16491         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16492         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16493         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16494         ordering using ldar.
16495         (_dl_tlsdesc_dynamic): Likewise.
16496         (_dl_tlsdesc_return_lazy): Likewise.
16497         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16498         relaxed atomics instead of volatile and synchronize with release store.
16499         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16500         volatile.
16501         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16502
16503 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16504
16505         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16506         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16507         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16508         * sysdeps/x86_64/fpu/Versions: New versions added.
16509         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16510         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16511         build of SSE, AVX2 and AVX512 IFUNC versions.
16512         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16513         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16514         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16515         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16516         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16517         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16518         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16519         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16520         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16521         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16522         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16523         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16524         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16525         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16526         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16527         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16528         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16529         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16530         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16531         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16532         * NEWS: Mention addition of x86_64 vector sinf.
16533
16534 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16535
16536         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16537         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16538         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16539         Remove variable.
16540         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16541         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16542
16543 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16544
16545         [BZ #18530]
16546         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16547         strong alias of _IO_fputs.  Use libc_hidden_def.
16548         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16549         and define as weak alias of __fputs_unlocked.  Use
16550         libc_hidden_weak.
16551         * include/stdio.h (__fputs_unlocked): Declare.  Use
16552         libc_hidden_proto.
16553         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16554         fputs_unlocked.
16555
16556         [BZ #18529]
16557         * resolv/netdb.h [__USE_POSIX]: Change condition to
16558         [__USE_XOPEN2K].
16559         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16560         not expect.
16561         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16562         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16563         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16564         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16565         [XPG4 || UNIX98] (AI_ALL): Likewise.
16566         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16567         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16568         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16569         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16570         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16571         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16572         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16573         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16574         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16575         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16576         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16577         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16578         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16579         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16580         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16581         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16582         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16583         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16584         [XPG4 || UNIX98] (gai_strerror): Likewise.
16585         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16586         [XPG4 || UNIX98] (getnameinfo): Likewise.
16587
16588         [BZ #18528]
16589         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16590         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16591         __USE_XOPEN2K8].
16592         (getgrent): Likewise.
16593         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16594         expect.
16595         [XPG3 || POSIX2008] (endgrent): Likewise.
16596         [XPG3] (setgrent): Likewise.
16597         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16598         variable.
16599         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16600
16601         [BZ #18527]
16602         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16603         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16604         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16605         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16606         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16607         * include/unistd.h (__getlogin_r): Declare.  Use
16608         libc_hidden_proto.
16609         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16610         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16611         variable.
16612         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16613         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16614         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16615
16616 2015-06-12  Martin Sebor  <msebor@redhat.com>
16617
16618         [BZ #18512]
16619         * Makerules (check-install-supported): New target.
16620         (install): Add check-install-supported as a dependency.
16621         * manual/install.texi (Installing the C Library): Document
16622         that overriding prefix and exec_prefix is not supported.
16623         Mention DESTDIR.
16624         * INSTALL: Regenerate from the above.
16625
16626 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16627
16628         [BZ #18519]
16629         * posix/Versions (libc): Export __libc_pread at version
16630         GLIBC_PRIVATE.
16631         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16632         instead of pread.
16633         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16634         variable.
16635
16636         [BZ #18522]
16637         * misc/efgcvt_r.c
16638         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16639         (cvt_symbol): Use weak_alias instead of strong_alias.
16640         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16641         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16642         Remove variable.
16643         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16644         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16645
16646         [BZ #18520]
16647         * inet/herrno.c (h_errno): Rename to __h_errno.
16648         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16649         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16650         to __h_errno instead of h_errno.
16651         * nptl/herrno.c (h_errno): Rename to __h_errno.
16652         (__h_errno_location): Refer to __h_errno not h_errno.
16653         * resolv/Versions (h_errno): Rename to __h_errno.
16654         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16655         Remove variable.
16656         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16657
16658 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16659
16660         * configure.ac: More strict check for AVX512 assembler support.
16661         * configure: Regenerated.
16662
16663         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16664         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16665         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16666         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16667         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16668         * sysdeps/x86_64/fpu/Versions: New versions added.
16669         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16670         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16671         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16672         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16673         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16674         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16675         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16676         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16677         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16678         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16679         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16680         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16681         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16682         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16683         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16684         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16685         test.
16686         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16687         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16688         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16689         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16690         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16691         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16692         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16693         * NEWS: Mention addition of x86_64 vector sin.
16694
16695 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16696
16697         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16698         comment.
16699
16700 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16701
16702         [BZ #18479]
16703         * nptl/pt-interp.c: New file.
16704         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16705         Add pt-interp.
16706         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16707         $(common-objpfx)runtime-linker.h.
16708
16709 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16710
16711         * Makeconfig (+interp): Remove unused variable.
16712         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16713         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16714         $(elf-objpfx)runtime-linker.h.
16715         ($(elf-objpfx)runtime-linker.h): Rename to
16716         $(common-objpfx)runtime-linker.h and move ...
16717         * Makerules [$(build-shared) = yes]: ... here.
16718         * elf/interp.c: Include <runtime-linker.h> instead of
16719         <elf/runtime-linker.h>.
16720
16721 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16722
16723         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16724         (__gettimeofday_syscall): Remove vsyscall fallback.
16725         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16726         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16727         Add syscall fallback function.
16728         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16729         if vDSO is not present.
16730         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16731         fallback function.
16732         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16733         present.
16734         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16735         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16736
16737 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16738
16739         [BZ #18497]
16740         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16741         of wcscmp.
16742         (wcscmp): Define as weak alias of WCSCMP.
16743         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16744         wcscoll.
16745         (USE_HIDDEN_DEF): Define.
16746         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16747         __wcscoll.  Don't use libc_hidden_weak.
16748         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16749         wcscmp.
16750         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16751         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16752         __GI_wcscmp.
16753         (weak_alias): Undefine and redefine.
16754         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16755         __wcscmp and define as weak alias of __wcscmp.
16756         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16757         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16758         (__wcscoll): Likewise.
16759         (wcscmp): Don't use libc_hidden_proto.
16760         (wcscoll): Likewise.
16761         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16762         wcscoll.
16763         * posix/regexec.c (check_node_accept_bytes): Likewise.
16764         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16765         variable.
16766         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16767         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16768
16769         [BZ #18507]
16770         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16771         __fstatvfs and define as weak alias of __fstatvfs.  Use
16772         libc_hidden_weak.
16773         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16774         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16775         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16776         Define as alias of __fstatvfs, not fstatvfs.
16777         (fstatvfs64): Likewise.
16778         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16779         Define as alias of __statvfs, not statvfs.
16780         (statvfs64): Likewise.
16781         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16782         Remove variable.
16783
16784 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16785
16786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16787         (HAVE_GETCPU_VSYSCALL): Define.
16788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16789         (HAVE_GETCPU_VSYSCALL): Likewise.
16790         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16791         * sysdeps/unix/sysv/linux/sched_getcpu.c
16792         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16793         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16794         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16795         prototype.
16796         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16797         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16798         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16799         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16800         Define.
16801         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16802         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16803         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16804         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16805
16806 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16807
16808         * sysdeps/x86_64/fpu/Makefile: New file.
16809         * sysdeps/x86_64/fpu/Versions: New file.
16810         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16811         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16812         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16813         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16814         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16815         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16816         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16817         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16818         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16819         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16820         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16821         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16822         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16823         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16824         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16825         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16826         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16827         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16828         * sysdeps/x86_64/configure: Regenerated.
16829         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16830         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16831         * manual/install.texi (Configuring and compiling): Document
16832         --disable-mathvec.
16833         * INSTALL: Regenerated.
16834         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16835
16836         * math/Makefile: Added rules for vector tests.
16837         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16838         declaration under condition.
16839         * math/test-double-vlen2.h: New file.
16840         * math/test-double-vlen4.h: New file.
16841         * math/test-double-vlen8.h: New file.
16842         * math/test-vec-loop.h: Added initialization macro.
16843         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16844         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16845         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16846         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16847         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16848         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16849         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16850         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16851         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16852         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16853         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16854
16855         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16856         * sysdeps/x86_64/fpu/Versions: New versions added.
16857         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16858         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16859         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16860         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16861         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16862         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16863         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16864         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16865         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16866         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16867         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16868         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16869         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16870         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16871         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16872         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16873         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16874         * NEWS: Mention addition of x86_64 vector cosf.
16875
16876         * math/Makefile: Added CFLAGS for new tests.
16877         * math/test-float-vlen16.h: New file.
16878         * math/test-float-vlen4.h: New file.
16879         * math/test-float-vlen8.h: New file.
16880         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16881         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16882         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16883         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16884         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16885         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16886         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16887         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16888         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16889         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16890         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16891
16892 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16893
16894         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16895         * locale/programs/ld-ctype.c: Likewise.
16896
16897 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16898
16899         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16900         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16901         bit_ZMM16_31_state): New macro.
16902         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16903         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16904
16905 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16906
16907         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16908
16909 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16910
16911         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16912
16913 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16914
16915         [BZ #18498]
16916         * libio/memstream.c (open_memstream): Rename to __open_memstream
16917         and define as weak alias of __open_memstream.
16918         * include/stdio.h (__open_memstream): Declare.  Use
16919         libc_hidden_proto.
16920         (open_memstream): Don't use libc_hidden_proto.
16921         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16922         open_memstream.
16923         * posix/getopt.c (_getopt_internal_r): Likewise.
16924         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16925         variable.
16926         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16927         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16928         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16929
16930         [BZ #18496]
16931         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16932         instead of wcrtomb.
16933
16934         [BZ #18483]
16935         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16936         [__USE_XOPEN2K8].  Remove redundant #endif.
16937         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16938         Remove redundant #if.
16939         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16940         Remove variable.
16941         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16942         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16943
16944         [BZ #18495]
16945         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16946         (__iswlower): Likewise.
16947         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16948         (__iswlower): Likewise.
16949         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16950         instead of towlower.
16951         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16952         instead of iswlower.  Call __towupper instead of towupper.
16953         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16954         instead of iswalnum.
16955
16956 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16957
16958         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16959         errors to stderr.
16960
16961 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16962
16963         [BZ #15661]
16964         [BZ #17322]
16965         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16966         Check for overflow properly.  Check for O_APPEND.  Ignore large
16967         file system block sizes.  Add comments about problems.
16968         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16969         * manual/filesys.texi (Storage Allocation): New node.
16970
16971 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16972
16973         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16974         cancellable syscalls.
16975         (SYS_ify): Add guard to no redefine it.
16976         (INLINE_SYSCALL): Likewise.
16977         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16978         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16979         SYSCALL_CANCEL instead.
16980         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16981         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16982         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16983         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16984         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16985         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16986         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16987         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16988         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16989         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16990         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16991         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16992         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16993         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16994         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16995         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16996         Likewise.
16997         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16998         (__libc_pread64): Likewise.
16999         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17000         (__libc_preadv): Likewise.
17001         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17002         (__libc_readv64): Likewise.
17003         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17004         (__libc_pwrite): Likewise.
17005         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17006         (__libc_pwrite64): Likewise.
17007         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17008         (__libc_pwritev): Likewise.
17009         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17010         (__libc_pwritev64): Likewise.
17011         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17012         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17013         (sync_file_range): Likewise.
17014         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17015         Likewise.
17016         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17017         Likewise.
17018         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17019         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17020         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17021         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17022         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17023         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17024         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17025         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17027         Likewise.
17028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17029         (__libc_read64): Likewise.
17030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17031         Likewise.
17032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17033         Likewise.
17034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17035         Likewise.
17036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17037         Likewise.
17038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17039         (__libc_pread64): Likewise.
17040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17041         Likewise.
17042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17043         (__libc_pwrite64): Likewise.
17044         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17045         (sync_file_range): Likewise.
17046         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17047         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17048         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17049         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17050         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17051         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17052         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17053         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17054         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17055         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17056         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17057         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17058         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17059         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17060         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17061         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17062         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17063         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17064         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17065         Likewise.
17066         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17067         Likewise.
17068         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17069         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17070         Likewise.
17071         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17072         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17073         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17074         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17075         Likewise.
17076         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17077         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17078         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17079         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17080         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17081
17082 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17083
17084         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17085         Include dl-vdso.
17086         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17087         Use VDSO routines for gettimeofday, clock_gettime if
17088         available.
17089         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17090         Declare VDSO symbols.
17091         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17092         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17093         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17094         * sysdeps/unix/sysv/linux/arm/Versions: Add
17095         __vdso_clock_gettime.
17096
17097 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17098
17099         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17100         be an inline implementation regardless of library is built within.
17101         (open_not_cancel_2): Likewise.
17102         (__read_nocancel): Likewise.
17103         (__write_nocancel): Likewise.
17104         (openat_not_cancel): Likewise.
17105         (openat_not_cancel_3): Likewise.
17106         (openat64_not_cancel): Likewise.
17107         (openat64_not_cancel_3): Likewise.
17108         (__close_nocancel): Likewise.
17109         (pause_not_cancel): Likewise.
17110         (nanosleep_not_cancel): Likewise.
17111         (sigsuspend_not_cancel): Likewise.
17112
17113 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17114
17115         [BZ #14958]
17116         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17117         wake-up.
17118         (__pthread_rwlock_rdlock_slow): Likewise.
17119         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17120         Likewise.
17121         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17122         Likewise.
17123         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17124         * nptl/tst-rwlock16.c: New file.
17125         * nptl/Makefile (tests): Add new test.
17126
17127 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17128
17129         [BZ #18324]
17130         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17131         missing wake-up of readers.
17132         * nptl/tst-rwlock15.c: New file.
17133         * nptl/Makefile (tests): Add new test.
17134
17135 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17136
17137         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17138         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17139         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17140         and __nacl_supply_interface_rtld.
17141         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17142         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17143         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17144         Add __nacl_supply_interface_rtld.
17145         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17146
17147 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17148
17149         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17150         isfinite.
17151         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17152         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17153
17154 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17155
17156         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17157         __signbit* with standard C99 macros.
17158         * math/e_exp10l.c: Likewise.
17159         * math/e_exp2l.c: Likewise.
17160         * math/e_scalb.c: Likewise.
17161         * math/e_scalbf.c: Likewise.
17162         * math/e_scalbl.c: Likewise.
17163         * math/s_ldexp.c: Likewise.
17164         * math/s_ldexpf.c: Likewise.
17165         * math/s_ldexpl.c: Likewise.
17166         * math/w_atan2.c: Likewise.
17167         * math/w_atan2f.c: Likewise.
17168         * math/w_atan2l.c: Likewise.
17169         * math/w_cosh.c: Likewise.
17170         * math/w_coshf.c: Likewise.
17171         * math/w_coshl.c: Likewise.
17172         * math/w_exp10.c: Likewise.
17173         * math/w_exp10f.c: Likewise.
17174         * math/w_exp10l.c: Likewise.
17175         * math/w_exp2.c: Likewise.
17176         * math/w_exp2f.c: Likewise.
17177         * math/w_exp2l.c: Likewise.
17178         * math/w_fmod.c: Likewise.
17179         * math/w_fmodf.c: Likewise.
17180         * math/w_fmodl.c: Likewise.
17181         * math/w_hypot.c: Likewise.
17182         * math/w_hypotf.c: Likewise.
17183         * math/w_hypotl.c: Likewise.
17184         * math/w_jnl.c: Likewise.
17185         * math/w_lgamma.c: Likewise.
17186         * math/w_lgamma_r.c: Likewise.
17187         * math/w_lgammaf.c: Likewise.
17188         * math/w_lgammaf_r.c: Likewise.
17189         * math/w_lgammal.c: Likewise.
17190         * math/w_lgammal_r.c: Likewise.
17191         * math/w_pow.c: Likewise.
17192         * math/w_powf.c: Likewise.
17193         * math/w_powl.c: Likewise.
17194         * math/w_remainder.c: Likewise.
17195         * math/w_remainderf.c: Likewise.
17196         * math/w_remainderl.c: Likewise.
17197         * math/w_scalb.c: Likewise.
17198         * math/w_scalbf.c: Likewise.
17199         * math/w_scalbl.c: Likewise.
17200         * math/w_scalbln.c: Likewise.
17201         * math/w_scalblnf.c: Likewise.
17202         * math/w_scalblnl.c: Likewise.
17203         * math/w_sinh.c: Likewise.
17204         * math/w_sinhf.c: Likewise.
17205         * math/w_sinhl.c: Likewise.
17206         * math/w_tgamma.c: Likewise.
17207         * math/w_tgammaf.c: Likewise.
17208         * math/w_tgammal.c: Likewise.
17209         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17210         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17211         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17212         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17213         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17214         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17215         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17216         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17217         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17218         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17219         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17220         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17221         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17222         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17223         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17224         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17225         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17226         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17227         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17228         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17229         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17230         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17231         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17232         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17233         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17234         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17235         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17236         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17237         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17238         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17239         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17240         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17241         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17242         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17243         * stdio-common/printf_fp.c: Likewise.
17244         * stdio-common/printf_fphex.c: Likewise.
17245         * stdio-common/printf_size.c: Likewise.
17246
17247 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17248
17249         [BZ #18470]
17250         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17251         strnlen.
17252         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17253         Remove variable.
17254         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17255         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17256         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17257         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17258         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17259         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17260         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17261         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17262         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17263         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17264
17265         [BZ #18468]
17266         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17267         weak alias of __wmemchr.  Use libc_hidden_weak.
17268         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17269         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17270         instead of wmemchr.
17271
17272 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17273
17274         [BZ #18383]
17275         * elf/tst-tlsalign-extern.c: New file.
17276         * elf/tst-tlsalign-extern-static.c: New file.
17277         * elf/tst-tlsalign-vars.c: New file.
17278         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17279         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17280         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17281         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17282         (test-xfail-tst-tlsalign-extern-static): New variable.
17283
17284 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17285
17286         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17287         Use variable name _sc_err instead of err.
17288         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17289         instead of ret.
17290         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17291         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17292         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17293         (INLINE_SYSCALL): Likewise.
17294
17295         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17296         * include/string.h (__strnlen): Use libc_hidden_proto.
17297         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17298         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17299         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17300         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17301         (libc_hidden_def): Undefine and redefine.
17302         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17303         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17304         __GI_strnlen.
17305         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17306         libc_hidden_def.
17307         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17308
17309         [BZ #18469]
17310         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17311         weak alias of __towlower.  Use libc_hidden_weak.
17312         (towupper): Rename to __towupper and define as weak alias of
17313         __towupper.  Use libc_hidden_weak.
17314         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17315         (__towupper): Likewise.
17316         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17317         __towlower instead of towlower.
17318
17319 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17320
17321         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17322         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17323
17324 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17325
17326         * sysdeps/aarch64/libm-test-ulps: Update.
17327
17328 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17329
17330         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17331         Define.
17332         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17333         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17334         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17335         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17336         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17337         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17338         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17339
17340 2015-06-01  Martin Sebor  <msebor@redhat.com>
17341
17342         [BZ #18116]
17343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17344         (__setcontext): Use extended four-operand version of mtsf whenever
17345         possible.
17346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17347         (__novec_swapcontext): Likewise.
17348
17349 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17350
17351         * benchtests/scripts/compare_bench.py: New file.
17352         * benchtests/scripts/import_bench.py (mean): New function.
17353         (split_list): Likewise.
17354         (do_for_all_timings): Likewise.
17355         (compress_timings): Likewise.
17356
17357         * benchtests/scripts/import_bench.py: New file.
17358         * benchtests/scripts/validate_benchout.py: Import import_bench
17359         instead of jsonschema.
17360         (validate_bench): Remove function.
17361         (main): Use import_bench.
17362
17363 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17364
17365         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17366         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17367
17368 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17369
17370         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17371
17372 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17373
17374         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17375         set THREAD_SELF->tid to a magic value and futex-wake it.
17376         Pass its address to the thread_exit system call.
17377         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17378         bit is clear.
17379         * sysdeps/nacl/lowlevellock.h: New file.
17380         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17381
17382         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17383         Add TIMEOUT to current time, don't subtract it.
17384
17385 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17386
17387         [BZ #2981]
17388         [BZ #18422]
17389         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17390         ($(objpfx)tst-audit2.out): Also depend on
17391         $(objpfx)tst-auditmod9b.so.
17392         * elf/tst-audit2.c: Include <dlfcn.h>.
17393         (calloc_called): New.
17394         (calloc): Allow to be called more than once.
17395         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17396
17397 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17398
17399         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17400         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17401
17402 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17403
17404         * stdlib/monetary.h: Fix comment.
17405
17406 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17407
17408         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17409         Avoid using variables in #defines that might cause shadowing.
17410         (INTERNAL_VSYSCALL_CALL): Likewise.
17411
17412 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17413
17414         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17415
17416         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17417         * nptl/lll_timedlock_wait.c: ... to this new file.
17418         * nptl/Makefile (libpthread-routines): Add it.
17419         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17420         * nptl/lll_timedwait_tid.c: ... to this new file.
17421         * nptl/Makefile (libpthread-routines): Add it.
17422         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17423         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17424         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17425         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17426         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17427         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17428         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17429         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17430         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17431         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17432
17433 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17434
17435         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17436         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17437         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17438         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17439         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17440         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17441         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17442         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17443         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17444         * sysdeps/unix/sysv/linux/tile/sysdep.h
17445         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17446         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17447         using vDSO syscall macro.
17448
17449 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17450
17451         [BZ #17293]
17452         * uk_UA: Fix sorting order for Ukrainian locale
17453
17454 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17455
17456         * stdlib/monetary.h: Fix comment.
17457
17458 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17459
17460         [BZ #18234]
17461         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17462         st_mtim and st_ctim members.
17463         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17464         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17465         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17466         (struct stat64): Likewise.
17467         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17468         (struct stat64): Likewise.
17469         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17470         (struct stat64): Likewise.
17471
17472 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17473
17474         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17475         Define and include sysdep-vdso.h.
17476         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17477         Likewise.
17478         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17479         Likewise.
17480         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17481         Define with VDSO_SYMBOL and use PTR_MANGLE.
17482         (__vdso_clock_gettime): Likewise.
17483         (__vdso_clock_getres): Likewise.
17484         (_libc_vdso_platform_setup): Likewise.
17485         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17486         Likewise.
17487         (_libc_vdso_platform_setup): Likewise.
17488         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17489         Likewise.
17490         (__vdso_clock_gettime): Likewise.
17491         (__vdso_clock_getres): Likewise.
17492         (__vdso_get_tbfreq): Likewise.
17493         (__vdso_getcpu): Likewise.
17494         (__vdso_time): Likewise.
17495         (__vdso_sigtramp_rt64): Likewise.
17496         (__vdso_signtramp32): Likewise.
17497         (__vdso_sigtramp_rt32): Likewise.
17498         (_libc_vdso_platform_setup): Likewise.
17499         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17500         Likewise.
17501         (__vdso_clock_gettime): Likewise.
17502         (__vdso_clock_getres): Likewise.
17503         (_libc_vdso_platform_setup): Likewise.
17504         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17505         Likewise.
17506         (__vdso_clock_gettime): Likewise.
17507         (_libc_vdso_platform_setup): Likewise.
17508         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17509         Likewise.
17510         (__vdso_getcpu): Likewise.
17511         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17512         Use VDSO_SYMBOL macro to define.
17513         (__vdso_clock_gettime): Likewise.
17514         (__vdso_clock_getres): Likewise.
17515         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17516         Likewise.
17517         (__vdso_clock_gettime): Likewise.
17518         (__vdso_clock_getres): Likewise.
17519         (__vdso_get_tbfreq): Likewise.
17520         (__vdso_getcpu): Likewise.
17521         (__vdso_time): Likewise.
17522         (__vdso_sigtramp_rt64): Likewise.
17523         (__vdso_signtramp32): Likewise.
17524         (__vdso_sigtramp_rt32): Likewise.
17525         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17526         Likewise.
17527         (__vdso_clock_gettime): Likewise.
17528         (__vdso_clock_getres): Likewise.
17529         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17530         Likewise.
17531         (__vdso_clock_gettime): Likewise.
17532         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17533         Likewise.
17534         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17535         macro.
17536         (INTERNAL_VSYSCALL): Likewise.
17537         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17538         Remove macro.
17539         (INTERNAL_VSYSCALL): Likewise.
17540         (INTERNAL_VSYSCALL_NCS): Likewise.
17541         (INTERNAL_VSYSCALL_CALL): New macro.
17542         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17543         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17544         Likewise.
17545         (INTERNAL_VSYSCALL): Likewise.
17546         (INTERNAL_VSYSCALL_NCS): Likewise.
17547         (INTERNAL_VSYSCALL_CALL): New macro.
17548         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17550         (INLINE_VSYSCALL): Remove macro.
17551         (INTERNAL_VSYSCALL): Remove macro.
17552         (INTERNAL_VSYSCALL_NCS): Remove macro.
17553         (INTERNAL_VSYSCALL_CALL): New macro.
17554         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17555         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17556         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17557         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17558         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17560         (INLINE_VSYSCALL): Remove macro.
17561         (INTERNAL_VSYSCALL): Likewise.
17562         (INTERNAL_VSYSCALL_NCS): Likewise.
17563         (INTERNAL_VSYSCALL_CALL): New macro.
17564         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17565         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17566         PTR_DEMANGLE on vDSO pointer.
17567         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17568         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17569         macro.
17570         (INTERNAL_SYSCALL): Likewise.
17571         (INTERNAL_VSYSCALL_NCS): Remove macro.
17572         (INTERNAL_VSYSCALL_CALL): New macro.
17573         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17574         Remove macro.
17575         (INTERNAL_VSYSCALL): Likewise.
17576         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17577         sysdep-vdso.h instead of libc-vdso.h.
17578         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17579         definition.
17580         (INLINE_VSYSCALL): Likewise.
17581         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17582         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17583         definition.
17584         (INLINE_VSYSCALL): Likewise.
17585         (INTERNAL_VSYSCALL): Likewise.
17586         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17587         * sysdeps/unix/sysv/linux/timespec_get.c
17588         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17589         (timespec_get): Use ANSI prototype.
17590         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17591         and definition for Linux.
17592
17593 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17594
17595         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17596         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17597
17598 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17599
17600         [BZ #2981]
17601         [BZ #18410]
17602         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17603         for missing DT_PLTRELSZ.
17604
17605 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17606
17607         Remove obsolete aliases that broke 'locale -a'
17608         [BZ #18412]
17609         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17610         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17611         breaking some applications that use 'locale -a' output.
17612         Change the encoding of this file from Latin-1 to ASCII to avoid
17613         other potential problems with people grepping this file.
17614
17615 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17616
17617         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17618         -fasynchronous-unwind-tables.
17619         (CFLAGS-sendto.c): Likewise.
17620         (CFLAGS-sendmsg.c): Likewise.
17621         (CFLAGS-connect.c): Likewise.
17622         (CFLAGS-recvmsg.c): Likewise.
17623         (CFLAGS-recvfrom.c): Likewise.
17624         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17625         (SOCKETCALL): New macro: non-cancellable socketcall.
17626         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17627         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17628         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17629         * sysdeps/unix/sysv/linux/accept.c: New file.
17630         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17631         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17632         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17633         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17634         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17635         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17636         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17637         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17638         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17639         * sysdeps/unix/sysv/linux/send.c: Likewise.
17640         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17641         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17642         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17643         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17644         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17645         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17646         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17647         prototype.
17648         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17649         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17650         instead of __internal_xxx function.
17651         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17652         prototype.
17653         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17654         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17655         instead of __internal_xxx function.
17656         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17657         prototype.
17658         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17659         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17660         instead of __internal_xxx function.
17661         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17662         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17663         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17664         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17665         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17666         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17667         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17668         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17669         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17670         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17671         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17672         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17673         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17674         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17675         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17676         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17677         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17678         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17679         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17680         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17683         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17684         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17685         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17686         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17687         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17688         * sysdeps/unix/sysv/linux/send.S: Likewise.
17689         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17690         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17691         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17692         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17693         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17694         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17695         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17696         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17697         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17698         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17699         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17700         socketcall is implemented in GLIBC.
17701
17702 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17703
17704         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17705         (__fma): Ignore uninitialized warnings around packing.
17706         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17707         (__fmaf): Ignore uninitialized warnings around packing.
17708         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17709         (__fmal): Ignore uninitialized warnings around packing.
17710
17711         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17712         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17713         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17714         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17715
17716         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17717         switch statement into default case.
17718         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17719
17720         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17721         a conditional in forcing "inexact".
17722         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17723         Likewise.
17724
17725 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17726
17727         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17728         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17729         for each INTERNAL_SYSCALL use.
17730
17731 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17732
17733         [BZ #438]
17734         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17735         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17736         variable.
17737
17738         [BZ #18444]
17739         * string/basename.c (basename): Rename to __basename and define as
17740         weak alias of __basename.  Use libc_hidden_weak.
17741         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17742         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17743         __basename instead of basename.
17744         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17745         Remove variable.
17746         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17747
17748 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17749
17750         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17751         (_IO_JUMPS_FILE_plus): New.
17752         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17753         _IO_CAST_FIELD_ACCESS.
17754         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17755         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17756         * libio/freopen.c (freopen): Likewise.
17757         * libio/freopen64.c (freopen64): Likewise.
17758         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17759         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17760         * libio/iofwide.c (_IO_fwide): Likewise.
17761         * libio/memstream.c (open_memstream): Likewise.
17762         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17763         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17764         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17765
17766 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17767
17768         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17769         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17770         NADJ.
17771         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17772         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17773         NADJ.
17774         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17775         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17776         NADJ.
17777
17778         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17779         (p == 4) case.
17780
17781         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17782         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17783         Remove variable.
17784         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17785         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17786         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17787
17788 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17789
17790         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17791         Adjust jump table label generation macros.
17792
17793 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17794
17795         * stdio-common/vfprintf.c (vfprintf): Move local variables
17796         args_malloced, specs, specs_malloced, and the code after
17797         do_positional to the printf_positional function.
17798         (printf_positional): New function.
17799
17800 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17801
17802         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17803         function.
17804         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17805         STEP4_TABLE, process_arg): Move macro definitions
17806         out of the vfprintf function.  (Cosmetic change only.)
17807
17808 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17809
17810         * benchtests/Makefile (stdio-common-bench): Define.
17811         (benchset): Add stdio-common-bench.
17812         * sprintf-inputs: New file.
17813         * sprintf-source.c: New file.
17814
17815 2015-05-21  Andreas Schwab  <schwab@suse.de>
17816
17817         [BZ #13028]
17818         [BZ #17053]
17819         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17820         of struct __res_state.
17821         * resolv/res_send.c (__libc_res_nsend): Likewise.
17822         (get_nsaddr): New function.
17823         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17824         statp directly.
17825
17826 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17827
17828         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17829         -D_POSIX_C_SOURCE=199506L.
17830
17831         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17832
17833         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17834         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17835         Do not mention otherwise.
17836         [POSIX] (_XOPEN_VERSION): Do not expect.
17837         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17838         [POSIX] (_POSIX2_C_BIND): Likewise.
17839         [POSIX] (_POSIX2_VERSION): Likewise.
17840         [POSIX] (_XOPEN_XPG2): Likewise.
17841         [POSIX] (_XOPEN_XPG3): Likewise.
17842         [POSIX] (_XOPEN_XPG4): Likewise.
17843         [POSIX] (_XOPEN_UNIX): Likewise.
17844         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17845         [POSIX] (_POSIX_BARRIERS): Likewise.
17846         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17847         [POSIX] (_POSIX_CPUTIME): Likewise.
17848         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17849         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17850         [POSIX] (_POSIX_SHELL): Likewise.
17851         [POSIX] (_POSIX_SPAWN): Likewise.
17852         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17853         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17854         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17855         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17856         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17857         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17858         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17859         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17860         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17861         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17862         [POSIX] (_POSIX2_PBS): Likewise.
17863         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17864         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17865         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17866         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17867         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17868         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17869         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17870         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17871         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17872         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17873         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17874         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17875         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17876         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17877         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17878         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17879         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17880         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17881         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17882         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17883         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17884         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17885         [POSIX] (_SC_2_C_BIND): Likewise.
17886         [POSIX] (_SC_2_C_VERSION): Likewise.
17887         [POSIX] (_SC_2_PBS): Likewise.
17888         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17889         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17890         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17891         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17892         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17893         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17894         [POSIX] (_SC_BARRIERS): Likewise.
17895         [POSIX] (_SC_BASE): Likewise.
17896         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17897         [POSIX] (_SC_DEVICE_IO): Likewise.
17898         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17899         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17900         [POSIX] (_SC_FD_MGMT): Likewise.
17901         [POSIX] (_SC_FIFO): Likewise.
17902         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17903         [POSIX] (_SC_FILE_LOCKING): Likewise.
17904         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17905         [POSIX] (_SC_IOV_MAX): Likewise.
17906         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17907         [POSIX] (_SC_NETWORKING): Likewise.
17908         [POSIX] (_SC_PAGE_SIZE): Likewise.
17909         [POSIX] (_SC_PASS_MAX): Likewise.
17910         [POSIX] (_SC_PIPE): Likewise.
17911         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17912         [POSIX] (_SC_REGEXP): Likewise.
17913         [POSIX] (_SC_SHELL): Likewise.
17914         [POSIX] (_SC_SIGNALS): Likewise.
17915         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17916         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17917         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17918         [POSIX] (_SC_USER_GROUPS): Likewise.
17919         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17920         [POSIX] (_SC_STREAMS): Likewise.
17921         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17922         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17923         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17924         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17925         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17926         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17927         [POSIX] (_PC_FILESIZEBITS): Likewise.
17928         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17929         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17930         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17931         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17932         [POSIX] (uid_t): Likewise.
17933         [POSIX] (gid_t): Likewise.
17934         [POSIX] (off_t): Likewise.
17935         [POSIX] (pid_t): Likewise.
17936         [POSIX] (cuserid): Allow.
17937         (_SC_2_CHAR_TERM): Require constant.
17938         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17939         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17940         variable.
17941
17942 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17943
17944         * sysdeps/nacl/pthread-pids.h: New file.
17945         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17946         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17947
17948         * nptl/pthread-pids.h: New file.
17949         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17950         * nptl/nptl-init.c: Include <pthread-pids.h>.
17951         (__pthread_initialize_minimal_internal):
17952         Call __pthread_initialize_pids instead of set_tid_address syscall.
17953
17954         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17955         * sysdeps/posix/usleep.c: ... here.
17956
17957 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17958
17959         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17960         call_pselect6 object.
17961         [$(subdir) = io]: Remove call_sync_file_range object.
17962         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17963         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17964         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17965         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17966
17967 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17968
17969         * math/s_cproj.c: Add include "math_private.h".
17970         * math/s_cprojf.c: Likewise.
17971         * math/s_cprojl.c: Likewise.
17972
17973 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17974
17975         [BZ #18244]
17976         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17977         high mantissa bit when testing whether P is a NaN.
17978         * math/libm-test.inc (remainder_test_data): Add more tests.
17979         (remquo_test_data): Likewise.
17980
17981         [BZ #18049]
17982         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17983         below -32, return the argument, with underflow if subnormal.
17984         * math/auto-libm-test-in: Add more tests of atanh.
17985         * math/auto-libm-test-out: Regenerated.
17986
17987 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17988
17989         [BZ #18434]
17990         * nptl/tst-sem15.c: New file.
17991         * nptl/Makefile (tests): Add it.
17992         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17993         s/<</>>/ to fix typo in EOVERFLOW check.
17994         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17995
17996 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17997
17998         * manual/strings.texi (envz_remove): Fix typo in safety
17999         annotations.
18000
18001 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18002             Steve Ellcey  <sellcey@imgtec.com>
18003
18004         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18005         in order to avoid strict alias warnings.
18006         (iruserok_af): Ditto for ra.
18007
18008 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18009
18010         [BZ #17581]
18011         * malloc/hooks.c
18012         (magicbyte): Convert to a function and avoid returning 0x01.
18013         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18014         (mem2chunk_check): Fix unsigned comparisons to zero.
18015         Hoist defs of sz and magic.
18016
18017 2015-05-19  Richard Henderson  <rth@redhat.com>
18018
18019         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18020
18021         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18022
18023 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18024
18025         [BZ #16159]
18026         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18027         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18028         (reused_arena): Find a non-corrupt arena.
18029         (heap_trim): Pass arena to unlink.
18030         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18031         malloc_printerr.
18032         (top_check): Likewise.
18033         (free_check): Likewise.
18034         (realloc_check): Likewise.
18035         * malloc/malloc.c (malloc_printerr): Add arena argument.
18036         (unlink): Likewise.
18037         (munmap_chunk): Adjust.
18038         (ARENA_CORRUPTION_BIT): New macro.
18039         (arena_is_corrupt): Likewise.
18040         (set_arena_corrupt): Likewise.
18041         (sysmalloc): Use mmap if there are no usable arenas.
18042         (_int_malloc): Likewise.
18043         (__libc_malloc): Don't fail if arena_get returns NULL.
18044         (_mid_memalign): Likewise.
18045         (__libc_calloc): Likewise.
18046         (__libc_realloc): Adjust for additional argument to
18047         malloc_printerr.
18048         (_int_free): Likewise.
18049         (malloc_consolidate): Likewise.
18050         (_int_realloc): Likewise.
18051         (_int_memalign): Don't touch corrupt arenas.
18052         * malloc/tst-malloc-backtrace.c: New test case.
18053
18054         * Makefile (summarize-tests): Fix return value on success.
18055
18056         * manual/string.texi (Envz Functions): Add envz_remove.
18057
18058 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18059
18060         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18061         (invalid_name): New function, broken out of ...
18062         (__opendirat): ... here.  Call it.
18063         (need_isdir_precheck): New function, broken out of ...
18064         (__opendirat): ... here.  Call it.
18065         Use __fxstatat64, not __xstatat64.
18066         (opendir_oflags): New function, broken out of ...
18067         (__opendirat): ... here.  Call it.
18068         (opendir_tail): New function, broken out of ...
18069         (__opendirat): ... here.  Call it.
18070         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18071         opendir_tail, rather than punting to __opendirat.
18072         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18073
18074 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18075
18076         * .gitignore: Ignore generated *.pyc.
18077
18078 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18079
18080         * include/stdio.h: Define __need_wint_t.
18081         * test-skeleton.c: Avoid `for' loop initial declaration.
18082         * nptl/tst-initializers1.c: Use test-skeleton.c.
18083
18084 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18085
18086         [BZ #18418]
18087         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18088
18089 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18090
18091         [BZ #16352]
18092         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18093         (__ieee754_atanh): Force underflow exception for results with
18094         small absolute value.
18095         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18096         (__ieee754_atanhf): Force underflow exception for results with
18097         small absolute value.
18098         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18099         (__ieee754_atanh): Force underflow exception for results with
18100         small absolute value.
18101         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18102         (__ieee754_atanhf): Force underflow exception for results with
18103         small absolute value.
18104         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18105         (__ieee754_atanhl): Force underflow exception for results with
18106         small absolute value.
18107         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18108         (__ieee754_atanhl): Force underflow exception for results with
18109         small absolute value.
18110         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18111         (__ieee754_atanhl): Force underflow exception for results with
18112         small absolute value.
18113         * math/auto-libm-test-in: Do not allow missing underflow
18114         exceptions from atanh.
18115         * math/auto-libm-test-out: Regenerated.
18116
18117         [BZ #18221]
18118         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18119         2**-28 as threshold for returning x or +/- 1/x.
18120         * math/auto-libm-test-in: Add more tests of tan.
18121         * math/auto-libm-test-out: Regenerated.
18122
18123         [BZ #18220]
18124         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18125         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18126         * math/auto-libm-test-in: Add another test of lgamma.
18127         * math/auto-libm-test-out: Regenerated.
18128
18129 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18130
18131         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18132         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18133         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18134         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18135         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18136         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18137         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18138         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18139         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18140         (log1): Use fabs.  (my_log2): Use fabs.
18141         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18142         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18143         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18144         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18145         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18146         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18147         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18148         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18149         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18150         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18151         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18152
18153 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18154
18155         [BZ #18217]
18156         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18157         as threshold for returning 1 - x.
18158         * math/auto-libm-test-in: Add more tests of erfc.
18159         * math/auto-libm-test-out: Regenerated.
18160
18161 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18162
18163         [BZ #18196]
18164         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18165         threshold for large arguments.
18166         * math/auto-libm-test-in: Add another test of atan.
18167         * math/auto-libm-test-out: Regenerated.
18168
18169         [BZ #16339]
18170         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18171         (__log1p): Force underflow exception for results with small
18172         absolute value.
18173         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18174         (__log1pf): Force underflow exception for results with small
18175         absolute value.
18176         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18177         (__log1p): Force underflow exception for results with small
18178         absolute value.
18179         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18180         (__log1pf): Force underflow exception for results with small
18181         absolute value.
18182         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18183         (__log1pl): Force underflow exception for results with small
18184         absolute value.
18185         * math/auto-libm-test-in: Do not allow missing underflow
18186         exceptions from log1p.
18187         * math/auto-libm-test-out: Regenerated.
18188
18189 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18190             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18191
18192         [BZ #16704]
18193         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18194
18195 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18196
18197         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18198         (libmvec): New variable.
18199         * configure.ac: Added option for mathvec build.
18200         * configure: Regenerated.
18201         * mathvec/Depend: New file.
18202         * mathvec/Makefile: New file.
18203         * shlib-versions: Added libmvec.
18204         * math/Makefile: Added rule for libm.so installation.
18205
18206         * bits/math-vector.h: New file.
18207         * bits/libm-simd-decl-stubs.h: New header.
18208         * math/Makefile (headers): Added new header
18209         libm-simd-decl-stubs.h.
18210         * math/math.h (__MATHCALL_VEC): New macro.
18211
18212         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18213         for conditions in testing functions.
18214         * math/Makefile: Added call of libm-have-vector-test.sh.
18215         * math/libm-test.inc (HAVE_VECTOR): New macros.
18216
18217         * math/libm-test.inc: START refactored.
18218         * math/test-double.c (TEST_MATHVEC): Add define.
18219         * math/test-float.c: Likewise.
18220         * math/test-idouble.c: Likewise.
18221         * math/test-ifloat.c: Likewise.
18222         * math/test-ildoubl.c: Likewise.
18223         * math/test-ldouble.c: Likewise.
18224         * sysdeps/generic/math-tests-arch.h
18225         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18226         architecture check.
18227
18228         * math/test-double.c (FUNC_TEST): New macro.
18229         * math/test-float.c: Likewise.
18230         * math/test-idouble.c: Likewise.
18231         * math/test-ifloat.c: Likewise.
18232         * math/test-ildoubl.c: Likewise.
18233         * math/test-ldouble.c: Likewise.
18234         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18235
18236 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18237
18238         * sysdeps/nacl/fdopendir.c: New file.
18239
18240         * dirent/scandir-tail.c: New file.
18241         * dirent/scandir64-tail.c: New file.
18242         * dirent/Makefile (routines): Add them.
18243         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18244         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18245         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18246         [!SCANDIR] (SCANDIR_TAIL): New macro.
18247         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18248         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18249         (SCANDIRAT): Macro removed.
18250         (SCANDIR_TAIL): New macro.
18251         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18252         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18253         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18254         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18255         (READDIR): Macro removed.
18256         (SCANDIR_TAIL): New macro.
18257         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18258         (SCANDIR_TAIL): New macro.
18259
18260         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18261         * dirent/scandir-cancel.c: ... to this new file.
18262         * dirent/Makefile (routines): Add it.
18263         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18264         * sysdeps/unix/sysv/linux/i386/scandir64.c
18265         (SKIP_SCANDIR_CANCEL): Macro removed.
18266         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18267
18268         * dirent/tst-scandir.c: New file.
18269         * dirent/tst-scandir64.c: New file.
18270         * dirent/Makefile (tests): Add them.
18271
18272 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18273
18274         [BZ #18409]
18275         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18276
18277 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18278
18279         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18280         list.
18281
18282 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18283
18284         * benchtests/bench-strcoll.c: New benchmark.
18285         * benchtests/Makefile: Generate locales and run benchmark.
18286         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18287         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18288         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18289         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18290         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18291         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18292         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18293         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18294         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18295         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18296         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18297         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18298         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18299         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18300         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18301         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18302         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18303         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18304         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18305         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18306         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18307         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18308         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18309         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18310
18311 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18312
18313         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18314         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18315
18316 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18317
18318         * posix/uname-values.h: New file.
18319         * posix/uname.c: Include that instead of <config-name.h>.
18320         * sysdeps/nacl/uname-values.h: New file.
18321         * sysdeps/arm/nacl/uname-values.h: New file.
18322
18323 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18324
18325         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18326         splitting into fields.
18327
18328 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18329
18330         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18331         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18332         * locale/localeinfo.h: Add enum collation_encoding_type.
18333         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18334         * programs/ld-collate.c (collate_output): Add encoding type info.
18335         * string/strcoll_l.c (STRDIFF): New function.
18336         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18337         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18338
18339 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18340
18341         [BZ #18397]
18342         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18343         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18344         <fpu_control.h> instead of <math/fpu_control.c>.
18345         * sysdeps/mips/mips32/fpu/Makefile: New file.
18346
18347 2015-05-11  Andreas Schwab  <schwab@suse.de>
18348
18349         [BZ #18007]
18350         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18351         nss_endgrent.
18352         (_nss_compat_endgrent): Call nss_endgrent.
18353         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18354         nss_endpwent.
18355         (_nss_compat_endpwent): Call nss_endpwent.
18356         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18357         needent, call nss_setspent only if non-zero.
18358         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18359         (internal_endspent): Don't call nss_endspent.
18360         (_nss_compat_endspent): Call nss_endspent.
18361         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18362         Remove.  All uses removed.
18363         (internal_setent): Remove parameter stayopen, add parameter
18364         stream.  Use it instead of global variable.
18365         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18366         (internal_endent, internal_getent): Add parameter stream.  Use it
18367         instead of global variable.
18368         (CONCAT(_nss_files_end,ENTNAME))
18369         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18370         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18371         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18372         uses removed.
18373         (internal_setent, internal_endent): Add parameter stream.  Use it
18374         instead of global variable.
18375         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18376         stream.
18377         (get_next_alias): Add parameter stream.
18378         (_nss_files_getaliasent_r): Pass global stream.
18379         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18380         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18381         (_nss_files_gethostbyname4_r): Pass local stream to
18382         internal_setent, internal_getent and internal_endent.  Remove
18383         locking.
18384
18385 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18386
18387         * tst-strfmon1.c (tests): Update expected currency symbol.
18388
18389 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18390
18391         * sysdeps/nacl/gethostname.c: New file.
18392
18393 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18394
18395         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18396         and sinh.
18397         * math/auto-libm-test-out: Regenerated.
18398         * sysdeps/i386/fpu/libm-test-ulps: Update.
18399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18400
18401 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18402
18403         [BZ #18125]
18404         * stdlib/tst-setcontext3.c: New file.
18405         * stdlib/tst-setcontext3.sh: New file.
18406         * stdlib/Makefile (tests): Add tst-setcontext3.
18407         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18408         to verify test program created output file.
18409         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18410         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18411         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18412         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18413
18414 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18415
18416         [BZ #18383]
18417         * elf/tst-tlsalign.c: New file.
18418         * elf/tst-tlsalign-static.c: New file.
18419         * elf/tst-tlsalign-lib.c: New file.
18420         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18421         (tests-static): Add tst-tlsalign-static.
18422         (modules-names): Add tst-tlsalign-lib.
18423         (test-xfail-tst-tlsalign): New variable.
18424         (test-xfail-tst-tlsalign-static): New variable.
18425
18426         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18427         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18428
18429 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18430
18431         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18432         csqrt, erfc, sin and sincos.
18433         * math/auto-libm-test-out: Regenerated.
18434         * sysdeps/i386/fpu/libm-test-ulps: Update.
18435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18436
18437 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18438
18439         * sysdeps/aarch64/libm-test-ulps: Update.
18440
18441 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18442
18443         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18444         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18445         * math/auto-libm-test-out: Regenerated.
18446         * sysdeps/i386/fpu/libm-test-ulps: Update.
18447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18448
18449 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18450
18451         [BZ #18265]
18452         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18453         (wcsncpy): Likewise.
18454
18455 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18456
18457         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18458         Assume __ASSUME_FALLOCATE is always true.
18459         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18460         (__posix_fallocate64_l64): Likweise.
18461         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18462         (posix_fallocate): Likewise.
18463         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18464         (__posix_fallocate64_l64): Likewise.
18465         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18466         [!__ASSUME_FALLOCATE]: Add comment.
18467
18468 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18469
18470         * sysdeps/unix/sysv/linux/i386/Makefile
18471         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18472         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18473         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18474         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18475         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18476         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18477         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18478
18479 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18480
18481         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18482         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18483         tgamma.
18484         * math/auto-libm-test-out: Regenerated.
18485         * sysdeps/i386/fpu/libm-test-ulps: Update.
18486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18487
18488 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18489
18490         * math/auto-libm-test-in: Add more tests of tgamma.
18491         * math/auto-libm-test-out: Regenerated.
18492         * sysdeps/i386/fpu/libm-test-ulps: Update.
18493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18494
18495         * math/auto-libm-test-in: Add more tests of tanh.
18496         * math/auto-libm-test-out: Regenerated.
18497         * sysdeps/i386/fpu/libm-test-ulps: Update.
18498         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18499
18500         * math/auto-libm-test-in: Add more tests of tan.
18501         * math/auto-libm-test-out: Regenerated.
18502         * sysdeps/i386/fpu/libm-test-ulps: Update.
18503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18504
18505         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18506         * math/auto-libm-test-out: Regenerated.
18507         * sysdeps/i386/fpu/libm-test-ulps: Update.
18508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18509
18510         * math/auto-libm-test-in: Add another test of pow.
18511         * math/auto-libm-test-out: Regenerated.
18512         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18513
18514         * math/auto-libm-test-in: Add more tests of lgamma.
18515         * math/auto-libm-test-out: Regenerated.
18516         * sysdeps/i386/fpu/libm-test-ulps: Update.
18517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18518
18519         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18520         log1p.
18521         * math/auto-libm-test-out: Regenerated.
18522         * sysdeps/i386/fpu/libm-test-ulps: Update.
18523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18524
18525 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18526
18527         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18528         Elf64_Chdr structs and ELFCOMPRESS constants.
18529
18530 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18531
18532         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18533         expm1.
18534         * math/auto-libm-test-out: Regenerated.
18535         * sysdeps/i386/fpu/libm-test-ulps: Update.
18536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18537
18538         * math/auto-libm-test-in: Add more tests of erf and erfc.
18539         * math/auto-libm-test-out: Regenerated.
18540         * sysdeps/i386/fpu/libm-test-ulps: Update.
18541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18542
18543 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18544
18545         * config.h.in (HAVE_AARCH64_BE): Add.
18546
18547 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18548
18549         * math/auto-libm-test-in: Add more tests of csqrt.
18550         * math/auto-libm-test-out: Regenerated.
18551         * sysdeps/i386/fpu/libm-test-ulps: Update.
18552         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18553
18554         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18555         * math/auto-libm-test-out: Regenerated.
18556         * sysdeps/i386/fpu/libm-test-ulps: Update.
18557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18558
18559         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18560
18561 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18562
18563         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18564         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18565
18566         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18567         (euidaccess, eaccess): Define as weak aliases.
18568
18569         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18570         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18571         but __suseconds_t is often 'long int' so some sources assume that
18572         type is being used (e.g. they use %ld to print tv_usec).
18573
18574 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18575
18576         [BZ #18007]
18577         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18578         (CVE-2014-8121)
18579         * nss/tst-nss-getpwent.c: New file.
18580         * nss/Makefile (tests): Add new test.
18581
18582 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18583
18584         [BZ #18346]
18585         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18586         exponents less than 48 as cases where high part of mantissa needs
18587         examining to determine whether argument is integral.
18588         * math/libm-test.inc (round_test_data): Add more tests.
18589
18590 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18591
18592         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18593
18594 2015-04-27  David S. Miller  <davem@davemloft.net>
18595
18596         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18597         __tls_get_addr.
18598         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18599
18600 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18601
18602         [BZ#18333]
18603         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18604
18605 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18606
18607         [BZ#18333]
18608         * time/tzset.c (parse_tzname): Return error on memory allocation
18609         failure.
18610         * test-skeleton.c (struct temp_name_list): Change type of name
18611         member to non-const.
18612         (add_temp_file): Create a copy of the file name.
18613         (delete_temp_files): Deallocate memory.
18614         (create_temp_file): Add comment.
18615
18616 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18617
18618         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18619         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18620
18621 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18622
18623         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18624         * sysdeps/arm/configure: Regenerated.
18625
18626 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18627
18628         [BZ #17715]
18629         * time/tzfile.c (__tzfile_read): Check for large values of
18630         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18631         * time/tzset.c (__tzstring_len): New function, based on the old
18632         __tzstring function.
18633         (__tzstring): Call __tzstring_len.
18634         (parse_tzname): New helper function extracted from
18635         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18636         the input string.
18637         (parse_offset): New helper function extracted from
18638         __tzset_parse_tz.  Replace switch with fallthrough with
18639         initialization before sscanf.
18640         (parse_rule): Likewise.
18641         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18642         new-style function definition.
18643         * timezone/Makefile (tests): Add tst-tzset.
18644         (tst-tzset.out): Dependencies on time zone files.
18645         (tst-tzset-ENV): Set TZDIR.
18646         (testdata/XT%): Copy crafted time zone files.
18647         * timezone/README: Mention crafted time zone files.
18648         * timezone/testdata/XT1, timezone/testdata/XT2,
18649         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18650         files.
18651         * timezone/tst-tzset.c: New test.
18652
18653 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18654
18655         * Makeconfig (+gccwarn): Remove -Winline.
18656
18657 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18658
18659         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18660
18661 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18662
18663         * NEWS: Mention sysconf() cache information support for s390.
18664         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18665
18666 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18667
18668         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18669         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18670         (__nearbyint): Likewise.
18671         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18672         (copysignl): Likewise.
18673
18674 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18675
18676         [BZ #18287]
18677         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18678         based on padding.  (CVE-2015-1781)
18679
18680 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18681
18682         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18683         libc-vdso.h.
18684         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18685         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18686         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18687         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18688         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18689         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18690         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18691         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18692         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18693         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18694         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18695         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18696         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18697         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18698         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18699         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18700         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18701         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18702         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18703         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18704         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18705         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18706         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18707
18708 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18709
18710         * stdlib/setenv.c (__add_to_environ):
18711         Dump core quickly if setenv (..., NULL, ...) is called.
18712         This time, do it the right way, and pacify GCC with a pragma.
18713
18714 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18715
18716         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18717         IMAP->l_prev cannot be null, and #if out the code for the contrary
18718         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18719         believe that NS (&_dl_ns[NSID]) could point outside the array.
18720
18721         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18722         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18723         before using NSID as an index.
18724
18725 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18726
18727         [BZ #17825]
18728         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18729         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18730         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18731
18732 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18733
18734         Add preliminary port to Google Native Client on ARM.
18735         * abi-tags (.*-.*-nacl.*): New entry.
18736         * sysdeps/arm/nacl: New directory.
18737         * sysdeps/nacl: New directory.
18738
18739 2015-04-16  David S. Miller  <davem@davemloft.net>
18740
18741         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18742         lowlevellock-futex.h
18743
18744 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18745
18746         * sysdeps/tile/configure.ac: New file.
18747         * sysdeps/tile/configure: Regenerated.
18748
18749 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18750
18751         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18752         conditionals for weak_alias and libc_hidden_weak.
18753         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18754         libc_hidden_weak and weak_alias.
18755         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18756         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18757         and weak_alias for static one.
18758
18759 2015-04-15  David S. Miller  <davem@davemloft.net>
18760
18761         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18762
18763 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18764
18765         [BZ #18206]
18766         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18767           Use signed comparision instead of substraction to avoid
18768           overflow bug.
18769         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18770           Take the sign of ret.
18771         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18772           Do not expect precise return values. Only the sign matters.
18773         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18774         * wcsmbs/test-wcsncmp.c: New File.
18775         * string/test-strncmp.c: Add wcsncmp support.
18776
18777 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18778
18779         [BZ #6792]
18780         * math/w_log1p.c: New file.
18781         * math/w_log1pf.c: Likewise.
18782         * math/w_log1pl.c: Likewise.
18783         * math/Makefile (libm-calls): Add w_log1p.
18784         * math/s_log1pl.c (log1pl): Remove weak_alias.
18785         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18786         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18787         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18788         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18789         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18790         [NO_LONG_DOUBLE] (log1pl): Likewise.
18791         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18792         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18793         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18794         (log1p): Remove long_double_symbol.
18795         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18796         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18797         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18798         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18799         remove weak_alias for corresponding log1p function.
18800         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18801         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18802         * sysdeps/ia64/fpu/w_log1p.c: New file.
18803         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18804         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18805         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18806
18807 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18808
18809         [BZ #18247]
18810         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18811         decimal exponent by 1.
18812         * stdlib/tst-strtod-round-data: Add more tests.
18813         * stdlib/tst-strtod-round.c (tests): Regenerated.
18814
18815 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18816
18817         * math/auto-libm-test-in: Add more tests of clog and clog10.
18818         * math/auto-libm-test-out: Regenerated.
18819         * sysdeps/i386/fpu/libm-test-ulps: Update.
18820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18821
18822 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18823
18824         * Makeconfig (module-cppflags): Exclude all .v.i files.
18825         (skip-module-cppflags): Variable removed.
18826
18827         * configure.ac (libc_config_ok): Initialize before reading
18828         preconfigure scripts, not after.
18829         * configure: Regenerated.
18830
18831         * test-skeleton.c (TIMEOUT): Move #define to top level.
18832         (main): Grok environment variable TEST_DIRECT.  If set, print
18833         test expectation details into that file and then behave as if
18834         given --direct.
18835
18836 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18837
18838         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18839         warning on 32-bit.
18840
18841 2015-04-08  David S. Miller  <davem@davemloft.net>
18842
18843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18844
18845 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18846
18847         * math/auto-libm-test-in: Add more tests of atanh.
18848         * math/auto-libm-test-out: Regenerated.
18849         * sysdeps/i386/fpu/libm-test-ulps: Update.
18850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18851
18852         * math/auto-libm-test-in: Add more tests of atan.
18853         * math/auto-libm-test-out: Regenerated.
18854         * sysdeps/i386/fpu/libm-test-ulps: Update.
18855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18856
18857 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18858
18859         * elf/pldd.c (main): Rewrite to use struct
18860         scratch_buffer instead of extend_alloca.
18861         * elf/pldd-xx.c (find_maps): Likewise.
18862         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18863         <alloca.h>.
18864         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18865         scratch_buffer instead of extend_alloca.
18866         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18867         grp/compat-initgroups.c.
18868         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18869         Rewrite to use struct scratch_buffer instead of extend_alloca.
18870         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18871         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18872
18873 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18874
18875         * math/auto-libm-test-in: Add more tests of cbrt.
18876         * math/auto-libm-test-out: Regenerated.
18877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18878
18879         * math/auto-libm-test-in: Add more tests of cabs.
18880         * math/auto-libm-test-out: Regenerated.
18881         * sysdeps/i386/fpu/libm-test-ulps: Update.
18882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18883
18884         [BZ #18210]
18885         [BZ #18211]
18886         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18887         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18888         computations.
18889         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18890         clog10.
18891         * math/auto-libm-test-out: Regenerated.
18892         * sysdeps/i386/fpu/libm-test-ulps: Update.
18893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18894
18895         [BZ #18197]
18896         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18897         (atan): Set FE_TONEAREST mode for internal computations.
18898         * math/auto-libm-test-in: Add more tests of atan.
18899         * math/auto-libm-test-out: Regenerated.
18900
18901 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18902
18903         [BZ #17930]
18904         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18905
18906 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18907
18908         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18909
18910 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18911
18912         * include/scratch_buffer.h: New file.
18913         * malloc/scratch_buffer_grow.c: Likewise.
18914         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18915         * malloc/scratch_buffer_set_array_size.c: Likewise.
18916         * malloc/tst-scratch_buffer.c: Likewise.
18917         * malloc/Makefile (routines): Add scratch_buffer_grow.
18918         (tests): Add test case.
18919         * malloc/Versions (GLIBC_PRIVATE): Export
18920         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18921         __libc_scratch_buffer_set_array_size.
18922
18923 2015-04-06  Richard Henderson  <rth@redhat.com>
18924
18925         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18926         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18927
18928         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18929         unsigned int before printing.
18930
18931 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18932
18933         [BZ #17596]
18934         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18935         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18936
18937 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18938
18939         * include/libc-internal.h (libc_max_align_t): Define.
18940
18941 2015-04-02  Andreas Schwab  <schwab@suse.de>
18942
18943         [BZ #16850]
18944         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18945
18946 2015-04-02  Mel Gorman  <mgorman@suse.de>
18947
18948         [BZ #17195]
18949         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18950         as well as the main arena.
18951
18952 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18953
18954         [BZ #18185]
18955         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18956         sharing L2 cache to 2 for Silvermont/Knights Landing.
18957
18958 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18959
18960         [BZ #17711]
18961         * config.make.in (have-protected-data): New.
18962         * configure.ac: Check linker support for protected data symbol.
18963         * configure: Regenerated.
18964         * elf/Makefile (modules-names): Add tst-protected1moda and
18965         tst-protected1modb if $(have-protected-data) is yes.
18966         (tests): Add tst-protected1a and tst-protected1b if
18967         $(have-protected-data) is yes.
18968         ($(objpfx)tst-protected1a): New.
18969         ($(objpfx)tst-protected1b): Likewise.
18970         (tst-protected1modb.so-no-z-defs): Likewise.
18971         * elf/tst-protected1a.c: New file.
18972         * elf/tst-protected1b.c: Likewise.
18973         * elf/tst-protected1mod.h: Likewise.
18974         * elf/tst-protected1moda.c: Likewise.
18975         * elf/tst-protected1modb.c: Likewise.
18976
18977 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18978
18979         [BZ #17711]
18980         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18981         indicates it is called from do_lookup_x on relocation against
18982         protected data, skip the data definion in the executable from
18983         copy reloc.
18984         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18985         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18986         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18987         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18988         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18989         otherwise to 0.
18990         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18991         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18992         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18993         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18994         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18995         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18996
18997 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18998
18999         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19000         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19001
19002 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19003
19004         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19005         THREAD_SETMEM_NC.
19006         * sysdeps/x86_64/nptl/tls.h: Ditto.
19007
19008 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19009
19010         * dlfcn/tststatic.c (main): Converted to ...
19011         (do_test): ... this.
19012         (TEST_FUNCTION): New macro.
19013         Include test-skeleton.c.
19014
19015 2015-03-26  Alan Modra  <amodra@gmail.com>
19016
19017         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19018         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19019         zero for undefined weak.
19020         (elf_machine_plt_conflict): Similarly.
19021
19022 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19023
19024         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19025         atanh.
19026         * math/auto-libm-test-out: Regenerated.
19027         * sysdeps/i386/fpu/libm-test-ulps: Update.
19028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19029
19030         * math/auto-libm-test-in: Add another test of asin.
19031         * math/auto-libm-test-out: Regenerated.
19032         * sysdeps/i386/fpu/libm-test-ulps: Update.
19033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19034
19035         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19036         Remove macro.
19037         (LLL_EBX_REG): Likewise.
19038         (LLL_ENTER_KERNEL): Likewise.
19039
19040         * math/auto-libm-test-in: Add more tests of asin.
19041         * math/auto-libm-test-out: Regenerated.
19042         * sysdeps/i386/fpu/libm-test-ulps: Update.
19043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19044
19045         [BZ #18138]
19046         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19047         libc_do_syscall_args): New structure.
19048         (INTERNAL_SYSCALL_MAIN_0): New macro.
19049         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19050         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19051         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19052         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19053         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19054         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19055         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19056         Replace conditional definitions by conditional definitions of ....
19057         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19058         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19059         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19060         (libpthread-sysdep_routines): Add libc-do-syscall.
19061         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19062         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19063         to __NR_futex not 240.
19064
19065 2015-03-25  Alan Modra  <amodra@gmail.com>
19066
19067         * NEWS: Advertise TLS optimization.
19068         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19069         (DT_PPC_NUM): Increment.
19070         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19071         (CHECK_STATIC_TLS): Use here.
19072         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19073         TLS descriptors.
19074         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19075         * sysdeps/powerpc/dl-tls.c: New file.
19076         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19077         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19078         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19079         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19083
19084 2015-03-25  Alan Modra  <amodra@gmail.com>
19085
19086         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19087         for overlapping .opd entries" to "support...".
19088         * sysdeps/powerpc/powerpc64/configure: Regenerate
19089
19090 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19091
19092         * math/auto-libm-test-in: Add more tests of acos.
19093         * math/auto-libm-test-out: Regenerated.
19094         * sysdeps/i386/fpu/libm-test-ulps: Update.
19095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19096
19097         * math/auto-libm-test-in: Add more tests of expm1.
19098         * math/auto-libm-test-out: Regenerated.
19099         * sysdeps/i386/fpu/libm-test-ulps: Update.
19100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19101
19102 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19103
19104         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19105         * math/auto-libm-test-out: Regenerated.
19106         * sysdeps/i386/fpu/libm-test-ulps: Update.
19107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19108
19109         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19111
19112         * math/auto-libm-test-in: Add more tests of log2.
19113         * math/auto-libm-test-out: Regenerated.
19114         * sysdeps/i386/fpu/libm-test-ulps: Update.
19115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19116
19117 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19118
19119         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19120         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19121         _IO_IS_APPENDING bit in READ_WRITE instead.
19122
19123 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19124
19125         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19126         (__determine_cpumask_size): Replace extend_alloca with a
19127         variable-length array.  Do not treat res == 0 as an error.
19128
19129 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19130
19131         [BZ #18100]
19132         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19133         and integer overflow.
19134         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19135         (main): Add integer overflow tests.
19136         * manual/pattern.texi (Calling Wordexp): Document additional use
19137         for WRDE_SYNTAX.
19138
19139 2015-03-23  Alan Modra  <amodra@gmail.com>
19140
19141         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19142         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19143         and false branch of conditional.
19144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19145         Likewise.
19146
19147 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19148
19149         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19150         libc-modules.h
19151         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19152         unused declaration of _hurd_intr_rpc_msg_in_trap.
19153         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19154         defined instead of whether it is non-zero.
19155         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19156         input constraint instead of both input and output constraint.  Use ecx
19157         clobber instead of %ecx.
19158         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19159         mutex_unlock): Use a statement expression instead of an expression list.
19160         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19161         type to vm_size_t instead of vm_address_t.
19162         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19163         defined instead of whether it is non-zero.
19164         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19165         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19166         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19167         comparisons with mapaddr.
19168         * nscd/nscd-client.h: Include <time.h>.
19169         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19170         9th parameter to __vm_region instead of int.
19171         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19172         * scripts/check-local-headers.sh (exclude): Add device/,
19173         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19174         cthreads.h.
19175
19176 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19177
19178         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19179         to account for alignment padding.
19180         * sysdeps/arm/memmove.S: Likewise.
19181
19182 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19183
19184         * sysdeps/unix/sysv/linux/generic/README: New file.
19185
19186 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19187
19188         [BZ #18138]
19189         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19190         (futex_abstimed_wait)
19191         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19192         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19193         of lll_futex_timed_wait.
19194
19195 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19196
19197         [BZ #17542]
19198         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19199
19200 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19201
19202         [BZ #17090]
19203         [BZ #17620]
19204         [BZ #17621]
19205         [BZ #17628]
19206         * NEWS: Update.
19207         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19208         entries with Static TLS too.  Skip entries past the end of the
19209         allocated DTV, from Alan Modra.
19210         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19211         Static TLS DTV entry set up from...
19212         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19213         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19214         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19215         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19216         for Static TLS.
19217         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19218         that the slot we find is associated with the given map before
19219         using its generation count.
19220         * nptl_db/db_info.c: Include ldsodefs.h.
19221         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19222         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19223         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19224         (link_map::l_tls_offset): New struct field.
19225         (dtv_t::counter): Likewise.
19226         (rtld_global): New struct.
19227         (_rtld_global): New rtld variable.
19228         (dl_tls_dtv_slotinfo_list): New rtld global field.
19229         (dtv_slotinfo_list): New struct.
19230         (dtv_slotinfo): Likewise.
19231         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19232         (td_lookup): Rename to...
19233         (td_mod_lookup): ... this.  Use new mod parameter instead of
19234         LIBPTHREAD_SO.
19235         * nptl_db/td_thr_tlsbase.c: Include link.h.
19236         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19237         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19238         addresses even if the DTV is out of date or missing them.
19239         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19240         index zero-length arrays.
19241         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19242         (td_lookup): Make it a macro implemented in terms of...
19243         (td_mod_lookup): ... this declaration.
19244         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19245         (DB_MAIN_VARIABLE): Likewise.
19246
19247 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19248
19249         [BZ #18134]
19250         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19251
19252 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19253
19254         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19255
19256 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19257
19258         [BZ #18128]
19259         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19260         (atomic_add, atomic_increment_and_test)
19261         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19262
19263 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19264
19265         * stdlib/setenv.c (__add_to_environ):
19266         Dump core quickly if setenv (..., NULL, ...) is called.
19267
19268 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19269
19270         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19271         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19272         all the necessary asm magic in one place.
19273         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19274         using those.
19275
19276 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19277
19278         [BZ #14906]
19279         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19280         traced file mtime. Use consistent log message.
19281         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19282         (register_traced_file): Call install_watches. Always set mtime.
19283         (invalidate_cache): Iterate over all trace files. Call install_watches.
19284         (inotify_check_files): Don't inline. Handle watching parent
19285         directories and configuration file movement in and out.
19286         (handle_inotify_events): New function.
19287         (main_loop_poll): Call handle_inotify_events.
19288         (main_loop_epoll): Likewise.
19289         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19290         (struct traced_file): Use array of inotify fds. Add parent directory,
19291         and basename.
19292         (struct database_dyn): Remove unused file_mtime.
19293         (init_traced_file): New inline function.
19294         (define_traced_file): New macro.
19295         * nss/nss_db/db-init.c: Use define_traced_file.
19296         (_nss_db_init): Use init_traced_file.
19297         * nss/nss_files/files-init.c: Use define_traced_file.
19298         (_nss_files_init): Use init_traced_file.
19299
19300 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19301
19302         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19303         [_LIBC]: Do not include <stdlib.h>.
19304         [!_LIBC] (abort): Remove declaration.
19305         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19306         _FP_STATIC_ASSERT instead of conditionally calling abort.
19307         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19308         (_FP_EXTEND_CNAN): Likewise.
19309         (FP_TRUNC): Likewise.
19310         (__FP_CLZ): Likewise.
19311         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19312
19313 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19314
19315         * manual/string.texi (XPG basename): Fix prototype.
19316
19317 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19318
19319         [BZ #18080]
19320         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19321         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19322         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19323         (__setcontext): Likewise.
19324         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19325         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19326         Call rt_sigprocmask syscall one time to set new signal mask
19327         and retrieve the current signal mask instead of two calls.
19328         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19329         (__swapcontext): Likewise.
19330         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19331         * stdlib/tst-setcontext2.c: New file.
19332
19333 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19334
19335         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19336
19337 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19338
19339         [BZ #18093]
19340         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19341         the wrong size.
19342
19343 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19344
19345         [BZ #18043]
19346         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19347
19348 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19349
19350         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19351         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19352         Remove define.
19353         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19354         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19355         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19356         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19357         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19358         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19359         define.
19360         * nptl_db/td_symbol_list.c (td_lookup): Remove
19361         HAVE_ASM_GLOBAL_DOT_NAME code.
19362         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19363         HAVE_ASM_GLOBAL_DOT_NAME check.
19364         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19365         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19366         (DOT_LABEL): Remove define.
19367         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19368         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19369         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19370         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19371         (__TLS_GET_ADDR): Likewise.
19372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19373         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19374
19375 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19376
19377         [BZ #18111]
19378         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19379         (_FPU_SETCW): Initialize cw from fpsr before storing.
19380         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19381         (fesetexceptflag): Rewrite using fpu_control.h.
19382         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19383
19384 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19385
19386         [BZ #18110]
19387         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19388         asms.
19389         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19390
19391 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19392
19393         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19394         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19395         abort.
19396         (_FP_FMA): Likewise.
19397         (_FP_DIV): Likewise.
19398
19399 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19400
19401         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19402         with 0 in that case.
19403         * Makefile (summarize-tests): New canned sequence, factored out of
19404         commands for targets tests and xtests.  Display summary lines that
19405         don't start with PASS: or XFAIL: rather than ones that do start with
19406         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19407         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19408         do start with ERROR: or FAIL:.
19409         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19410         (except for [$(build-shared) = yes]).
19411         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19412         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19413         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19414         * nptl/Makefile: Revert 2015-03-04 changes.
19415         [$(CXX) empty] (tests-unsupported): New variable.
19416         * debug/Makefile: Likewise.
19417
19418         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19419         gnulib file.  Replace __attribute with __attribute__ throughout.
19420
19421 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19422
19423         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19424
19425 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19426
19427         [BZ #18104]
19428         * math/auto-libm-test-in: Add another test of pow.
19429         * math/auto-libm-test-out: Regenerated.
19430
19431 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19432
19433         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19434         $(config-cflags-nofma).
19435
19436 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19437
19438         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19439         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19440         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19441         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19442         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19443         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19444         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19445         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19446         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19447         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19448         Add comment on closing #endif.
19449
19450 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19451
19452         * posix/wordexp.c (CHAR_IN_SET): New macro.
19453         (parse_param): Use it.
19454
19455 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19456
19457         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19458
19459 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19460
19461         [BZ #18043]
19462         * posix/wordexp.c (parse_param): Fix buffer overflow.
19463         * posix/wordexp-test.c (test_case): Add test case.
19464
19465 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19466
19467         [BZ #18042]
19468         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19469         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19470
19471 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19472
19473         [BZ #18043]
19474         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19475         (do_bz18043): Delete.
19476         (at_page_end): New.
19477         (testit): Refactor to have words at the edge of unreadable page.
19478
19479 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19480
19481         [BZ #16734]
19482         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19483         Cleanup read-only streams as well.
19484         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19485
19486 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19487
19488         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19489         <bits/libc-lockP.h>
19490
19491 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19492
19493         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19494         on [__KERNEL__].
19495         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19496         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19497         * soft-fp/op-common.h (_FP_DECL): Likewise.
19498
19499 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19500
19501         * elf/ifuncdep2.c (global): Replace
19502         __attribute__((visibility("protected"))) with
19503         asm (".protected global").
19504         * elf/ifuncmod1.c (global): Likewise.
19505         * elf/ifuncmod5.c (global): Likewise.
19506
19507 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19508
19509         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19510         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19511
19512 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19513
19514         * manual/install.texi (Configuring and compiling):
19515         Document test-wrapper-env-only.
19516         * INSTALL: Regenerated.
19517
19518 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19519
19520         [BZ #18043]
19521         * posix/wordexp.c (parse_param): Fix buffer overflow.
19522         * posix/wordexp-test.c (do_bz18043): Add test case.
19523
19524 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19525
19526         * time/tst-strptime2.c (do_test): Ensure failing tests are
19527         reported correctly.
19528         * time/tst-strptime3.c (do_test): Likewise.
19529
19530 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19531
19532         Fix aio_error thread-safety.
19533         * sysdeps/pthread/aio_error.c: New file
19534         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19535         synchronization.
19536
19537 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19538
19539         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19540         (group_number, vfprintf): Use it.
19541         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19542         (JUMP, REF): Use it.
19543         (WORK_BUFFER_SIZE): New enum constant.
19544         (process_arg, vfprintf): Use it.
19545
19546 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19547
19548         * manual/errno.texi (Error Messages): Complete example function
19549         by adding missing #define.
19550         (program_invocation_name): Add statement indicating GNU
19551         extension and reference which header file declares the variable.
19552         (program_invocation_short_name): Likewise.
19553
19554 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19555
19556         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19557         compatibility note.
19558
19559 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19560
19561         * Makeconfig (test-wrapper-env-only): New variable.
19562         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19563         then use that with $(test-wrapper-env-only) rather than using
19564         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19565
19566 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19567
19568         [BZ #18082]
19569         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19570         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19571         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19572         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19573         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19574         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19575         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19576         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19577         Likewise.
19578         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19579         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19580         Likewise.
19581         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19582         Likewise.
19583         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19584         Likewise.
19585         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19586         Likewise.
19587         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19588         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19589         Likewise.
19590         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19591         Likewise.
19592         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19593         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19594
19595 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19596
19597         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19598         (ETH_ALEN): New macro.
19599         (struct ether_addr): Use it for length of ether_addr_octet.
19600
19601         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19602         (setdb): Don't call __nss_configure_lookup for "rpc".
19603         (do_test): Don't call test_rpc.
19604         (output_rpcent, test_rpc): Functions moved ...
19605         * sunrpc/test-rpcent.c: ... to this new file.
19606         * sunrpc/Makefile (tests): Add it.
19607
19608         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19609         __xpg_sigpause.
19610         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19611         * nptl/tst-signal6.c: Likewise.
19612         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19613         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19614
19615         * configure.ac (libc_cv_cxx_link_ok): New check.
19616         Reset CXX to empty if it fails to link.
19617         * configure: Regenerated.
19618         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19619         bug-atexit3-lib only if $(CXX) is nonempty.
19620         * nptl/Makefile (tests): Likewise for tst-cancel24.
19621         (tests, tests-static): Likewise for tst-cancel24-static.
19622         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19623         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19624         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19625         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19626
19627 2015-03-04  Andreas Schwab  <schwab@suse.de>
19628
19629         [BZ #17631]
19630         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19631         for non-GCC compilers.
19632         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19633         Likewise.
19634
19635 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19636
19637         [BZ #17776]
19638         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19639         integer before bitwise and assembly operations.
19640         (feclearexcept): Likewise.
19641         * math/test-fenvinline.c: New file.
19642         * math/Makefile: Add test-fenvinline test.
19643
19644 2015-03-03  Alan Modra  <amodra@gmail.com>
19645
19646         [BZ #16512]
19647         * scripts/localplt.awk: Strip off symbol version.
19648         * NEWS: Mention bug fix.
19649
19650 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19651
19652         * sysdeps/pthread/timer_routines.c
19653         (timer_free_list, thread_free_list, thread_active_list): Make static.
19654
19655 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19656
19657         [BZ #17779]
19658         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19659         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19660         Undefine.
19661         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19662         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19663         Likewise.
19664         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19665         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19666         Likewise.
19667
19668 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19669
19670         [BZ #18036]
19671         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19672         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19673
19674 2015-03-02  Andreas Schwab  <schwab@suse.de>
19675
19676         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19677         variable name.
19678
19679 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19680
19681         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19682         Return error status.
19683
19684 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19685
19686         [BZ #15969]
19687         * locale/findlocale.c (_nl_find_locale): Introduce const
19688         version of loc_name and drop unsafe type casts.
19689
19690 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19691
19692         * dlfcn/tststatic2.c (main): Converted to ...
19693         (do_test): ... this.
19694         (TEST_FUNCTION): New macro.
19695         Include test-skeleton.c.
19696
19697 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19698
19699         [BZ #17711]
19700         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19701         (tests-pie): Add vismain.
19702         (CFLAGS-vismain.c): New.
19703         * elf/vismain.c: Add comments for PIE requirement.
19704
19705 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19706
19707         [BZ #18046]
19708         [BZ #18047]
19709         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19710         0x1p-56L as threshold for just returning the argument.
19711         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19712         0x1p-32L as threshold for just returning the argument.
19713         * math/auto-libm-test-in: Add more tests of atanh.
19714         * math/auto-libm-test-out: Regenerated.
19715         * sysdeps/i386/fpu/libm-test-ulps: Update.
19716         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19717
19718 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19719
19720         * string/bcopy.c (bcopy): Call memmove for performance.
19721
19722 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19723
19724         * string/bzero.c (__bzero): Call memset for performance.
19725
19726 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19727
19728         [BZ #18068]
19729         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19730         to 00100000.
19731
19732 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19733
19734         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19735
19736 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19737
19738         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19739         (__kernel_standard): Use CSTR macro when setting exc.name.
19740         * sysdeps/ieee754/Makefile [$(subdir) = math]
19741         (CFLAGS-k_standard.c): Remove variable.
19742
19743         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19744         setting p and q from "else if" to "else".
19745         (qzero): Likewise.
19746         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19747         (qone): Likewise.
19748         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19749         (qzerof): Likewise.
19750         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19751         (qonef): Likewise.
19752         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19753         (qzero): Likewise.
19754         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19755         (qone): Likewise.
19756
19757         [BZ #18038]
19758         [BZ #18039]
19759         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19760         return pi/2 for arguments below 0x1p-113L.
19761         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19762         return pi/2 for arguments below 0x1p-106L.
19763         * math/auto-libm-test-in: Add more tests of acos.
19764         * math/auto-libm-test-out: Regenerated.
19765
19766         [BZ #16351]
19767         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19768         (MO): New macro.
19769         (__ieee754_asin): Force underflow exception for results with small
19770         absolute value.
19771         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19772         (MO): New macro.
19773         (__ieee754_asinf): Force underflow exception for results with
19774         small absolute value.
19775         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19776         (__ieee754_asin): Force underflow exception for results with small
19777         absolute value.
19778         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19779         (__ieee754_asinf): Force underflow exception for results with
19780         small absolute value.
19781         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19782         (__ieee754_asinl): Force underflow exception for results with
19783         small absolute value.
19784         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19785         (__ieee754_asinl): Force underflow exception for results with
19786         small absolute value.
19787         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19788         (__ieee754_asinl): Force underflow exception for results with
19789         small absolute value.
19790         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19791         Include <math.h>.
19792         * math/auto-libm-test-in: Do not mark underflow exceptions as
19793         possibly missing for bug 16351.
19794         * math/auto-libm-test-out: Regenerated.
19795
19796         [BZ #18030]
19797         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19798         of power of 2 down when low part has opposite sign.
19799         * math/libm-test.inc (logb_test_data): Add more tests.
19800
19801 2015-02-26  Andreas Schwab  <schwab@suse.de>
19802
19803         [BZ #18032]
19804         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19805         over collating symbol inside a bracket expression.  Minor cleanup.
19806         * posix/tst-fnmatch3.c (do_test): Add test case.
19807
19808 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19809
19810         [BZ #18029]
19811         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19812         Adjust exponent of power of 2 down when low part has opposite
19813         sign.
19814         * math/libm-test.inc (ilogb_test_data): Add more tests.
19815
19816 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19817
19818         [BZ #15969]
19819         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19820         the previous change.
19821
19822         [BZ #15969]
19823         * locale/findlocale.c (_nl_find_locale): Retry archive search
19824         after alias expansion.
19825
19826 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19827
19828         * iconv/tst-iconv3.c (main): Converted to ...
19829         (do_test): ... this.
19830         (TEST_FUNCTION): New macro.
19831         Include test-skeleton.c.
19832
19833         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19834         (convert): Make function static.
19835         (test_unalign): Likewise.  Add const to argument pointee types.
19836         (main): Replace with static function do_test.
19837         Print "Succeeded." only if RET is zero.
19838         (TEST_FUNCTION): New macro.
19839         Include test-skeleton.c.
19840
19841         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19842         returns a null pointer.
19843
19844 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19845
19846         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19847         to __memcpy_ppc only for static builds.
19848
19849 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19850
19851         [BZ #18020]
19852         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19853         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19854         * math/auto-libm-test-in: Add more tests of asinh.
19855         * math/auto-libm-test-out: Regenerated.
19856         * sysdeps/i386/fpu/libm-test-ulps: Update.
19857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19858
19859 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19860
19861         [BZ #15850]
19862         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19863         and ip6_mtuinfo definitions here.
19864         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19865         in this define too.  Update comment.
19866
19867 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19868
19869         * elf/sprof.c (load_shobj): Tweak error message to match others.
19870
19871 2015-02-24  Kevin Easton  <kevin@guarana.org>
19872
19873         [BZ #16145] (partial fix)
19874         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19875         to reduce lock contention.
19876
19877 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19878
19879         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19880         (struct timex): Update time comment.
19881         (ADJ_SETOFFSET): Define.
19882
19883 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19884
19885         [BZ #18019]
19886         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19887         2**56 not 2**28 as threshold for log (2x) formula.
19888         * math/auto-libm-test-in: Add more tests of acosh.
19889         * math/auto-libm-test-out: Regenerated.
19890         * sysdeps/i386/fpu/libm-test-ulps: Update.
19891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19892
19893 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19894
19895         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19896         parenthesis around the buf assignment.
19897         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19898
19899 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19900
19901         [BZ #16783]
19902         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19903         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19904         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19905         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19906         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19907         * math/libm-test.inc (scalb_test_data): Add more tests.
19908
19909 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19910
19911         [BZ #17916]
19912         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19913         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19914
19915 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19916
19917         [BZ #17523]
19918         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19919         * io/bits/fcntl2.h (open): Use it.
19920         (openat): Likewise.
19921         * io/open.c (__libc_open): Likewise.
19922         * io/open64.c (__libc_open64): Likewise.
19923         * io/open64_2.c (__open64_2): Likewise.
19924         * io/open_2.c (__open_2): Likewise.
19925         * io/openat.c (__openat): Likewise.
19926         * io/openat64.c (__openat64): Likewise.
19927         * io/openat64_2.c (__openat64_2): Likewise.
19928         * io/openat_2.c (__openat_2): Likewise.
19929         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19930         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19931         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19932         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19933         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19934         (__open_nocancel): Likewise.
19935         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19936         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19937         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19938
19939 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19940
19941         [BZ #14841]
19942         * resolv/gethnamaddr.c (getanswer): Skip logging if
19943         RES_USE_DNSSEC is set.
19944         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19945
19946 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19947
19948         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19949
19950 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19951
19952         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19953         201304L, for Unicode 7.
19954
19955 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19956
19957         [BZ #17836]
19958         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19959         shared library.  Add gmon-start.os otherwise.
19960         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19961         $(objpfx)gmon-start.os if builing shared library.
19962         ($(objpfx)g$(static-start-installed-name)): Likewise.
19963
19964 2015-02-23  Andreas Schwab  <schwab@suse.de>
19965
19966         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19967
19968 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19969
19970         [BZ #17269]
19971         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19972         (enlarge_userbuf): Likewise.
19973
19974 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19975
19976         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19977         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19978         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19979         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19980
19981 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19982
19983         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19984         expression inside statement expression.
19985
19986 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19987
19988         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19989         <sysdeps/nptl/lowlevellock.h> and remove macros and
19990         functions that are now defined there.
19991         (SYS_futex): Remove.
19992         (lll_compare_and_swap): Remove.
19993         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19994
19995 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19996
19997         [BZ #17999]
19998         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19999         instead of scandirat.
20000         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20001         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20002         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20003         __scandirat.
20004         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20005         (__scandirat): Declare.  Use libc_hidden_proto.
20006         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20007         Remove variable.
20008         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20009
20010 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20011
20012         [BZ #15319]
20013         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20014         (MO): New macro.
20015         (__ieee754_atan2): For results with small absolute value, force
20016         underflow exception and remove excess range and precision from
20017         return value.
20018         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20019         (MO): New macro.
20020         (__ieee754_atan2f): For results with small absolute value, force
20021         underflow exception and remove excess range and precision from
20022         return value.
20023         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20024         (MO): New macro.
20025         (__atan): For results with small absolute value, force underflow
20026         exception and remove excess range and precision from return value.
20027         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20028         (MO): New macro.
20029         (__atanf): For results with small absolute value, force underflow
20030         exception and remove excess range and precision from return value.
20031         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20032         <math.h>.
20033         (__ieee754_atan2): Force underflow exception for results with
20034         small absolute value.
20035         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20036         <math_private.h>.
20037         (atan): Force underflow exception for results with small absolute
20038         value.
20039         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20040         (__atanf): Force underflow exception for results with small
20041         absolute value.
20042         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20043         <math.h>.
20044         (__atanl): Force underflow exception for results with small
20045         absolute value.
20046         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20047         (__atanl): Force underflow exception for results with small
20048         absolute value.
20049         * sysdeps/x86/fpu/bits/mathinline.h
20050         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20051         (__ieee754_atan2): Only define inline for long double.
20052         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20053         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20054         * math/auto-libm-test-in: Do not mark underflow exceptions as
20055         possibly missing for bug 15319.  Add more tests of atan2.
20056         * math/auto-libm-test-out: Regenerated.
20057         * math/libm-test.inc (casin_test_data): Do not mark underflow
20058         exceptions as possibly missing for bug 15319.
20059         (casinh_test_data): Likewise.
20060         * sysdeps/i386/fpu/libm-test-ulps: Update.
20061
20062 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20063
20064         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20065         * sysdeps/mips/bits/endian.h: Fix comments.
20066
20067 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20068
20069         [BZ #17996]
20070         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20071         (hdestroy_r): Likewise.
20072         (hsearch_r): Likewise.
20073         (__hcreate_r): Declare and use libc_hidden_proto.
20074         (__hdestroy_r): Likewise.
20075         (__hsearch_r): Likewise.
20076         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20077         (hcreate): Call __hcreate_r instead of hcreate_r.
20078         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20079         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20080         as weak alias of __hcreate_r.
20081         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20082         __hdestroy_r.
20083         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20084         __hsearch_r.
20085         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20086         Remove variable.
20087         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20088         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20089         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20090         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20091
20092 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20093
20094         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20095         arena_lock into a single arena_get.
20096
20097 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20098
20099         * dl-reloc.c: Inlucde libc-internal.h.
20100         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20101         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20102         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20103         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20104         (grow_heap): Likewise.
20105         * malloc/malloc.c: Include libc-internal.h.
20106         (do_check_malloc): Call powerof2.
20107         (sysmalloc): Use pagesize. Call ALIGN_UP.
20108         (systrim): Use pagesize.
20109         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20110         (__libc_valloc): Use pagesize.
20111         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20112
20113 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20114
20115         [BZ #17991]
20116         * include/sys/resource.h (__getrlimit64): Declare.  Use
20117         libc_hidden_proto.
20118         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20119         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20120         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20121         getrlimit64.
20122         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20123         __getrlimit64.
20124         [!getrlimit64] (getrlimit64): Define as weak alias of
20125         __getrlimit64.  Use libc_hidden_weak.
20126         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20127         using __getrlimit64 not __new_getrlimit64.
20128         (__GI_getrlimit64): Likewise.
20129         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20130         Likewise.
20131         (__GI_getrlimit64): Likewise.
20132         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20134         (getrlimit): Add __getrlimit64 alias.
20135         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20136         Likewise.
20137         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20138         Remove variable.
20139         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20140         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20141
20142 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20143
20144         * libio/fileops.c: Add missing sys/mman.h
20145         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20146
20147 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20148
20149         * manual/math.texi (Errors in Math Functions): Clarify goals
20150         regarding inexact and underflow exceptions.
20151
20152 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20153
20154         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20155         * sysdeps/mips/memset.S: Ditto.
20156
20157 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20158
20159         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20160
20161 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20162
20163         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20164         (__v1longjmp): Remove versioned symbol.
20165         (__v1siglongjmp): Remove alias and versioned symbol.
20166         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20167         (__v2siglongjmp): Likewise.
20168
20169 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20170
20171         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20172
20173 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20174
20175         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20176
20177 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20178
20179         [BZ #17987]
20180         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20181         zero result does not depend on the sign resulting from
20182         subtraction.
20183         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20184         Likewise.
20185         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20186         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20187         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20188         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20189         * math/libm-test.inc (remquo_test_data): Add more tests.
20190
20191 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20192
20193         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20194         Problem reported by J William Piggott.
20195
20196 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20197
20198         [BZ #17978]
20199         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20200         products 4 * y and 2 * y where those would overflow.
20201         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20202         Likewise.
20203         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20204         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20205         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20206         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20207         * math/libm-test.inc (remquo_test_data): Add more tests.
20208
20209         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20210
20211         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20212         [defined _COMPILING_NEWLIB].
20213         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20214         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20215
20216         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20217         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20218
20219 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20220
20221         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20222         acquired.
20223
20224 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20225
20226         [BZ #17792]
20227         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20228         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20229         HOST_STACK_END_ADDR): Likewise.
20230
20231 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20232
20233         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20234         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20235         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20236
20237 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20238
20239         * sysdeps/generic/c++-types.data: New file.
20240         * sysdeps/generic/ld.abilist: New file.
20241         * sysdeps/generic/libBrokenLocale.abilist: New file.
20242         * sysdeps/generic/libanl.abilist: New file.
20243         * sysdeps/generic/libc.abilist: New file.
20244         * sysdeps/generic/libcrypt.abilist: New file.
20245         * sysdeps/generic/libdl.abilist: New file.
20246         * sysdeps/generic/libm.abilist: New file.
20247         * sysdeps/generic/libpthread.abilist: New file.
20248         * sysdeps/generic/libresolv.abilist: New file.
20249         * sysdeps/generic/librt.abilist: New file.
20250
20251 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20252
20253         [BZ #17569]
20254         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20255         Compute absolute value of x as modified by fmod, not original
20256         value of x.
20257         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20258         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20259         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20260         RUN_TEST_ffI_f1_mod8.
20261         (remquo_test_data): Add more tests.
20262
20263 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20264
20265         * sysdeps/init_array/pt-crti.S: New file.
20266
20267 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20268
20269         [BZ #17967]
20270         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20271         __builtin_fmaf instead of relying on contraction of a * b + c.
20272
20273 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20274
20275         [BZ #17969]
20276         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20277         node.
20278
20279 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20280
20281         [BZ #17964]
20282         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20283         __builtin_fma instead of relying on contraction of a * b + c.
20284
20285 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20286
20287         * Makeconfig (ASFLAGS): Add -Werror=undef.
20288         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20289         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20290         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20291
20292         * Makeconfig (after-link): New variable.
20293         (+link-pie, +link-pie-tests): Use it.
20294         (+link-static, +link-static-tests): Likewise.
20295         (+link, +link-tests): Likewise.
20296         * Makerules (build-module, build-module-asneeded): Likewise.
20297         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20298         Likewise.
20299         * elf/Makefile ($(objpfx)ld.so): Likewise.
20300
20301 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20302
20303         [BZ #17965]
20304         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20305         both struct timeval and struct timespec.
20306
20307 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20308
20309         [BZ #16560]
20310         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20311         and redefine.
20312         (__ieee754_exp2l): Do not multiply small fractional parts by
20313         M_LN2l.
20314         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20315         small argument.
20316         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20317         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20318         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20319         * math/auto-libm-test-in: Add more tests of exp2.
20320         * math/auto-libm-test-out: Regenerated.
20321
20322 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20323
20324         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20325         unaligned path.
20326
20327 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20328
20329         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20330         little endian.
20331
20332 2015-02-12  Andreas Schwab  <schwab@suse.de>
20333
20334         [BZ #15790]
20335         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20336         Filter out elision flags from value returned in kind.
20337         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20338         * nptl/tst-pthread-mutexattr.c: New file.
20339
20340 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20341
20342         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20343         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20344         into gnu-gnu, and update comment to refer to abi-tags.
20345
20346 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20347
20348         [BZ #15467]
20349         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20350         (__sincos): Set errno to EDOM for infinite argument.
20351         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20352         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20353         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20354         (__sincosl): Set errno to EDOM for infinite argument.
20355         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20356         (__sincosl): Set errno to EDOM for infinite argument.
20357         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20358         (__sincosl): Set errno to EDOM for infinite argument.
20359         * math/libm-test.inc (sincos_test_data): Test errno setting.
20360
20361 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20362
20363         * string/strxfrm_l.c: Remove #define STRCMP.
20364         * string/strcoll_l.c: Remove #define STRLEN.
20365         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20366         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20367
20368 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20369
20370         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20371         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20372         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20373         * sysdeps/mips/mips64/Makefile: ... here.
20374         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20375         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20376         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20377         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20378         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20379         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20380         * sysdeps/mips/mips64/n64/Implies: Likewise.
20381
20382 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20383
20384         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20385         <sys/time.h>, <string.h>, and <errno.h>.
20386         (dest_offset, dest_address, value, zero): Remove unused variables.
20387         (ldouble): Remove typedef.
20388         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20389         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20390         1).  Fix code style.
20391         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20392         (check): Function removed.
20393         (CHECK): New macro.
20394         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20395         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20396         Don't call set_sigaction_FP and remove_sigaction_FP here.
20397         (ldouble_test): Just use 'long double' as macro argument, no need for
20398         the 'ldouble' typedef.
20399         (do_test): Set up SIGFPE handler at start, using plain signal rather
20400         than sigaction.  Fix code style.
20401
20402 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20403
20404         [BZ #17949]
20405         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20406         jump label.
20407
20408 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20409
20410         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20411         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20412
20413         * sysdeps/powerpc/configure.ac: Remove file.
20414         * sysdeps/powerpc/configure: Likewise.
20415
20416         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20417         [sysdep_routines]: Remove wordcopy-power6 object.
20418         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20419         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20420         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20421         (__memmove_ppc32): Likewise.
20422         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20423         file.
20424         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20425         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20426         Remove preprocessor.
20427
20428         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20429         [sysdep_routines]: Remove wide chars objects.
20430         [wcsmbs]: New rule for wide char objects.
20431
20432         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20433         Remove wordcopy-power6 obejct.
20434         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20435         Use local call for wordcopy and memcpy symbols.
20436         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20437         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20438         implementation for loader.
20439         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20440
20441         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20442         Remove wordcopy-power7 object.
20443         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20444         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20445         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20446         (_wordcopy_fwd_dest_aligned): Likewise.
20447         (_wordcopy_bwd_aligned): Likewise.
20448         (_wordcopy_bwd_dest_aligned): Likewise.
20449
20450         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20451         Rewrite to call __memmove_ppc instead of include default
20452         implementation.
20453
20454         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20455         Remove wide chars objects.
20456         [wcsmbs]: New rule for wide char objects.
20457
20458 2015-02-09  Andreas Schwab  <schwab@suse.de>
20459
20460         [BZ #17912]
20461         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20462         in terms of __O_DIRECTORY.
20463
20464 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20465
20466         * time/getdate.c: Include <stdbool.h>.
20467         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20468         call PTR_MANGLE.
20469         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20470         PTR_DEMANGLE.
20471
20472 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20473
20474         Add ersatz _Static_assert on older C hosts
20475         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20476         pre-C11 C platform that is not known to support _Static_assert.
20477
20478 2015-02-07  Richard Braun  <rbraun@sceen.net>
20479
20480         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20481         sigstate.
20482         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20483
20484 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20485
20486         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20487         priority against unexistent AIO_PRIO_DELTA_MAX.
20488         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20489         instead of int.
20490         * misc/fchflags.c (fchflags): Likewise.
20491         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20492         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20493         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20494         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20495         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20496         Declare macros.
20497         [__USE_MISC] (chflags, fchflags): Declare functions.
20498         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20499         EINVAL when nfds is greater than FD_SETSIZE.
20500         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20501         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20502         45.
20503         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20504         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20505         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20506         MACH_RCV_TIMED_OUT.
20507         * hurd/hurd/signal.h (_hurd_self_sigstate,
20508         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20509         Explicit casts from void *.
20510         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20511         * abi-tags: Rename gnu-gnu os into gnu.
20512
20513         [BZ #4719]
20514         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20515         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20516         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20517         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20518         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20519         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20520
20521         [BZ #17944]
20522         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20523         duplicates ADDR->sun_path with sockaddr LEN limitation.
20524         * sysdeps/mach/hurd/connect.c: Include <string.h>
20525         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20526         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20527         * sysdeps/mach/hurd/sendto.c: Likewise.
20528         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20529         implementing it by hand.
20530
20531 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20532
20533         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20534         Use sfi_breg on ldr.
20535         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20536         Likewise.
20537
20538         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20539         it's defined.
20540         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20541         Test SIGSETXID only if it's defined.
20542
20543         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20544
20545         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20546         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20547
20548         * nptl/tst-align2.c: Moved ...
20549         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20550         * nptl/Makefile (tests): Remove tst-align2.
20551         * sysdeps/unix/sysv/linux/Makefile
20552         [$(subdir) = nptl] (tests): Add tst-align-clone.
20553         * nptl/tst-getpid1.c: Moved ...
20554         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20555         * nptl/tst-getpid2.c: Moved ...
20556         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20557         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20558         * sysdeps/unix/sysv/linux/Makefile
20559         [$(subdir) = nptl] (tests): ... here.
20560         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20561         * sysdeps/unix/sysv/linux/Makefile
20562         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20563
20564         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20565         Drop trailing \n from perror argument.  Use return rather than exit.
20566
20567         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20568         on [SA_SIGINFO].
20569         * nptl/tst-cancel21.c (do_test): Likewise.
20570         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20571         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20572         [!SA_SIGINFO]: Make it a stub test.
20573
20574         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20575         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20576
20577         * posix/tst-getlogin.c: Move to ...
20578         * login/tst-getlogin.c: ... here.
20579         * posix/Makefile (tests): Move tst-getlogin to ...
20580         * login/Makefile (tests): ... here.
20581
20582         * libio/tst-atime.c (do_test): Move local variables SV and E
20583         inside [ST_NOATIME] conditional.
20584
20585         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20586
20587         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20588
20589         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20590         (wait_code): New function replaces macro.
20591         Call nanosleep rather than syscall.
20592
20593         * nptl/pt-system.c: Rewritten.  Put everything under
20594         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20595         Use IFUNC to redirect when possible.
20596
20597         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20598         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20599         Use IFUNC to redirect when possible.
20600
20601         * nptl/pt-fork.c: Rewritten.  Put everything under
20602         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20603         Use IFUNC to redirect when possible.
20604         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20605
20606         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20607         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20608         unconditionally nowadays.  This included the only reference to
20609         __vdso_clock_gettime that appears outside libc proper.
20610         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20611         Remove version set (containing only __vdso_clock_gettime).
20612         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20613         Add attribute_hidden.
20614         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20615         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20616         libc_hidden_data_def.
20617         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20618         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20619
20620         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20621         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20622         setrpcent, and getrpcport to ...
20623         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20624         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20625         getrpcbynumber_r, and getrpcent_r to ...
20626         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20627         * inet/getrpcbyname.c: Moved ...
20628         * sunrpc/getrpcbyname.c: ... here.
20629         * inet/getrpcbyname_r.c: Moved ...
20630         * sunrpc/getrpcbyname_r.c: ... here.
20631         * inet/getrpcbynumber.c: Moved ...
20632         * sunrpc/getrpcbynumber.c: ... here.
20633         * inet/getrpcbynumber_r.c: Moved ...
20634         * sunrpc/getrpcbynumber_r.c: ... here.
20635         * inet/getrpcent.c: Moved ...
20636         * sunrpc/getrpcent.c: ... here.
20637         * inet/getrpcent_r.c: Moved ...
20638         * sunrpc/getrpcent_r.c: ... here.
20639         * inet/Makefile (routines): Move those to ...
20640         * sunrpc/Makefile (routines): ... here.
20641         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20642         the $(subdirs) list.
20643         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20644         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20645         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20646         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20647
20648         * elf/Makefile (routines): Include $(all-dl-routines), not just
20649         $(dl-routines).
20650         (rtld-routines): Likewise.  Use = rather than :=.
20651         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20652         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20653         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20654         * sysdeps/arm/Makefile: Likewise.
20655         * sysdeps/i386/Makefile: Likewise.
20656         * sysdeps/x86_64/Makefile: Likewise.
20657         * sysdeps/hppa/Makefile [$(subdir) = elf]
20658         (sysdep_routines, sysdep-rtld-routines): Don't add
20659         $(sysdep-dl-routines) to these.
20660         * sysdeps/ia64/Makefile: Likewise.
20661         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20662         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20663         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20664         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20665         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20666         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20667         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20668         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20669         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20670         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20671         these; sysdep-dl-routines alone is enough.
20672
20673 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20674
20675         [BZ #17932]
20676         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20677         where multiplication results in zero and third argument is finite
20678         and nonzero.
20679         * math/auto-libm-test-in: Add more tests of fma.
20680         * math/auto-libm-test-out: Regenerated.
20681
20682         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20683         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20684         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20685         (_FP_CMP_EQ): Likewise.
20686         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20687
20688         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20689         extra argument CHECK_NAN.  Redefine as wrapper around
20690         _FP_EXTEND_CNAN.
20691
20692 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20693
20694         * version.h (RELEASE): Set to "stable".
20695         (VERSION): Set to "2.21"
20696         * include/features.h (__GLIBC_MINOR__): Set to 21.
20697
20698         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20699
20700 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20701             Paul Eggert  <eggert@cs.ucla.edu>
20702
20703         [BZ #16618]
20704         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20705         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20706         size in bytes. Store needed elements in wpmax. Use needed size
20707         in bytes for extend_alloca.
20708
20709 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20710
20711         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20712         binutls 2.25, and texinfo 5.2.
20713         * INSTALL: Regenerate.
20714         * sysdeps/nios2/configure: Regenerate.
20715         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20716         * manual/contrib.texi: Update.
20717         * po/be.po: Update.
20718         * po/bg.po: Update.
20719         * po/ca.po: Update.
20720         * po/cs.po: Update.
20721         * po/da.po: Update.
20722         * po/de.po: Update.
20723         * po/el.po: Update.
20724         * po/eo.po: Update.
20725         * po/es.po: Update.
20726         * po/fi.po: Update.
20727         * po/fr.po: Update.
20728         * po/gl.po: Update.
20729         * po/hr.po: Update.
20730         * po/hu.po: Update.
20731         * po/ia.po: Update.
20732         * po/id.po: Update.
20733         * po/it.po: Update.
20734         * po/ja.po: Update.
20735         * po/ko.po: Update.
20736         * po/lt.po: Update.
20737         * po/nb.po: Update.
20738         * po/nl.po: Update.
20739         * po/pl.po: Update.
20740         * po/pt_BR.po: Update.
20741         * po/ru.po: Update.
20742         * po/rw.po: Update.
20743         * po/sk.po: Update.
20744         * po/sl.po: Update.
20745         * po/sv.po: Update.
20746         * po/tr.po: Update.
20747         * po/uk.po: Update.
20748         * po/vi.po: Update.
20749         * po/zh_CN.po: Update.
20750         * po/zh_TW.po: Update.
20751
20752         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20753         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20754         * sysdeps/hppa/dl-irel.h: Remove #warning.
20755         * sysdeps/hppa/entry.h: Provide prototype for
20756         __canonicalize_funcptr_for_compare and cast argument.
20757         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20758         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20759         * sysdeps/hppa/sotruss-lib.c: New file.
20760         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20761         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20762         (atomic_compare_and_exchange_bool_acq): Likewise.
20763         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20764         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20765
20766         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20767         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20768         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20769
20770 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20771
20772         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20773         called function in non-PIC case.
20774
20775 2015-01-31  David S. Miller  <davem@davemloft.net>
20776
20777         * sysdeps/sparc/sparc32/bits/atomic.h
20778         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20779         unlock not after it.
20780         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20781         volatile register usage warnings from the compiler.
20782
20783         * sysdeps/sparc/nptl/sem_init.c: Delete.
20784         * sysdeps/sparc/nptl/sem_post.c: Delete.
20785         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20786         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20787         * sysdeps/sparc/sparc32/sem_init.c: New file.
20788         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20789         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20790         padding explicitly initialized.
20791         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20792         padding for in-semaphore spinlock.
20793         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20794         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20795         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20796         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20797         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20798         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20799         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20800         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20801         version.
20802         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20803         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20804
20805 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20806
20807         [BZ #17801]
20808         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20809         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20810         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20811         New.
20812         (index_AVX_Fast_Unaligned_Load): Likewise.
20813         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20814         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20815         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20816         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20817         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20818         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20819         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20820         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20821         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20822
20823 2015-01-29  Andreas Schwab  <schwab@suse.de>
20824
20825         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20826
20827 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20828
20829         [BZ #17892]
20830         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20831
20832 2015-01-28  Martin Sebor  <msebor@redhat.com>
20833
20834         * math/README.libm-test: Clarify. Add "How to read the test output."
20835
20836 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20837
20838         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20839         Define to 0.
20840
20841 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20842
20843         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20844         (__HAVE_64B_ATOMICS): Define to 0.
20845
20846 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20847
20848         [BZ #17885]
20849         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20850         value to set as new flag.
20851
20852         [BZ #16576]
20853         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20854         and use _ARCH_PPCSQ instead.
20855         (__ieee754_sqrt): Likewise.
20856         (__ieee754_sqrtf): Likewise.
20857         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20858         _ARCH_PPCSQ is defined.
20859         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20860         fsqrt instruction.
20861         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20862         _ARCH_PPCSQ is defined.
20863         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20864         fsqrts instruction.
20865         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20866
20867 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20868
20869         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20870         bug (GCC BZ #64739).
20871
20872 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20873
20874         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20875         Mark _retval as used.
20876         (lll_futex_wake_unlock): Likewise.
20877         (lll_futex_timed_wait_requeue_pi): Likewise.
20878
20879         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20880         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20881         register variables.
20882
20883         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20884         libm_hidden_def.
20885
20886         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20887         (__bswap_64): Mark as __always_inline.
20888
20889 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20890
20891         [BZ #15378]
20892         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20893         when none of the search directories exist.
20894
20895 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20896
20897         [BZ #17869]
20898         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20899         power8 in .machine directive.
20900
20901         [BZ #17868]
20902         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20903         set dependency from opd value.
20904
20905 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20906
20907         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20908         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20909         architecture.
20910
20911 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20912
20913         [BZ #17870]
20914         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20915         with uint64_t.
20916         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20917         (uint64_t) 1.
20918         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20919         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20920         Replace 1UL with (uint64_t) 1.
20921         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20922         int with uint64_t.
20923
20924 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20925
20926         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20927         (if_freenameindex): Likewise.
20928
20929         * resource/getrlimit64.c: Add missing libc_hidden_def.
20930
20931 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20932
20933         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20934         __label__.
20935         (_FP_FMA): Likewise.
20936         (_FP_TO_INT_ROUND): Likewise.
20937         (_FP_FROM_INT): Likewise.
20938
20939 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20940
20941         [BZ #16418]
20942         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20943         Make code racy and cancel safe.
20944
20945 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20946
20947         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20948         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20949         attribution.
20950
20951         * pwd/tst-getpw.c: Rewrite.
20952
20953         [BZ #17702]
20954         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20955         (modules-names): Add moddummy1 and moddummy2.
20956         ($(objpfx)tst-rec-dlopen): Define.
20957         * dlfcn/moddummy1.c: New file.
20958         * dlfcn/moddummy2.c: New file.
20959         * dlfcn/tst-rec-dlopen.c: New file.
20960         * elf/dl-cache.c (_dl_load_cache_lookup):
20961         Return char*. Copy result with alloca/strcpy/strdup.
20962         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20963         returns char*. Free cached. If not saving realname
20964         free cached.
20965         * elf/dl-open.c (dl_open_worker): Do not assert that
20966         _r_debug->r_state is RT_CONSISTENT.
20967         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20968         returns char*.
20969
20970 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20971             Carlos O'Donell  <carlos@redhat.com>
20972
20973         [BZ #12674]
20974         * nptl/sem_waitcommon.c: New file.
20975         * nptl/sem_wait.c: Include sem_waitcommon.c.
20976         (__sem_wait_cleanup, do_futex_wait): Remove.
20977         (__new_sem_wait): Adapt.
20978         (__new_sem_trywait): New function.
20979         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20980         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20981         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20982         (sem_timedwait): Adapt.
20983         * nptl/sem_post.c (__new_sem_post): Adapt.
20984         (futex_wake): New function.
20985         (__old_sem_post): Add release MO fence.
20986         * nptl/sem_open.c (sem_open): Adapt.
20987         * nptl/sem_init.c (__new_sem_init): Adapt.
20988         (futex_private_if_supported): New function.
20989         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20990         (__old_sem_getvalue): Add using previous code.
20991         * sysdeps/nptl/internaltypes.h: Adapt.
20992         * nptl/tst-sem13.c (do_test): Adapt.
20993         * nptl/tst-sem11.c (main): Adapt.
20994         * nptl/sem_trywait.c: Remove.
20995         * nptl/DESIGN-sem.txt: Remove.
20996         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20997         (gen-as-const-headers): Remove structsem.sym.
20998         * nptl/structsem.sym: Remove.
20999         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21000         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21001         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21002         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21003         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21004         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21005         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21006         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21007         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21008         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21009         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21010         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21011         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21012         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21013         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21014         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21015         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21016         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21017         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21018         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21019         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21020         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21021
21022 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21023
21024         * INSTALL: Regenerated.
21025
21026         * po/libc.pot: Regenerated.
21027
21028 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21029             Sandra Loosemore  <sandra@codesourcery.com>
21030             Andrew Jenner  <andrew@codesourcery.com>
21031             Joseph Myers  <joseph@codesourcery.com>
21032             Nathan Sidwell  <nathan@codesourcery.com>
21033
21034         * NEWS: Mention new Nios II port.
21035         * sysdeps/nios2/Implies: New file.
21036         * sysdeps/nios2/Makefile: New file.
21037         * sysdeps/nios2/Subdirs: New file.
21038         * sysdeps/nios2/Versions: New file.
21039         * sysdeps/nios2/__longjmp.S: New file.
21040         * sysdeps/nios2/abort-instr.h: New file.
21041         * sysdeps/nios2/backtrace.c: New file.
21042         * sysdeps/nios2/bits/endian.h: New file.
21043         * sysdeps/nios2/bits/fenv.h: New file.
21044         * sysdeps/nios2/bits/link.h: New file.
21045         * sysdeps/nios2/bits/setjmp.h: New file.
21046         * sysdeps/nios2/bsd-_setjmp.S: New file.
21047         * sysdeps/nios2/bsd-setjmp.S: New file.
21048         * sysdeps/nios2/configure: New generated file.
21049         * sysdeps/nios2/configure.ac: New file.
21050         * sysdeps/nios2/crti.S: New file.
21051         * sysdeps/nios2/crtn.S: New file.
21052         * sysdeps/nios2/dl-init.c: New file.
21053         * sysdeps/nios2/dl-machine.h: New file.
21054         * sysdeps/nios2/dl-sysdep.h: New file.
21055         * sysdeps/nios2/dl-tls.h: New file.
21056         * sysdeps/nios2/dl-trampoline.S: New file.
21057         * sysdeps/nios2/gccframe.h: New file.
21058         * sysdeps/nios2/gmp-mparam.h: New file.
21059         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21060         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21061         * sysdeps/nios2/ldsodefs.h: New file.
21062         * sysdeps/nios2/libc-tls.c: New file.
21063         * sysdeps/nios2/libm-test-ulps: New file.
21064         * sysdeps/nios2/machine-gmon.h: New file.
21065         * sysdeps/nios2/math-tests.h: New file.
21066         * sysdeps/nios2/math_private.h: New file.
21067         * sysdeps/nios2/memusage.h: New file.
21068         * sysdeps/nios2/nptl/Makefile: New file.
21069         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21070         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21071         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21072         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21073         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21074         * sysdeps/nios2/nptl/tls.h: New file.
21075         * sysdeps/nios2/preconfigure: New file.
21076         * sysdeps/nios2/s_fma.c: New file.
21077         * sysdeps/nios2/s_fmaf.c: New file.
21078         * sysdeps/nios2/setjmp.S: New file.
21079         * sysdeps/nios2/sfp-machine.h: New file.
21080         * sysdeps/nios2/sotruss-lib.c: New file.
21081         * sysdeps/nios2/stackguard-macros.h: New file.
21082         * sysdeps/nios2/stackinfo.h: New file.
21083         * sysdeps/nios2/start.S: New file.
21084         * sysdeps/nios2/sysdep.h: New file.
21085         * sysdeps/nios2/tls-macros.h: New file.
21086         * sysdeps/nios2/tst-audit.h: New file.
21087         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21088         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21089         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21090         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21091         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21092         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21093         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21094         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21095         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21096         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21097         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21098         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21099         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21100         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21101         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21102         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21103         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21104         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21105         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21106         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21107         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21108         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21109         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21110         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21111         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21112         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21113         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21114         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21115         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21116         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21117         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21118         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21119         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21120         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21121         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21122         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21123         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21124         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21125         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21126         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21127         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21128         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21129         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21130         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21131
21132 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21133
21134         [BZ #17844]
21135         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21136         (getutent): Use weak_alias in non SHARED case
21137         and default_symbol_version in SHARED case.
21138         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21139         (getutent_r, pututline): Likewise.
21140         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21141         (getutid): Likewise.
21142         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21143         (getutid_r): Likewise.
21144         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21145         (getutline): Likewise.
21146         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21147         (getutline_r): Likewise.
21148         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21149         (updwtmp): Likewise.
21150
21151 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21152
21153         [BZ #17848]
21154         * sysdeps/s390/s390-32/memcmp.S
21155         (memcmp_g5): Rename to __memcmp_g5.
21156         * sysdeps/s390/s390-32/memcpy.S
21157         (memcpy_g5): Rename to __memcpy_g5.
21158         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21159         (memcpy_mvcle) Rename to __memcpy_mvcle.
21160         * sysdeps/s390/s390-32/memset.S
21161         (memset_g5): Rename to __memset_g5.
21162         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21163         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21164         and use prefixed functions.
21165         * sysdeps/s390/s390-32/multiarch/memcmp.S
21166         (memcmp_z196): Rename to __memcmp_z196.
21167         (memcmp_z10): Rename to __memcmp_z10.
21168         (memcmp): Set alias to __memcmp_g5.
21169         (bcmp): Set alias to __memcmp_g5.
21170         * sysdeps/s390/s390-32/multiarch/memcpy.S
21171         (memcpy_z196): Rename to __memcpy_z196.
21172         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21173         (memcpy_z10): Rename to __memcpy_z10.
21174         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21175         (memcpy): Set alias to __memcpy_g5.
21176         * sysdeps/s390/s390-32/multiarch/memset.S
21177         (memset_z196): Rename to __memset_z196.
21178         Jump to __memset_mvcle instead of memset_mvcle.
21179         (memset_z10): Rename to __memset_z10.
21180         Jump to __memset_mvcle instead of memset_mvcle.
21181         (memset_mvcle) Rename to __memset_mvcle.
21182         (memset): Set alias to __memset_g5.
21183         * sysdeps/s390/s390-64/memcmp.S
21184         (memcmp_z900): Rename to __memcmp_z900.
21185         * sysdeps/s390/s390-64/memcpy.S
21186         (memcpy_z900): Rename to __memcpy_z900.
21187         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21188         (memcpy_mvcle) Rename to __memcpy_mvcle.
21189         * sysdeps/s390/s390-64/memset.S
21190         (memset_z900): Rename to __memset_z900.
21191         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21192         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21193         and use prefixed functions.
21194         * sysdeps/s390/s390-64/multiarch/memcmp.S
21195         (memcmp_z196): Rename to __memcmp_z196.
21196         (memcmp_z10): Rename to __memcmp_z10.
21197         (memcmp): Set alias to __memcmp_z900.
21198         (bcmp): Set alias to __memcmp_z900.
21199         * sysdeps/s390/s390-64/multiarch/memcpy.S
21200         (memcpy_z196): Rename to __memcpy_z196.
21201         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21202         (memcpy_z10): Rename to __memcpy_z10.
21203         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21204         (memcpy): Set alias to __memcpy_z900.
21205         * sysdeps/s390/s390-64/multiarch/memset.S
21206         (memset_z196): Rename to __memset_z196.
21207         Jump to __memset_mvcle instead of memset_mvcle.
21208         (memset_z10): Rename to __memset_z10.
21209         Jump to __memset_mvcle instead of memset_mvcle.
21210         (memset_mvcle) Rename to __memset_mvcle.
21211         (memset): Set alias to __memset_z900.
21212
21213 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21214
21215         [BZ #17748]
21216         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21217         __fesetenv instead of fesetenv.
21218
21219 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21220
21221         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21222         macro.
21223
21224 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21225
21226         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21227         regression on LE.
21228
21229         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21230         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21231         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21232         strncmp-power8 object.
21233         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21234         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21235         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21236         * NEWS: Update.
21237
21238 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21239             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21240
21241         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21242         trailing byte check.
21243
21244 2015-01-13  David S. Miller  <davem@davemloft.net>
21245
21246         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21247
21248 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21249
21250         * login/logout.c (logout): Use memset rather than bzero.
21251         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21252         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21253         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21254         (_gethtbyaddr): Likewise.
21255         * locale/programs/simple-hash.c (bcopy): Macro removed.
21256
21257 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21258
21259         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21260         Add strcmp-power8 object.
21261         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21262         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21263         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21264         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21265         __strcmp_power8 implementation.
21266         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21267         * NEWS: Update.
21268
21269         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21270         Add strncpy-power8 and stpncpy-power8 objects.
21271         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21272         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21273         implementations.
21274         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21275         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21276         __stpncpy_power8 implementation.
21277         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21278         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21279         __strncpy_power8 implementation.
21280         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21281         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21282         * NEWS: Update.
21283
21284         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21285         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21286         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21287
21288         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21289         strncat-power8 object.
21290         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21291         __strcat_power8 implementation.
21292         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21293         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21294         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21295         optimized strcat for power8.
21296
21297         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21298         strcpy-power8 and stpcpy-power8 objects.
21299         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21300         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21301         implementations.
21302         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21303         multiarch stpcpy implementation for POWER8.
21304         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21305         multiarch strcpy implementation for POWER8.
21306         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21307         __strcpy_power8 function.
21308         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21309         stpcpy for POWER8.
21310         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21311         strcpy for POWER8.
21312         * NEWS: Update.
21313
21314 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21315
21316         [BZ #16009]
21317         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21318         weights and rules. Use do_xfrm_cached if data fits in cache,
21319         do_xfrm otherwise.  Moved former main loop to...
21320         * (do_xfrm_cached): New function.
21321         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21322         find_idx, find_position and stack_push.
21323         * (find_idx): New function.
21324         * (find_position): Likewise.
21325         * localedata/sort-test.sh: Added test run for do_xfrm.
21326         * localedata/xfrm-test.c (main): Added command line option
21327         -nocache to run the test with strings that are too large for
21328         the STRXFRM cache.
21329
21330 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21331
21332         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21333         variable to lll_futex_wake call, not the value itself.
21334
21335 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21336
21337         [BZ #17803]
21338         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21339         twom64.  Adjust value to 0x1p-64L.
21340         (__scalblnl): Only return standard underflowing result for K <=
21341         -64 not K <= -63; adjust exponent for underflowing result by 64
21342         not 63.
21343         * math/libm-test.inc (scalbn_test_data): Add more tests.
21344         (scalbln_test_data): Likewise.
21345
21346         [BZ #17834]
21347         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21348         0x1p63L.
21349         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21350         not HX.
21351         * math/libm-test.inc (scalbn_test_data): Add more tests.
21352         (scalbln_test_data): Likewise.
21353
21354 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21355             Stefani Seibold  <stefani@seibold.net>
21356
21357         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21358         (sysdep_routines): Add dl-vdso here, ...
21359         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21360         (sysdep_routines): ... not here.
21361         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21362         fallback when vDSO is not presented.
21363         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21364         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21365         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21366         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21367         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21368         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21369         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21370         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21371         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21372         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21373         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21374         fallback configurable symbol when vDSO is not available.
21375         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21376         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21377         be able to redefine fallback symbol when vDSO is not available.
21378         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21379         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21380
21381 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21382
21383         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21384         (TLS_INIT_TP): Add tm_capable initialization.
21385         (TLS_DEFINE_INIT_TP): Likewise.
21386         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21387         TCB.
21388         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21389         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21390         calculation.
21391         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21392         transactoion is lock elision is built and TCB tm_capable is set.
21393         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21395         (INTERNAL_SYSCALL_NCS): Likewise.
21396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21397         (INTERNAL_SYSCALL_NCS): Likewise.
21398         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21399
21400         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21401         for powerpc.
21402         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21403         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21404         and remove it for 32 bits case.
21405         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21406         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21407         initialization.
21408         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21409         Disable lock elision with rdlocks if elision is not available.
21410
21411         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21412         (sysdep_routines): Add lock elision objects.
21413         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21414         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21415         [pthread_mutex_t] (__elision): Add field.
21416         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21417         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21418         elision definitions for powerpc.
21419         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21420         implementation of lock elision for powerpc.
21421         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21422         implementation of timed lock elision for powerpc.
21423         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21424         implementation of trylock with lock elision for powerpc.
21425         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21426         implementaion of unlock for lock elision for powerpc.
21427         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21428         automatic enable lock elision for mutexes.
21429         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21430         transaction execution definitions for powerpc.
21431         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21432         definitions.
21433         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21434         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21435         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21436         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21437         * NEWS: Update.
21438
21439 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21440
21441         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21442         for #include of <shm-directory.h>.
21443
21444 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21445
21446         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21447         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21448
21449 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21450
21451         [BZ #17791]
21452         * NEWS: Mention bug fix.
21453         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21454         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21455         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21456
21457 2015-01-09  Torvald Riegel <triegel@redhat.com>
21458
21459         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21460
21461 2015-01-09  Torvald Riegel <triegel@redhat.com>
21462
21463         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21464
21465 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21466
21467         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21468         pointer and cast to uintptr_t.
21469
21470 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21471
21472         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21473         removed.
21474         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21475
21476 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21477
21478         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21479         of 0.
21480
21481 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21482
21483         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21484         <nptl/pthreadP.h> instead.
21485         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21486
21487         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21488         already defined.
21489         [__SIGRTMIN] (init): Function removed.
21490         [__SIGRTMIN] (initialized): Variable removed.
21491         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21492         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21493         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21494         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21495         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21496         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21497         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21498         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21499         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21500         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21501         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21502         * sysdeps/nptl/allocrtsig.c: New file.
21503         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21504         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21505         * sysdeps/generic/testrtsig.h: File removed.
21506
21507         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21508         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21509
21510         * nptl/nptl-init.c (pthread_functions): Conditionalize
21511         .ptr__nptl_setxid initialization on [SIGSETXID].
21512
21513         * sysdeps/nptl/sys/procfs.h: New file.
21514         * nptl_db/Makefile (headers): Add it.
21515         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21516
21517         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21518         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21519         * nptl/pthread_attr_setaffinity.c: Include it.
21520         * nptl/pthread_setattr_default_np.c: Likewise.
21521         * nptl/check-cpuset.h: New file.
21522
21523 2015-01-08  Richard Henderson  <rth@redhat.com>
21524
21525         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21526         (CFLAGS-tst-execstack-prog.c): Likewise.
21527         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21528
21529 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21530             Sandra Loosemore  <sandra@codesourcery.com>
21531             Andrew Jenner  <andrew@codesourcery.com>
21532             Joseph Myers  <joseph@codesourcery.com>
21533             Nathan Sidwell  <nathan@codesourcery.com>
21534
21535         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21536         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21537         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21538         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21539         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21540         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21541         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21542         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21543         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21544         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21545         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21546         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21547         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21548         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21549         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21550         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21551         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21552
21553 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21554
21555         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21556         timespec struct member in syscall macro.
21557         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21558         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21559         first timeval struct member in syscall macro.
21560         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21561
21562 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21563
21564         [BZ #17748]
21565         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21566         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21567         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21568         __feupdateenv and define as weak alias of __feupdateenv.  Use
21569         libm_hidden_weak.
21570         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21571         libm_hidden_def.
21572         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21573         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21574         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21575         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21576         libm_hidden_def.
21577         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21578         __feupdateenv and define as weak alias of __feupdateenv.  Use
21579         libm_hidden_weak.
21580         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21581         libm_hidden_def.
21582         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21583         __feupdateenv and define as weak alias of __feupdateenv.  Use
21584         libm_hidden_weak.
21585         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21586         libm_hidden_def.
21587         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21588         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21589         (__feupdateenv): Likewise.
21590         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21591         __feupdateenv and define as weak alias of __feupdateenv.  Use
21592         libm_hidden_weak.
21593         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21594         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21595         libm_hidden_def.
21596         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21597         function.
21598         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21599         libm_hidden_def.
21600         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21601         __feupdateenv instead of feupdateenv.
21602         (default_libc_feupdateenv_test): Likewise.
21603         (libc_feresetround_ctx): Likewise.
21604
21605 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21606
21607         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21608         prototype.
21609
21610 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21611
21612         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21613         COLL_SYM in a couple of places to avoid uninitialized variable
21614         wanings on tilegx gcc 4.8.2.
21615
21616 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21617
21618         * sysdeps/aarch64/strcpy.S: New file.
21619         * sysdeps/aarch64/stpcpy.S: New file.
21620         * NEWS: Updated.
21621
21622 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21623
21624         * sysdeps/aarch64/strrchr.S: New file.
21625         * NEWS: Updated.
21626
21627 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21628
21629         [BZ #17658]
21630         * stdlib/setenv.c: Fix memory leak when setting large,
21631         duplicate string.
21632
21633 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21634
21635         [BZ #17273]
21636         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21637         and tabs from buffer before parsing fstab entry.
21638         * misc/tst-mntent.c (main): Add test for mount entry with
21639         trailing spaces and tabs.
21640
21641 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21642
21643         [BZ #17748]
21644         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21645         * math/fesetround.c (fesetround): Rename to __fesetround and
21646         define as weak alias of __fesetround.  Use libm_hidden_weak.
21647         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21648         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21649         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21650         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21651         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21652         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21653         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21654         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21655         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21656         __fesetround_inline.
21657         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21658         __fesetround_inline instead of __fesetround.
21659         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21660         __fesetround and define as weak alias of __fesetround.  Use
21661         libm_hidden_weak.  Call __fesetround_inline instead of
21662         __fesetround.
21663         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21664         __fesetround and define as weak alias of __fesetround.  Use
21665         libm_hidden_weak.
21666         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21667         Likewise.
21668         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21669         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21670         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21671         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21672         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21673         __fesetround and define as weak alias of __fesetround.  Use
21674         libm_hidden_weak.
21675         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21676         __fesetround instead of fesetround.
21677         (default_libc_feholdexcept_setround): Likewise.
21678         (libc_feholdsetround_ctx): Likewise.
21679         (libc_feholdsetround_noex_ctx): Likewise.
21680
21681         [BZ #17748]
21682         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21683         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21684         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21685         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21686         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21687         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21688         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21689         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21690         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21691         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21692         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21693         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21694         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21695         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21696         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21697         libm_hidden_def.
21698         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21699         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21700         Likewise.
21701         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21702         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21703         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21704         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21705         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21706         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21707         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21708         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21709         __fesetenv instead of fesetenv.
21710         (libc_feresetround_noex_ctx): Likewise.
21711         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21712         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21713         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21714         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21715         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21716         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21717         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21718         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21719         (__feupdateenv): Likewise.
21720         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21721         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21722         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21723         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21724
21725 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21726
21727         [BZ #17806]
21728         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21729         addresses have been freed.
21730
21731 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21732
21733         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21734         and nservall.
21735
21736 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21737
21738         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21739         Clean up check_pf allocation pattern. addresses
21740
21741 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21742
21743         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21744         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21745         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21746         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21747         * nptl/pthread_join.c (pthread_join): Likewise.
21748         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21749         * sysdeps/posix/waitid.c (__waitid): Likewise.
21750         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21751         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21752         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21753         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21754         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21755         Likewise.
21756         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21757         (__libc_pread64): Likewise.
21758         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21759         (__libc_pwrite): Likewise.
21760         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21761         (__libc_pwrite64): Likewsie.
21762         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21763         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21764         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21765         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21766         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21767         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21768         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21770         Likewise.
21771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21772         (__libc_pread64): Likewise.
21773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21774         Likewise.
21775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21776         (__libc_pwrite64): Likewise.
21777         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21778         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21779         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21780         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21781         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21782         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21783         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21784         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21785         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21786         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21787         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21788         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21789         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21790         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21791         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21792         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21793         Likewise.
21794
21795 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21796
21797         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21798         (CFLAGS-test-double.c): Likewise.
21799         (CFLAGS-test-ldouble.c): Likewise.
21800         (CPPFLAGS-test-ifloat.c): Likewise.
21801         (CPPFLAGS-test-idouble.c): Likewise.
21802         (CPPFLAGS-test-ildoubl.c): Likewise.
21803         (CFLAGS-test-test-fenv.c): Remove variable.
21804         (CFLAGS-test-misc.c): Likewise.
21805
21806 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21807
21808         [BZ #17797]
21809         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21810         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21811         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21812         CLOCKS_PER_SEC == 1000000.
21813         * time/clocktest.c (main): Replace %ld with %jd and cast to
21814         intmax_t.
21815
21816 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21817
21818         * sysdeps/generic/unwind-resume.h: New file.
21819         * sysdeps/gnu/unwind-resume.c: Include it.
21820         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21821         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21822         argument list.
21823         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21824         global rather than static.
21825         (_Unwind_Resume): Update user.
21826         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21827         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21828         rather than static.  Add __attribute__ ((cold)).
21829         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21830         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21831         * sysdeps/arm/arm-unwind-resume.S: New file.
21832         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21833         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21834         * sysdeps/arm/Makefile [$(subdir) = csu]
21835         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21836         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21837         Add rt-arm-unwind-resume.
21838         [$(subdir) = nptl]
21839         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21840         Add pt-arm-unwind-resume.
21841         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21842         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21843
21844 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21845
21846         [BZ #17748]
21847         * include/fenv.h (__feholdexcept): Declare.  Use
21848         libm_hidden_proto.
21849         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21850         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21851         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21852         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21853         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21854         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21855         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21856         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21857         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21858         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21859         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21860         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21861         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21862         (feholdexcept): Likewise.
21863         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21864         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21865         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21866         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21867         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21868         __feholdexcept instead of feholdexcept.
21869         (default_libc_feholdexcept_setround): Likewise.
21870
21871 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21872
21873         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21874         to avoid using stl/str to align destination.
21875
21876 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21877
21878         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21879
21880 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21881
21882         [BZ #17796]
21883         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21884         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21885         Define as weak alias not strong alias.
21886
21887 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21888
21889         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21890         bltzal with addiupc.
21891         (RTLD_START): Ditto.
21892
21893 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21894
21895         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21896         for __vdso_* functions in declarations.
21897         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21898         definitions.
21899         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21900         INTERNAL_VSYSCALL): Use struct return types to check for error.
21901
21902         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21903         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21904         function with cast from llround().
21905         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21906         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21907         Define.
21908
21909 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21910
21911         [BZ #17793]
21912         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21913         Define as weak alias not strong alias.
21914
21915         [BZ #17635]
21916         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21917         ...
21918         * ctype/ctype-extn.c: ... here.
21919         (__isblank_l): Move to ...
21920         * ctype/ctype-c99_l.c: ... here.  New file.
21921         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21922         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21923         Remove variable.
21924         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21925         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21926         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21927         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21928         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21929
21930         [BZ #17777]
21931         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21932         (posix_fadvise64): Define as weak alias not strong alias.
21933         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21934         (posix_fallocate64): Likewise.
21935         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21936         Remove variable.
21937         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21938         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21939         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21940         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21941         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21942
21943 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21944
21945         [BZ #16191]
21946         * NEWS: Mention bug fix.
21947         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21948         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21949         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21950         (HOST_STACK_END_ADDR): Likewise.
21951
21952 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21953
21954         [BZ #17748]
21955         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21956         * math/fegetround.c (fegetround): Rename to __fegetround and
21957         define as weak alias of __fegetround.  Use libm_hidden_weak.
21958         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21959         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21960         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21961         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21962         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21963         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21964         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21965         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21966         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21967         Undefine after rather than before function definition; use
21968         parentheses around function name in definition.
21969         (__fegetround): Also undefine macro after function definition.
21970         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21971         __fegetround and define as weak alias of __fegetround.  Use
21972         libm_hidden_weak.  Do not undefine as macro.
21973         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21974         Likewise.
21975         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21976         __fegetround and define as weak alias of __fegetround.  Use
21977         libm_hidden_weak.
21978         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21979         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21980         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21981         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21982         __fegetround and define as weak alias of __fegetround.  Use
21983         libm_hidden_weak.
21984         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21985         __fegetround instead of fegetround.
21986
21987         [BZ #17782]
21988         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21989         Condition macro definition on [__USE_MISC].
21990
21991         [BZ #17781]
21992         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21993         (struct sigaction): Change type of sa_flags field to int.
21994
21995         [BZ #17780]
21996         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21997         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21998         __glibc_reserved0.
21999
22000         * nptl/version.c (banner): Use single year in copyright notice.
22001
22002         * NEWS: Update copyright dates.
22003         * catgets/gencat.c (print_version): Likewise.
22004         * csu/version.c (banner): Likewise.
22005         * debug/catchsegv.sh: Likewise.
22006         * debug/pcprofiledump.c (print_version): Likewise.
22007         * debug/xtrace.sh (do_version): Likewise.
22008         * elf/ldconfig.c (print_version): Likewise.
22009         * elf/ldd.bash.in: Likewise.
22010         * elf/pldd.c (print_version): Likewise.
22011         * elf/sotruss.sh: Likewise.
22012         * elf/sprof.c (print_version): Likewise.
22013         * iconv/iconv_prog.c (print_version): Likewise.
22014         * iconv/iconvconfig.c (print_version): Likewise.
22015         * locale/programs/locale.c (print_version): Likewise.
22016         * locale/programs/localedef.c (print_version): Likewise.
22017         * login/programs/pt_chown.c (print_version): Likewise.
22018         * malloc/memusage.sh (do_version): Likewise.
22019         * malloc/memusagestat.c (print_version): Likewise.
22020         * malloc/mtrace.pl: Likewise.
22021         * manual/libc.texinfo: Likewise.
22022         * nptl/version.c (banner): Likewise.
22023         * nscd/nscd.c (print_version): Likewise.
22024         * nss/getent.c (print_version): Likewise.
22025         * nss/makedb.c (print_version): Likewise.
22026         * posix/getconf.c (main): Likewise.
22027         * scripts/test-installation.pl: Likewise.
22028         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22029
22030 2015-01-02  Will Newton  <will.newton@linaro.org>
22031
22032         * sysdeps/arm/armv7/configure: Removed.
22033         * sysdeps/arm/armv7/configure.ac: Likewise.
22034
22035 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22036
22037         * All files with FSF copyright notices: Update copyright dates
22038         using scripts/update-copyrights.
22039         * intl/plural.c: Regenerated.
22040         * locale/programs/charmap-kw.h: Likewise.
22041         * locale/programs/locfile-kw.h: Likewise.
22042
22043 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22044
22045         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22046
22047 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22048
22049         [BZ #17748]
22050         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22051         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22052         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22053         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22054         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22055         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22056         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22057         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22058         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22059         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22060         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22061         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22062         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22063         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22064         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22065         libm_hidden_def.
22066         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22067         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22068         Likewise.
22069         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22070         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22071         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22072         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22073         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22074         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22075         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22076         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22077         __fegetenv instead of fegetenv.
22078         (libc_feholdsetround_noex_ctx): Likewise.
22079
22080 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22081
22082         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22083         (Elf_MIPS_ABIFlags_v0): New structure.
22084         (EF_MIPS_FP64): Define.
22085         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22086         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22087         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22088         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22089         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22090         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22091         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22092         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22093         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22094         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22095         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22096         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22097         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22098         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22099         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22100         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22101         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22102         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22103         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22104         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22105         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22106         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22107         field.
22108         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22109         EF_MIPS_FP64.
22110         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22111         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22112         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22113         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22114         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22115         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22116         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22117         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22118         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22119         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22120         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22121         record the current FP ABI extension.
22122         (mips-mode-switch): Define to show if kernel headers support mode
22123         switching.
22124         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22125         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22126         supported SYSV ABI version to 3.
22127         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22128         feature.
22129
22130 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22131             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22132
22133         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22134         path.
22135         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22136
22137 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22138
22139         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22140         __fegetround and redefine to call __fegetround.  Remove condition
22141         on [!__NO_MATH_INLINES].
22142         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22143         function.
22144         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22145         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22146         Remove macro.
22147         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22148         instead of <fenv_libc.h>.
22149         (__llrintl): Call fegetround instead of __fegetround.
22150         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22151         instead of <fenv_libc.h>.
22152         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22153         (__lrintl): Call fegetround instead of __fegetround.
22154         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22155         instead of <fenv_libc.h>.
22156         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22157         (__rintl): Call fegetround instead of __fegetround.
22158
22159 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22160
22161         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22162         arrays.
22163
22164 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22165
22166         [BZ #17775]
22167         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22168         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22169         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22170
22171 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22172
22173         * sysdeps/i386/tls-macros.h: Include <features.h>.
22174         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22175         (TLS_IE): Likewise.
22176         (TLS_LD): Likewise.
22177         (TLS_GD): Likewise.
22178         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22179         define for GCC >= 5.0.
22180
22181 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22182
22183         * math/test-fenv.c (test_single_exception, set_single_exc,
22184         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22185         feexcp_mask_test, feenable_test, fe_single_test): Add
22186         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22187         case where they are not used.
22188         * math/libm-test.inc: Likewise.
22189         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22190         unused in the absence of FP rounding/exception support.
22191         * stdio-common/tst-printf-round.c: Likewise.
22192         * stdlib/tst-strtod-round.c: Likewise.
22193         * stdlib/tst-strtod-underflow.c: Likewise.
22194
22195 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22196
22197         [BZ #17723]
22198         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22199         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22200         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22201         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22202         libm_hidden_weak.
22203         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22204         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22205         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22206         libm_hidden_def.
22207         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22208         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22209         libm_hidden_weak.
22210         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22211         Likewise.
22212         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22213         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22214         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22215         libm_hidden_weak.
22216         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22217         libm_hidden_def.
22218         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22219         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22220         (__feraiseexcept): Likewise.
22221         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22222         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22223         libm_hidden_weak.
22224         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22225         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22226         libm_hidden_def.
22227         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22228         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22229         Use libm_hidden_def.
22230         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22231         libm_hidden_def.
22232         (feraiseexcept): Define as weak not strong alias.  Use
22233         libm_hidden_weak.
22234         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22235         New inline function.  Factored out of ...
22236         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22237         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22238         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22239         feraiseexcept.
22240         * math/w_acos.c (__acos): Likewise.
22241         * math/w_asin.c (__asin): Likewise.
22242         * math/w_ilogb.c (__ilogb): Likewise.
22243         * math/w_j0.c (y0): Likewise.
22244         * math/w_j1.c (y1): Likewise.
22245         * math/w_jn.c (yn): Likewise.
22246         * math/w_log.c (__log): Likewise.
22247         * math/w_log10.c (__log10): Likewise.
22248         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22249         * sysdeps/aarch64/fpu/math_private.h
22250         (libc_feupdateenv_test_aarch64): Likewise.
22251         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22252         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22253         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22254         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22255         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22256         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22257         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22258         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22259         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22260         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22261
22262 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22263
22264         [BZ #17732]
22265         * io/test-utime.c (main): Replace %ld with %jd and cast to
22266         intmax_t.
22267         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22268         * nptl/tst-mutex5.c: Include <stdint.h>.
22269         (do_test): Replace %ld with %jd and cast to intmax_t.
22270         * posix/tst-regex.c (run_test): Likewise.
22271         (run_test_backwards): Likewise.
22272         * rt/tst-clock.c: Include <stdint.h>.
22273         (clock_test): Replace %ld with %jd and cast to intmax_t.
22274         * rt/tst-cpuclock1.c: Include <stdint.h>.
22275         (do_test): Replace %lu with %ju and cast to uintmax_t.
22276         * rt/tst-cpuclock2.c: Include <stdint.h>.
22277         (do_test): Replace %lu with %ju and cast to uintmax_t.
22278         * rt/tst-mqueue1.c: Include <stdint.h>.
22279         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22280         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22281         intmax_t.
22282         * rt/tst-mqueue4.c (do_test): Likewise.
22283         * rt/tst-timer4.c: Include <stdint.h>.
22284         (check_ts): Replace %ld with %jd and cast to intmax_t.
22285         (do_test): Likewise.
22286         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22287         and cast to intmax_t.
22288         * sysdeps/pthread/tst-timer.c (main): Likewise.
22289         * time/clocktest.c (main): Likewise.
22290         * time/tst-posixtz.c (do_test): Likewise.
22291         * timezone/tst-timezone.c (main): Likewise.
22292
22293 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22294             H.J. Lu  <hongjiu.lu@intel.com>
22295
22296         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22297         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22298         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22299         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22300         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22301         version if bit_Fast_Unaligned_Load is set.
22302         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22303         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22304         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22305         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22306         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22307         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22308         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22309         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22310         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22311         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22312         to 4.
22313         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22314         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22315         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22316         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22317
22318 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22319
22320         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22321         instead of #if to avoid a Wundef warning.
22322         * stdlib/tst-limits.c (do_test): Likewise.
22323
22324         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22325         parallel other exception macros.
22326         (fegetenv): Convert from macro to extern inline so that it applies
22327         retroactively to inline functions already seen by the compiler.
22328         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22329
22330         * posix/Makefile (before-compile): Use $(objpfx) for
22331         posix-conf-vars-def.h.
22332
22333 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22334
22335         * posix/getconf.c (main): Use size_t for type of I.
22336         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22337         NSPEC.
22338
22339         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22340         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22341         * posix/posix-envs.def: Likewise.
22342         * sysdeps/posix/sysconf.c: Likewise.
22343         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22344         (specs): Remove array.
22345         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22346         array.
22347
22348         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22349         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22350         (__sysconf): Use CONF_IS_* macros.
22351
22352         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22353         ($(objpfx)posix-conf-vars-def.h): New target.
22354         * posix/posix-conf-vars.list: New file.
22355         * posix/posix-conf-vars.h: New file.
22356         * posix/confstr.c: Include posix-conf-vars.h.
22357         (confstr): Use CONF_IS_* macros.
22358         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22359         CONF_IS_* macros.
22360         * scripts/gen-posix-conf-vars.awk: New file.
22361
22362 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22363
22364         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22365         fegetround): Add no-op macros to avoid linknamespace issues.
22366
22367         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22368         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22369
22370         * sysdeps/unix/sysv/linux/tile/sysdep.h
22371         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22372         assembly-specific section to avoid a redefinition warning.
22373
22374         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22375         long before casting to pointer to avoid a cast warning.
22376
22377 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22378
22379         * sysdeps/tile/tilegx/Implies: New file.
22380
22381 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22382
22383         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22384
22385 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22386
22387         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22388
22389 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22390
22391         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22392         not define.
22393         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22394         <kernel-features.h>.
22395         (__utimes) [__NR_utimes]: Make code unconditional.
22396         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22397         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22398         (__ASSUME_UTIMES): Do not undefine.
22399         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22400         (__ASSUME_UTIMES): Likewise.
22401         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22402         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22403         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22404         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22405
22406 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22407
22408         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22409
22410 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22411
22412         [BZ #17747]
22413         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22414         alias to weak alias for j0l, y0l.
22415         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22416         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22417
22418         [BZ #17746]
22419         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22420         conversion.
22421
22422 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22423
22424         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22425         to zero if not already defined.
22426
22427 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22428
22429         [BZ #17724]
22430         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22431         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22432         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22433         (char *) casts added.
22434         * sysdeps/ieee754/k_standardf.c: New file.
22435         * sysdeps/ieee754/k_standardl.c: Likewise.
22436         * math/Makefile (libm-support): Remove k_standard.
22437         (libm-calls): Add k_standard.
22438
22439 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22440
22441         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22442         Optimize to avoid an unnecessary FPCR read.
22443
22444 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22445
22446         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22447         Optimize to reduce FPCR/FPSR accesses.
22448
22449 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22450
22451         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22452         Call libc_fetestexcept_aarch64.
22453
22454 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22455
22456         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22457         Call libc_fesetround_aarch64.
22458
22459 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22460
22461         [BZ #17733]
22462         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22463         (__bind): Do not define as weak alias.
22464         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22465         define.
22466         (__getsockname): Do not define as weak alias.
22467
22468 2014-12-22  Will Newton  <will.newton@linaro.org>
22469
22470         * manual/install.texi: Document that we require bison 2.7
22471         or above.
22472         * INSTALL: Regenerate.
22473         * configure.ac: Use AC_CHECK_PROG_VER instead of
22474         AC_PATH_PROG when checking for bison and check for
22475         version 2.7 or above.
22476         * configure: Regenerate.
22477
22478 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22479
22480         [BZ #17745]
22481         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22482         * sysdeps/tile/ffsll.c (ffsll): To here.
22483
22484         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22485
22486 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22487
22488         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22489         if not defined.
22490         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22491         definition.
22492         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22493         hidden ___tls_get_addr.
22494         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22495         hidden __tls_get_addr.
22496         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22497         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22498         Likewise.
22499
22500 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22501
22502         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22503         _dl_init call.
22504
22505 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22506
22507         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22508         from "call _dl_init@PLT".
22509         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22510
22511 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22512
22513         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22514         guarantees.
22515
22516 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22517
22518         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22519
22520 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22521
22522         [BZ #17744]
22523         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22524         strnlen.
22525
22526 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22527
22528         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22529         of multu on MIPSr6.
22530         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22531         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22532         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22533         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22534         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22535
22536 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22537
22538         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22539         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22540         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22541         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22542         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22543         mips32r6/mips64r6.
22544         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22545
22546 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22547
22548         * string/strncat.c (STRNCAT): Simplify implementation.
22549
22550 2014-12-19  David S. Miller  <davem@davemloft.net>
22551
22552         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22553         access the quad as both a long double and as a series of 4 words.
22554
22555         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22556         link_map->l_info array access.
22557
22558 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22559
22560         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22561
22562         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22563         * math/atest-exp2.c (TIMEOUT): Likewise.
22564         * math/atest-sincos.c (TIMEOUT): Likewise.
22565
22566 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22567
22568         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22569         -Wno-error with -fno-builtin-lround.
22570
22571 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22572
22573         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22574         Contains futex constants and functions moved over from ...
22575         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22576         <lowlevellock-futex.h>.
22577         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22578         (lll_timedwait_tid): Add comments and parentheses around macro
22579         arguments.
22580
22581 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22582
22583         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22584         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22585         (__lll_private_flag): Remove.
22586         (lll_futex_wait): Likewise.
22587         (lll_futex_timed_wait): Likewise.
22588         (lll_futex_wake): Likewise.
22589         (lll_futex_requeue): Likewise.
22590         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22591         (__lll_timedwait_tid): Spell out argument names.
22592         (lll_timedwait_tid): Add comments and parentheses around macro
22593         arguments.
22594         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22595         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22596
22597 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22598
22599         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22600         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22601         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22602         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22603         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22604         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22605         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22606         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22607         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22608         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22609         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22610         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22611         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22612         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22613         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22614         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22615         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22616         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22617         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22618
22619 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22620
22621         * sysdeps/x86_64/x32/Makefile: New file.
22622
22623 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22624
22625         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22626         1L with (mp_limb_t) 1.
22627
22628 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22629
22630         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22631         * nptl/libc_pthread_init.c: ... here.
22632         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22633         * nptl/register-atfork.c: ... here.
22634
22635         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22636         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22637         Use assert_perror to check its return value.
22638         (__gai_create_helper_thread): Likewise.
22639
22640         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22641
22642         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22643
22644 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22645
22646         [BZ #17725]
22647         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22648         __profil_counter.
22649         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22650         Likewise.
22651         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22652         Likewise.
22653         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22654         Likewise.
22655         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22656         (profil_counter): Likewise.
22657         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22658         (profil_counter): Likewise.
22659         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22660         Likewise.
22661         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22662         Likewise.
22663         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22664         (profil_counter): Likewise.
22665         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22666         Likewise.
22667         [!__profil_counter] (profil_counter): Define as weak alias of
22668         __profil_counter.
22669         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22670         (profil_counter): Rename to __profil_counter.
22671         [!__profil_counter] (profil_counter): Define as weak alias of
22672         __profil_counter.
22673         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22674         (profil_counter): Rename to __profil_counter.
22675         [!__profil_counter] (profil_counter): Define as weak alias of
22676         __profil_counter.
22677         * sysdeps/posix/profil.c: Update comment referring to
22678         profil_counter.
22679         (__profil): Use __profil_counter instead of profil_counter.
22680         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22681         __profil_counter.  Use __profil_counter_ushort and
22682         __profil_counter_uint in definitions.
22683         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22684         instead of profil_counter_uint and profil_counter_ushort.
22685
22686         [BZ #17722]
22687         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22688         define as weak alias of __inet_makeaddr.
22689         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22690         as weak alias of __inet_addr.
22691         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22692         as weak alias of __inet_pton.  Use libc_hidden_weak.
22693         * include/arpa/inet.h (__inet_pton): Declare.  Use
22694         libc_hidden_proto.
22695         (inet_makeaddr): Don't use libc_hidden_proto.
22696         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22697         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22698         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22699         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22700         Remove variable.
22701         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22702         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22703
22704 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22705
22706         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22707
22708 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22709
22710         * stdio-common/bug-vfprintf-nargs.c (do_test):
22711         Cast value to intptr_t to avoid format warning
22712         for usage with PRIdPTR printing macro.
22713
22714 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22715
22716         * libio/tst-widetext.c (do_test):
22717         Use format type %td instead of %Zd for ptrdiff_t
22718         in order to avoid format warning.
22719
22720 2014-12-17  Andreas Schwab  <schwab@suse.de>
22721
22722         * nscd/mem.c (gc): Add size_t cast to match printf format.
22723
22724 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22725
22726         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22727         (init): Apply PTR_MANGLE to pointers before storing them.
22728         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22729         before using them.
22730
22731 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22732
22733         [BZ #17719]
22734         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22735         define as weak alias of __memrchr.
22736         (__memrchr): Do not define as strong alias of memrchr.
22737         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22738         Remove variable.
22739         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22740         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22741         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22742
22743         [BZ #17717]
22744         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22745         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22746         (if_indextoname): Rename to __if_indextoname and define as weak
22747         alias of __if_indextoname.  Use libc_hidden_weak.
22748         (if_freenameindex): Rename to __if_freenameindex and define as
22749         weak alias of __if_freenameindex.
22750         (if_nameindex): Rename to __if_nameindex and define as weak alias
22751         of __if_nameindex.
22752         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22753         __if_nametoindex and define as weak alias of __if_nametoindex.
22754         Use libc_hidden_weak.
22755         (if_freenameindex): Rename to __if_freenameindex and define as
22756         weak alias of __if_freenameindex.
22757         (if_nameindex): Rename to __if_nameindex and define as weak alias
22758         of __if_nameindex.
22759         (if_indextoname): Rename to __if_indextoname and define as weak
22760         alias of __if_indextoname.  Use libc_hidden_weak.
22761         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22762         __if_nametoindex and define as weak alias of __if_nametoindex.
22763         Use libc_hidden_weak.
22764         (if_freenameindex): Rename to __if_freenameindex and define as
22765         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22766         (if_nameindex_netlink): Use __if_freenameindex instead of
22767         if_freenameindex.
22768         (if_nameindex): Rename to __if_nameindex and define as weak alias
22769         of __if_nameindex.  Use libc_hidden_weak.
22770         (if_indextoname): Rename to __if_indextoname and define as weak
22771         alias of __if_indextoname.  Use libc_hidden_weak.
22772         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22773         libc_hidden_proto.
22774         [!_ISOMAC] (__if_freenameindex): Likewise.
22775         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22776         if_nametoindex.
22777         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22778         variable.
22779         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22780         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22781         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22782         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22783         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22784         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22785         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22786
22787         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22788         Remove variable.
22789         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22790         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22791
22792 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22793
22794         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22795         subscript above bounds'
22796
22797         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22798         bounds.
22799
22800 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22801
22802         * libio/tst-fopenloc.c: Use test-skeleton.c.
22803
22804         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22805         (entry): Rename to ITEM.
22806         (do_test, comp): Adjust.
22807
22808         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22809
22810 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22811
22812         * string/tester.c: Include <libc-internal.h>.
22813         (test_memset): Ignore -Wmemset-transposed-args.
22814
22815 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22816
22817         * misc/tst-mntent2.c (do_test): Fix warning.
22818
22819 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22820
22821         * elf/tst-unique4lib.cc(a): Mark as used.
22822
22823 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22824
22825         [BZ #17630]
22826         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22827         names.
22828
22829 2014-12-16  Allan McRae  <allan@archlinux.org>
22830
22831         * stdio-common/Makefile (tests): Re-add bug26.
22832
22833 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22834
22835         [BZ #17657]
22836         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22837         static array.
22838
22839 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22840
22841         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22842         (__lll_lock_wait): Likewise.
22843         (__lll_timedlock_wait): Likewise.
22844         (__lll_timedwait_tid): Likewise.
22845         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22846         (__lll_robust_timedlock_wait): Likewise.
22847         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22848         (lll_cond_trylock): Likewise.
22849         (__lll_lock): Likewise.
22850         (__lll_robust_lock): Likewise.
22851         (__lll_cond_lock): Likewise.
22852         (lll_robust_cond_lock): Likewise.
22853         (__lll_timedlock): Likewise.
22854         (__lll_robust_timedlock): Likewise.
22855         (__lll_unlock): Likewise.
22856         (__lll_robust_unlock): Likewise.
22857         (lll_wait_tid): Likewise.
22858         (lll_timedwait_tid): Likewise.
22859
22860 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22861
22862         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22863
22864 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22865
22866         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22867
22868 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22869
22870         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22871         * stdio-common/tst-sprintf.c: Likewise.
22872
22873 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22874
22875         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22876
22877 2014-12-15  Jeff Law  <law@redhat.com>
22878
22879         [BZ #16617]
22880         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22881         on the heap.  (CVE-2012-3406)
22882         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22883         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22884         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22885
22886 2014-12-15  Will Newton  <will.newton@linaro.org>
22887
22888         * manual/install.texi: Bump required version of texinfo
22889         to 4.7 from 4.5.
22890         * INSTALL: Regenerated.
22891         * configure.ac: Check for makeinfo version 4.7 and above.
22892         * configure: Regenerated.
22893
22894 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22895
22896         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22897         PREFIX, string constant to insert between directory and name.
22898         * sysdeps/posix/shm_open.c: Update caller.
22899         * sysdeps/posix/shm_unlink.c: Likewise.
22900         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22901         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22902         (SEM_SHM_PREFIX): New macro.
22903         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22904         [$(have-thread-library) = no].
22905         * nptl/Makefile (libpthread-routines): Add shm-directory.
22906         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22907         * sysdeps/nptl/shm-directory.h: New file.
22908         * sysdeps/posix/shm-directory.c
22909         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22910         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22911         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22912         INTERNAL_SYSCALL.
22913         (__where_is_shmfs): Function removed.
22914         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22915         Variables removed.
22916         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22917         Use SHM_GET_NAME.
22918         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22919
22920         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22921         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22922         unconditional for use inside libpthread.
22923         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22924
22925 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22926
22927         * nptl/pthread_getaffinity.c: New file.
22928         * nptl/pthread_setaffinity.c: New file.
22929         * nptl/pthread_getname.c: New file.
22930         * nptl/pthread_setname.c: New file.
22931
22932         * nptl/pthread_create.c (START_THREAD_DEFN)
22933         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22934
22935 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22936             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22937
22938         * resolv/res_send.c (send_vc): Disable warning resplen may
22939         be used uninitialized.
22940
22941 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22942
22943         * nptl/tst-mutex6.c
22944         (ATTR_NULL): New define checks ATTR against NULL.
22945         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22946         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22947
22948 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22949
22950         [BZ #17581]
22951         * malloc/hooks.c
22952         (mem2mem_check): Revert my previous change.
22953         (malloc_check_get_size): Revert my previous change.
22954         (mem2chunk_check): Revert my previous change.
22955
22956 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22957
22958         * sysdeps/posix/shm-directory.c: New file.
22959         * sysdeps/posix/shm-directory.h: New file.
22960         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22961         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22962         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22963         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22964         Transmute EPERM to EACCES.
22965         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22966         from ...
22967         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22968         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22969
22970 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22971
22972         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22973         pointer and cast to uintptr_t.
22974         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22975         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22976         Add cast to avoid warning.
22977         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22978
22979 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22980
22981         * nptl/semaphore.h: Move to ...
22982         * sysdeps/pthread/semaphore.h: ... here.
22983         * Makefile (installed-headers): Change nptl/semaphore.h to
22984         sysdeps/pthread/semaphore.h.
22985
22986 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22987
22988         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22989         generated error format strings.
22990
22991         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22992         -Wformat-extra-args warnings for scanf formats.
22993         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22994         test of zero-length format (duh).
22995         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22996         corner-case scanf format test.
22997         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22998         generated fprintf format string.
22999         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23000         corner-case sprintf format tests.
23001         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23002         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23003         -Wformat-extra-args warnings throughout.
23004         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23005         (CFLAGS-scanf4.c): Likewise.
23006         (CFLAGS-scanf7.c): Likewise.
23007         (CFLAGS-tst-sprintf.c): Likewise.
23008         (CFLAGS-tst-printf.c): Likewise.
23009         (CFLAGS-tst-printfsz.c): Likewise.
23010
23011 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23012
23013         * include/cpio.h: New file.
23014         * include/fmtmsg.h: Likewise.
23015
23016         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23017         corresponding format argument to size_t.
23018         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23019         arguments.
23020         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23021         corresponding format argument to size_t.
23022         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23023         arguments.
23024         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23025         corresponding format argument to size_t.
23026         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23027         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23028         (CFLAGS-tst-mbswcs2.c): Likewise.
23029         (CFLAGS-tst-mbswcs3.c): Likewise.
23030         (CFLAGS-tst-mbswcs4.c): Likewise.
23031         (CFLAGS-tst-mbswcs5.c): Likewise.
23032         (CFLAGS-tst-trans.c): Likewise.
23033
23034 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23035
23036         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23037         rather than assuming they won't contain any '%'s.
23038
23039 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23040
23041         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23042         inhibit_loop_to_libcall to avoid recursive calls.
23043         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23044         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23045
23046 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23047
23048         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23049         prototype.
23050
23051 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23052
23053         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23054         integer value instead of boolean.
23055
23056 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23057
23058         * malloc/malloc.c: Fix powerof2 check.
23059
23060 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23061
23062         * locale/programs/locfile.h (maybe_swap_uint32):
23063         Remove inline and add unused attribute.
23064
23065 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23066
23067         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23068         Truncating assembler expression to a .long expression.
23069
23070 2014-12-11  Andreas Schwab  <schwab@suse.de>
23071
23072         * elf/rtld.c (struct map_args): Constify str member.
23073         (do_preload): Constify fname argument.
23074
23075 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23076
23077         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23078         constants definition.
23079
23080 2014-12-11  Andreas Schwab  <schwab@suse.de>
23081
23082         [BZ #16657]
23083         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23084         FORCE_ELISION instead of DO_ELISION.
23085         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23086         Remove.
23087         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23088         Likewise.
23089
23090         * iconvdata/gconv-modules: Remove duplicate entry.
23091
23092 2014-12-11  Will Newton  <will.newton@linaro.org>
23093
23094         Merge gettext 0.19.3 into intl/.
23095
23096         This involves a number of cosmetic changes to comments
23097         and ANSI function definitions and prototypes throughout
23098         all the files. The gettext copyright header is used but
23099         with the date ranges taken from the glibc copy.
23100
23101         * NEWS: Add gettext merge to 2.21.
23102         * intl/bindtextdom.c: Switch to gettext copyright.
23103         Use ANSI definitions and prototypes.
23104         Use gl_* locking primitives rather than __libc_* ones.
23105         Use __builtin_expect rather than __glibc_likely/unlikely.
23106         * intl/dcgettext.c: Switch to gettext copyright.
23107         Use ANSI definitions and prototypes.
23108         * intl/dcigettext.c: Switch to gettext copyright.
23109         Use ANSI definitions and prototypes.
23110         (INTDIV0_RAISES_SIGFPE): New define.
23111         Use gl_* locking primitives rather than __libc_* ones.
23112         Include eval-plural.h instead of plural-eval.c.
23113         Use __builtin_expect rather than __glibc_likely/unlikely.
23114         * intl/dcngettext.c: Switch to gettext copyright.
23115         Use ANSI definitions and prototypes.
23116         * intl/dgettext.c: Likewise.
23117         * intl/dngettext.c: Likewise.
23118         * intl/plural-eval.c: Renamed to...
23119         * intl/eval-plural.h: ...this.
23120         * intl/explodename.c: Switch to gettext copyright.
23121         Use ANSI definitions and prototypes.
23122         (_nl_explode_name): Use strchr instead of __rawmemchr.
23123         * intl/finddomain.c: Switch to gettext copyright.
23124         Use ANSI definitions and prototypes.
23125         Use gl_* locking primitives rather than __libc_* ones.
23126         (_nl_find_domain): Use malloc rather than alloca for
23127         allocation of temporary locale name.
23128         * intl/gettext.c: Switch to gettext copyright.
23129         Use ANSI definitions and prototypes.
23130         * intl/gettextP.h: Switch to gettext copyright.
23131         Use ANSI definitions and prototypes.
23132         Use gl_* locking primitives rather than __libc_* ones.
23133         * intl/gmo.h: Switch to gettext copyright.
23134         (struct sysdep_string): Move struct segment_pair outside of
23135         struct definition.
23136         * intl/hash-string.c: Use ANSI definitions and prototypes.
23137         * intl/hash-string.h: Switch to gettext copyright.
23138         Use ANSI definitions and prototypes.
23139         * intl/l10nflist.c: Switch to gettext copyright.
23140         Use ANSI definitions and prototypes.
23141         (_nl_normalize_codeset): Avoid integer overflow.
23142         * intl/loadinfo.h: Switch to gettext copyright.
23143         Use ANSI definitions and prototypes.
23144         (LIBINTL_DLL_EXPORTED): New define.
23145         (PATH_SEPARATOR): New define.
23146         * intl/loadmsgcat.c: Switch to gettext copyright.
23147         * intl/localealias.c: Switch to gettext copyright.
23148         Use ANSI definitions and prototypes.
23149         (_nl_expand_alias): Use PATH_SEPARATOR.
23150         * intl/ngettext.c: Switch to gettext copyright.
23151         Use ANSI definitions and prototypes.
23152         * intl/plural-exp.c: Likewise.
23153         * intl/plural-exp.h: Switch to gettext copyright.
23154         Use ANSI definitions and prototypes.
23155         (struct expression): Move definition of enum operator outside
23156         of struct definition.
23157         * intl/plural.c: Regenerate.
23158         * intl/plural.y: Switch to gettext copyright.
23159         Use ANSI definitions and prototypes.
23160         Port to bison 3.0.
23161         * intl/textdomain.c: Switch to gettext copyright.
23162         Use ANSI definitions and prototypes.
23163         Use gl_* locking primitives rather than __libc_* ones.
23164
23165 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23166
23167         * debug/warning-nop.c: Add used atrribute.
23168
23169 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23170
23171         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23172
23173         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23174         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23175         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23176
23177 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23178             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23179
23180         [BZ #17634]
23181         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23182         Undefine after defining function.  Define as weak alias of
23183         __wcschr.  Use libc_hidden_weak.
23184         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23185         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23186         (libc_hidden_def): Also define __GI___wcschr alias.
23187         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23188         __wcschr and define as weak alias of __wcschr.
23189         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23190         __wcschr.
23191         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23192         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23193         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23194         libc_hidden_weak.  Do not use libc_hidden_def.
23195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23196         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23197         __GI___wcschr alias.
23198         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23199         [IS_IN (libc)] (wcschr): Define as macro expanding to
23200         __redirect_wcschr.
23201         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23202         [IS_IN (libc)] (__wcschr_power6): Likewise.
23203         [IS_IN (libc)] (__wcschr_power7): Likewise.
23204         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23205         instead of wcschr.
23206         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23207         __libc_wcschr.
23208         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23209         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23210         __wcschr and define as weak alias of __wcschr.  Use
23211         libc_hidden_builtin_def.
23212         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23213         as weak alias of __wcschr.  Use libc_hidden_weak.
23214         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23215         wcschr.
23216         * time/era.c (_nl_init_era_entries): Likewise.
23217         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23218         variable.
23219         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23220         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23221
23222 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23223
23224         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23225         format for long int variable.
23226
23227 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23228
23229         [BZ #10672]
23230         * manual/search.texi: (Array Sort Function): Remove claim how to make
23231         qsort stable.
23232
23233 2014-12-10  Andreas Schwab  <schwab@suse.de>
23234
23235         [BZ #12847]
23236         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23237         user-controlled locks.
23238
23239 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23240
23241         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23242         register.
23243
23244 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23245
23246         * configure.ac (--disable-werror): New configure option.
23247         (enable_werror): New AC_SUBST.
23248         * configure: Regenerated.
23249         * config.make.in (enable-werror): New variable.
23250         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23251         -Wno-error=undef.
23252         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23253         * manual/install.texi (Configuring and compiling): Document
23254         --disable-werror.
23255         * INSTALL: Regenerated.
23256         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23257         (CFLAGS-tst-chk2.c): Likewise.
23258         (CFLAGS-tst-chk3.c): Likewise.
23259         (CFLAGS-tst-chk4.cc): Likewise.
23260         (CFLAGS-tst-chk5.cc): Likewise.
23261         (CFLAGS-tst-chk6.cc): Likewise.
23262         (CFLAGS-tst-lfschk1.c): Likewise.
23263         (CFLAGS-tst-lfschk2.c): Likewise.
23264         (CFLAGS-tst-lfschk3.c): Likewise.
23265         (CFLAGS-tst-lfschk4.cc): Likewise.
23266         (CFLAGS-tst-lfschk5.cc): Likewise.
23267         (CFLAGS-tst-lfschk6.cc): Likewise.
23268
23269         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23270         (main): Disable -Wdeprecated-declarations around calls to
23271         register_printf_function.
23272
23273         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23274         (do_test): Disable -Wdiv-by-zero around some calls to
23275         fwrite_unlocked and fread_unlocked.
23276
23277         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23278         (DIAG_POP_NEEDS_COMMENT): Likewise.
23279         (_DIAG_STR1): Likewise.
23280         (_DIAG_STR): Likewise.
23281         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23282         * stdio-common/bug21.c: Include <libc-internal.h>.
23283         (do_test): Disable -Wformat around call to sscanf.
23284         * stdio-common/scanf14.c: Include <libc-internal.h>.
23285         (main): Disable -Wformat around some calls to scanf functions.
23286
23287 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23288
23289         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23290
23291 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23292
23293         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23294         stack variable alignment.
23295
23296 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23297
23298         [BZ #17682]
23299         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23300         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23301         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23302         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23303         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23304         __getrlimit instead of getrlimit.
23305         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23306         __gettimeofday instead of gettimeofday.
23307         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23308         Likewise.
23309         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23310         Likewise.
23311         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23312         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23313         Remove variable.
23314         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23315         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23316
23317 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23318
23319         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23320         for wide-character tests.
23321
23322 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23323
23324         * io/openat64.c: #include <libc-internal.h>
23325         (__openat64): Prototypify.  Use ignore_value on MODE.
23326         * io/openat.c: Likewise.
23327         * misc/reboot.c: #include <libc-internal.h>
23328         (reboot): Prototypify.  Use ignore_value on HOWTO.
23329         * misc/ptrace.c: #include <libc-internal.h>
23330         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23331
23332 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23333
23334         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23335         XPG4, UNIX98 and XOPEN2K.
23336         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23337         Remove variable.
23338         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23339
23340 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23341
23342         * libio/fileops.c: Use ISO C style for function definitions.
23343         * libio/iofopen.c: Likewise.
23344         * libio/wfileops.c: Likewise.
23345
23346         [BZ #17653]
23347         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23348         offset on EOF.
23349         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23350         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23351         (fgets_func): Function pointer to fgets and fgetws.
23352         (do_ftell_test): Add test to verify ftell value after read
23353         EOF.
23354         (do_test): Set fgets_func.
23355
23356         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23357         O_TRUNC flag for w and w+ modes.
23358         (do_rewind_test): Likewise.
23359         (do_ftell_test): Likewise.
23360         (do_write_test): Likewise.
23361
23362         [BZ #17647]
23363         * libio/fileops.c (do_ftell): Seek only when there are
23364         unflushed writes.
23365         * libio/wfileops.c (do_ftell_wide): Likewise.
23366         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23367         test case.
23368         (do_one_test): Call it.
23369
23370 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23371
23372         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23373         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23374         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23375         Remove variable.
23376         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23377         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23378         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23379
23380 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23381
23382         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23383         Remove variable.
23384         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23385
23386         [BZ #17668]
23387         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23388         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23389         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23390         __freeifaddrs.  Use libc_hidden_weak.
23391         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23392         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23393         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23394         __freeifaddrs.  Use libc_hidden_weak.
23395         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23396         __getifaddrs and define as weak alias of __getifaddrs.  Use
23397         libc_hidden_weak.
23398         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23399         __freeifaddrs.  Use libc_hidden_weak.
23400         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23401         Remove variable.
23402         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23403         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23404
23405 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23406
23407         [BZ #17601]
23408         * sysdeps/mips/start.S (__start): Use indirect jump to call
23409         __libc_start_main.
23410
23411 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23412
23413         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23414
23415         * nptl/tst-mutex1.c: Include <stdbool.h>.
23416         [!ATTR] (ATTR_NULL): New macro.
23417         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23418         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23419         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23420
23421         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23422         to char *.
23423
23424         [BZ #17665]
23425         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23426         Change conditional to [__USE_MISC].
23427
23428         [BZ #17664]
23429         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23430         fgets_unlocked.
23431         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23432         __fgets_unlocked.
23433         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23434         fgets_unlocked.
23435         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23436         Remove variable.
23437         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23438         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23439         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23440         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23441         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23442         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23443         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23444         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23445         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23446
23447         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23448
23449 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23450
23451         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23452         Remove strpbrk objects.
23453         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23454         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23455         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23456         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23457         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23458         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23459
23460         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23461         Remove strcspn objects.
23462         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23463         (__libc_ifunc_impl_list): Remove strcspn implementation.
23464         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23465         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23466         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23467         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23468
23469         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23470         Remove strspn objetcs.
23471         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23472         (__libc_ifunc_impl_list): Remove strspn implementation.
23473         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23474         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23475         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23476         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23477
23478 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23479
23480         [BZ #17581]
23481         * malloc/hooks.c
23482         (mem2mem_check): Add a terminator to the chain of checking blocks.
23483         (malloc_check_get_size): Use it here.
23484         (mem2chunk_check): Ditto.
23485
23486 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23487
23488         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23489         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23490
23491 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23492
23493         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23494
23495         * nptl/nptl-init.c: Include libc-internal.h.
23496         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23497
23498         * elf/ldconfig.c (search_dir): Expand comment.
23499
23500 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23501
23502         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23503         variable.
23504         (linknamespace-symlist-stdlibs-tests): Likewise.
23505         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23506         instead of $(objpfx)symlist-stdlibs.
23507         (linknamespace-libs-isoc): New variable.
23508         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23509         (linknamespace-libs-ISO): New variable.
23510         (linknamespace-libs-ISO99): Likewise.
23511         (linknamespace-libs-ISO11): Likewise.
23512         (linknamespace-libs-XPG3): Likewise.
23513         (linknamespace-libs-XPG4): Likewise.
23514         (linknamespace-libs-POSIX): Likewise.
23515         (linknamespace-libs-UNIX98): Likewise.
23516         (linknamespace-libs-XOPEN2K): Likewise.
23517         (linknamespace-libs-POSIX2008): Likewise.
23518         (linknamespace-libs-XOPEN2K8): Likewise.
23519         ($(objpfx)symlist-stdlibs): Replace by
23520         $(linknamespace-symlist-stdlibs-tests).  Use
23521         $(linknamespace-libs-$*) as set of libraries.
23522         ($(linknamespace-header-tests)): Update dependencies.  Use
23523         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23524         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23525         * conform/linknamespace.pl: Remove comment about considering
23526         definitions of symbols from irrelevant libraries.
23527
23528 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23529
23530         [BZ #13862]
23531         * elf/dl-tls.c: Include <atomic.h>.
23532         (oom): Remove #ifdef SHARED/#endif.
23533         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23534         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23535         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23536         big enough.
23537         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23538         * nptl/Makefile (tests): Add tst-stack4.
23539         (modules-names): Add tst-stack4mod.
23540         ($(objpfx)tst-stack4): New.
23541         (tst-stack4mod.sos): Likewise.
23542         ($(objpfx)tst-stack4.out): Likewise.
23543         ($(tst-stack4mod.sos)): Likewise.
23544         (clean): Likewise.
23545         * nptl/tst-stack4.c: New file.
23546         * nptl/tst-stack4mod.c: Likewise.
23547
23548 2014-11-27  J. Brown  <jb999@gmx.de>
23549
23550         * sysdeps/x86/bits/string.h: Add recent CPUs.
23551
23552 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23553
23554         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23555         sigblock.
23556
23557         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23558         feof.
23559
23560         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23561         variable.
23562
23563 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23564
23565         * nscd/connections.c: Include libc-internal.h because of macro
23566         usage ignore_value.
23567
23568 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23569
23570         * string/bits/string3.h (__warn_memset_zero_len): Don't
23571         declare for gcc newer than 5.0.
23572         (memset): Don't test for zero-length __LEN for gcc newer than
23573         5.0.
23574
23575 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23576
23577         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23578         size_t for %zu format.
23579
23580         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23581         difference, not %ju.
23582
23583 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23584
23585         * include/libc-internal.h (ignore_value): New macro.
23586         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23587         with ignore_value.
23588
23589         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23590         definition.
23591
23592         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23593         pthread_cleanup_push to void *.
23594
23595         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23596         Undefine.
23597
23598         [BZ #16619]
23599         [BZ #16740]
23600         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23601         instead of 1L << 52.
23602
23603         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23604         * libio/bug-rewind2.c (do_test): Likewise.
23605
23606         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23607         * debug/test-strcpy_chk-ifunc.c: Likewise.
23608         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23609         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23610         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23611         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23612         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23613         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23614         * Rules [$(multi-arch) = no] (tests): Do not filter out
23615         $(tests-ifunc).
23616         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23617         * debug/Makefile (tests-ifunc): Remove variable.
23618         (tests): Do not add $(tests-ifunc).
23619         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23620         (tests): Do not add $(tests-ifunc).
23621         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23622         [TEST_IFUNC]: Remove conditionals.
23623         * string/test-string.h (TEST_IFUNC): Remove macro.
23624         [TEST_IFUNC]: Remove conditionals.
23625
23626         * string/test-strchr.c [!WIDE] (L): New macro.
23627         [WIDE] (L): Likewise.
23628         (check1): Use CHAR instead of char.  Use L on string and character
23629         constants.
23630
23631 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23632
23633         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23634         tests.
23635         * sysdeps/powerpc/bits/atomic.h
23636         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23637         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23638         (atomic_exchange_and_add_acq): Likewise.
23639         (atomic_exchange_and_add_rel): Likewise.
23640         * sysdeps/powerpc/powerpc32/bits/atomic.h
23641         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23642         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23643         * sysdeps/powerpc/powerpc64/bits/atomic.h
23644         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23645         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23646
23647 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23648
23649         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23650         Change synchronization of __sched_fifo_min_prio and
23651         __sched_fifo_max_prio.
23652         * nptl/pthread_mutexattr_getprioceiling.c
23653         (pthread_mutexattr_getprioceiling): Likewise.
23654         * nptl/pthread_mutexattr_setprioceiling.c
23655         (pthread_mutexattr_setprioceiling): Likewise.
23656         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23657         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23658         Likewise.
23659
23660 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23661
23662         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23663         void.
23664
23665 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23666
23667         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23668         third argument const.
23669
23670 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23671
23672         fnmatch: work around GCC compiler warning bug with uninit var
23673         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23674         This works around a bug with x86-64 GCC 4.9.2 and earlier
23675         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23676         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23677         used uninitialized in this function [-Wmaybe-uninitialized]".
23678
23679 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23680
23681         * posix/bug-regex31.c (main): Return RES not 0.
23682
23683 2014-11-25  Anton Blanchard <anton@samba.org>
23684
23685         * sysdeps/powerpc/bits/atomic.h
23686         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23687
23688 2014-11-24  Sterling Augustine  <saugustine@google.com>
23689
23690         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23691
23692 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23693
23694         [BZ #17608]
23695         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23696
23697 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23698
23699         [BZ #17633]
23700         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23701         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23702         variable.
23703         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23704         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23705
23706 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23707
23708         * string/strncpy.c (strncpy): Improve performance by using memset.
23709
23710 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23711
23712         * string/strcpy.c (strcpy):
23713         Improve performance by using strlen and memcpy.
23714
23715 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23716
23717         * string/strcoll_l.c (get_next_seq): __always_inline.
23718         * string/strcoll_l.c (do_compare): __always_inline.
23719
23720 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23721
23722         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23723         defined.
23724         * include/mqueue.h: Likewise.
23725         * include/stdlib.h: Likewise.
23726
23727         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23728         (get_null_defines): Adjust.
23729         * sunrpc/Makefile: Adjust comment.
23730         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23731         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23732         (CFLAGS-interp.c): Likewise.
23733         (CFLAGS-ldconfig.c): Likewise.
23734         (CPPFLAGS-.os): Likewise.
23735         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23736         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23737         * extra-modules.mk (extra-modules.mk): Likewise.
23738         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23739         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23740         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23741         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23742         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23743         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23744         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23745         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23746         * iconvdata/Makefile (CPPFLAGS): Likewise.
23747         (cpp-srcs-left): Add libof for all iconvdata routines.
23748         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23749         * include/assert.h: Likewise.
23750         * include/ctype.h: Likewise.
23751         * include/errno.h: Likewise.
23752         * include/libc-symbols.h: Likewise.
23753         * include/math.h: Likewise.
23754         * include/netdb.h: Likewise.
23755         * include/resolv.h: Likewise.
23756         * include/stdio.h: Likewise.
23757         * include/stdlib.h: Likewise.
23758         * include/string.h: Likewise.
23759         * include/sys/stat.h: Likewise.
23760         * include/wctype.h: Likewise.
23761         * intl/l10nflist.c: Likewise.
23762         * libidn/idn-stub.c: Likewise.
23763         * libio/libioP.h: Likewise.
23764         * nptl/libc_multiple_threads.c: Likewise.
23765         * nptl/pthreadP.h: Likewise.
23766         * posix/regex_internal.h: Likewise.
23767         * resolv/res_hconf.c: Likewise.
23768         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23769         * sysdeps/arm/memmove.S: Likewise.
23770         * sysdeps/arm/sysdep.h: Likewise.
23771         * sysdeps/generic/_itoa.h: Likewise.
23772         * sysdeps/generic/symbol-hacks.h: Likewise.
23773         * sysdeps/gnu/errlist.awk: Likewise.
23774         * sysdeps/gnu/errlist.c: Likewise.
23775         * sysdeps/i386/i586/memcpy.S: Likewise.
23776         * sysdeps/i386/i586/memset.S: Likewise.
23777         * sysdeps/i386/i686/memcpy.S: Likewise.
23778         * sysdeps/i386/i686/memmove.S: Likewise.
23779         * sysdeps/i386/i686/mempcpy.S: Likewise.
23780         * sysdeps/i386/i686/memset.S: Likewise.
23781         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23782         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23783         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23784         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23785         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23786         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23787         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23788         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23789         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23790         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23791         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23792         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23793         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23794         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23795         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23796         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23797         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23798         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23799         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23800         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23801         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23802         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23803         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23804         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23805         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23806         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23807         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23808         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23809         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23810         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23811         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23812         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23813         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23814         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23815         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23816         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23817         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23818         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23819         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23820         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23821         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23822         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23823         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23824         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23825         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23826         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23827         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23828         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23829         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23830         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23831         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23832         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23833         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23834         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23835         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23836         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23837         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23838         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23839         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23840         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23841         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23842         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23843         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23844         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23845         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23846         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23847         * sysdeps/posix/closedir.c: Likewise.
23848         * sysdeps/posix/opendir.c: Likewise.
23849         * sysdeps/posix/readdir.c: Likewise.
23850         * sysdeps/posix/rewinddir.c: Likewise.
23851         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23852         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23853         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23854         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23855         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23856         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23857         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23858         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23859         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23860         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23861         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23862         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23863         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23864         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23865         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23866         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23867         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23868         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23869         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23870         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23871         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23872         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23873         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23874         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23875         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23876         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23877         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23878         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23879         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23880         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23881         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23882         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23883         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23884         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23885         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23886         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23887         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23888         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23889         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23890         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23891         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23892         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23893         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23894         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23895         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23896         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23897         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23898         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23899         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23900         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23901         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23902         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23903         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23904         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23905         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23906         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23907         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23908         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23909         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23910         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23911         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23912         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23913         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23914         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23915         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23916         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23917         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23918         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23919         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23920         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23921         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23922         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23923         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23924         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23925         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23926         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23927         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23928         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23929         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23930         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23931         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23932         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23933         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23934         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23935         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23936         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23937         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23938         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23939         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23940         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23941         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23942         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23943         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23944         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23945         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23946         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23947         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23948         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23949         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23950         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23951         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23952         * sysdeps/unix/alpha/sysdep.S: Likewise.
23953         * sysdeps/unix/alpha/sysdep.h: Likewise.
23954         * sysdeps/unix/make-syscalls.sh: Likewise.
23955         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23956         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23957         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23958         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23959         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23960         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23961         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23962         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23963         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23964         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23965         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23966         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23967         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23968         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23969         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23970         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23971         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23972         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23973         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23974         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23975         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23976         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23977         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23978         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23979         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23980         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23981         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23984         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23985         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23986         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23987         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23988         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23989         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23990         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23991         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23992         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23993         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23994         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23995         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23996         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23997         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23998         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23999         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24000         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24001         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24002         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24003         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24004         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24005         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24006         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24007         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24008         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24009         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24010         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24011         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24012         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24013         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24014         * sysdeps/x86_64/memcpy.S: Likewise.
24015         * sysdeps/x86_64/memmove.c: Likewise.
24016         * sysdeps/x86_64/memset.S: Likewise.
24017         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24018         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24019         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24020         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24021         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24022         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24023         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24024         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24025         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24026         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24027         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24028         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24029         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24030         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24031         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24032         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24033         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24034         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24035         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24036         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24037         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24038         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24039         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24040         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24041         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24042         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24043         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24044         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24045         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24046         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24047         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24048         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24049         * sysdeps/x86_64/strcmp.S: Likewise.
24050
24051         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24052
24053         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24054         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24055         * elf/rtld-Rules: Likewise.
24056         * elf/setup-vdso.h: Likewise.
24057         * include/assert.h: Likewise.
24058         * include/bits/stdlib-float.h: Likewise.
24059         * include/errno.h: Likewise.
24060         * include/sys/stat.h: Likewise.
24061         * include/unistd.h: Likewise.
24062         * sysdeps/aarch64/setjmp.S: Likewise.
24063         * sysdeps/alpha/setjmp.S: Likewise.
24064         * sysdeps/arm/__longjmp.S: Likewise.
24065         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24066         * sysdeps/arm/setjmp.S: Likewise.
24067         * sysdeps/arm/sysdep.h: Likewise.
24068         * sysdeps/generic/_itoa.h: Likewise.
24069         * sysdeps/generic/dl-sysdep.h: Likewise.
24070         * sysdeps/generic/ldsodefs.h: Likewise.
24071         * sysdeps/i386/dl-tls.h: Likewise.
24072         * sysdeps/i386/setjmp.S: Likewise.
24073         * sysdeps/m68k/setjmp.c: Likewise.
24074         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24075         * sysdeps/mach/hurd/opendir.c: Likewise.
24076         * sysdeps/posix/getcwd.c: Likewise.
24077         * sysdeps/posix/opendir.c: Likewise.
24078         * sysdeps/posix/profil.c: Likewise.
24079         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24080         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24081         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24082         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24083         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24084         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24085         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24086         * sysdeps/s390/dl-tls.h: Likewise.
24087         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24088         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24089         * sysdeps/sh/sh3/setjmp.S: Likewise.
24090         * sysdeps/sh/sh4/setjmp.S: Likewise.
24091         * sysdeps/unix/alpha/sysdep.h: Likewise.
24092         * sysdeps/unix/arm/sysdep.S: Likewise.
24093         * sysdeps/unix/i386/sysdep.S: Likewise.
24094         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24095         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24096         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24097         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24098         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24099         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24100         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24101         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24102         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24103         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24104         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24105         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24106         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24109         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24110         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24111         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24112         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24113         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24114         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24115         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24116         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24117         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24118         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24119         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24120         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24121         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24122         * sysdeps/x86_64/setjmp.S: Likewise.
24123
24124         * include/math.h: Use IS_IN instead of IS_IN_libm.
24125         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24126         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24127         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24128         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24129         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24130         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24131         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24132         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24133         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24134         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24135         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24136         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24137         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24138         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24139         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24140         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24141         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24142         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24143         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24144         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24145         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24146         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24147         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24148         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24149         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24150         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24151         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24152         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24153         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24154         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24155         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24156         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24157         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24159         Likewise.
24160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24161         Likewise.
24162         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24163         Likewise.
24164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24165         Likewise.
24166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24167         Likewise.
24168         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24169         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24170         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24171         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24172         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24173         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24179         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24180         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24181         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24182         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24183         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24184         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24185         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24186         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24187         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24188         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24189         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24190         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24191         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24192         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24193         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24194         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24195
24196         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24197         * nptl/pthreadP.h: Likewise.
24198         * nptl_db/structs.def: Likewise.
24199         * sysdeps/arm/sysdep.h: Likewise.
24200         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24201         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24202         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24203         * sysdeps/unix/alpha/sysdep.h: Likewise.
24204         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24205         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24206         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24207         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24208         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24209         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24210         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24211         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24212         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24213         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24214         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24215         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24216         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24217         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24220         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24221         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24222         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24223         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24224         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24225         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24226         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24227         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24228         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24229         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24230
24231         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24232         * nptl/pthreadP.h: Likewise.
24233         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24234         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24235         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24236         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24237         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24238         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24239         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24240         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24241         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24242         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24243         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24244         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24246         Likewise.
24247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24248         Likewise.
24249         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24250         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24251         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24252         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24253         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24254         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24255         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24256         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24257
24258         * dlfcn/dladdr.c: Use IS_IN.
24259         * dlfcn/dladdr1.c: Likewise.
24260         * dlfcn/dlclose.c: Likewise.
24261         * dlfcn/dlerror.c: Likewise.
24262         * dlfcn/dlinfo.c: Likewise.
24263         * dlfcn/dlmopen.c: Likewise.
24264         * dlfcn/dlopen.c: Likewise.
24265         * dlfcn/dlsym.c: Likewise.
24266         * dlfcn/dlvsym.c: Likewise.
24267
24268         * include/ifaddrs.h: Use IS_IN.
24269         * inet/check_pf.c: Likewise.
24270         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24271         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24272
24273         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24274         IS_IN_ldconfig.
24275         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24276         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24277
24278         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24279         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24280         IS_IN (libc).
24281
24282         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24283
24284         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24285         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24286         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24287         * include/libc-symbols.h (IS_IN_LIB): New macro.
24288         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24289         * include/netdb.h: Likewise.
24290         * include/stap-probe.h: Remove all uses of IN_LIB.
24291
24292         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24293         instead of IN_MODULE.
24294         * include/libc-symbols.h (IN_MODULE): Define using
24295         MODULE_NAME.
24296         (PASTE_NAME, PASTE_NAME1): New macros.
24297         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24298         of IN_LIB.
24299         (STAP_PROBE_ASM): Likewise.
24300
24301 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24302
24303         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24304         __mach_init in dlopened libc.
24305
24306 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24307
24308         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24309         * sysdeps/arm/preconfigure: Regenerate.
24310
24311 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24312
24313         * nptl/pthread_create.c (__pthread_create_2_1): Set
24314         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24315         when copying values from IATTR into PD.
24316
24317 2014-11-21  Will Newton  <will.newton@linaro.org>
24318             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24319
24320         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24321         Refactor inline-asm.  Also add comment.
24322
24323         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24324         ElfW macro instead of hardcoded Elf64 types.
24325         (la_aarch64_gnu_pltenter): Likewise.
24326         * sysdeps/aarch64/dl-machine.h
24327         (elf_machine_runtime_setup): Use ElfW(Addr).
24328
24329         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24330         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24331         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24332         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24333         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24334         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24335         (R_AARCH64_TLS_DTPMOD): This.
24336         (R_AARCH64_TLS_DTPREL64): Rename to ...
24337         (R_AARCH64_TLS_DTPREL): This.
24338         (R_AARCH64_TLS_TPREL64): Rename to ...
24339         (R_AARCH64_TLS_TPREL): This.
24340         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24341         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24342         R_AARCH64_TLS_TPREL64.
24343         (elf_machine_rela): Likewise.
24344
24345 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24346
24347         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24348         by setting it to 0.  64b atomics are not supported currently.
24349
24350 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24351
24352         [BZ #16469]
24353         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24354         search domain names.
24355
24356 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24357
24358         [BZ #16469]
24359         * NEWS: Update.
24360         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24361         trailing dot.
24362         * posix/tst-getaddrinfo5.c: New.
24363         * posix/Makefile (tests): Add it.
24364
24365 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24366
24367         [BZ #14498]
24368         * NEWS: Fixed.
24369         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24370         after parsing line but before break_if_match.
24371         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24372         if there is a protocol mismatch.
24373
24374 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24375
24376         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24377         because the potential race is on the user-supplied stream.
24378
24379 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24380
24381         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24382         string literal if not passed a buffer.
24383         * manual/job.texi (ctermid): Update reasoning, note deviation
24384         from posix, suggest mtasurace when not passed a buffer, for
24385         future non-preliminary safety notes.
24386
24387 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24388
24389         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24390         of not passing it a buffer.
24391         Reported by Peng Haitao.
24392
24393 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24394
24395         * manual/Makefile ($(objpfx)stamp-summary): Require
24396         check-safety.sh to pass.
24397         * manual/check-safety.sh: Wish for verification that every
24398         @deftypefn and @deftypefun is followed by a @safety remark.
24399
24400 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24401
24402         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24403
24404         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24405         PTHREAD_CANCEL_ASYNCHRONOUS.
24406         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24407         send SIGCANCEL.
24408
24409         * nptl/default-sched.h: New file.
24410         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24411         * nptl/pthread_create.c: Include it.
24412         (__pthread_create_2_1): Use collect_default_sched instead of making
24413         Linux syscalls here directly.
24414
24415 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24416
24417         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24418         __pthread_once): Use C11 atomics.
24419
24420 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24421
24422         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24423
24424 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24425
24426         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24427         atomic_thread_fence_acquire, atomic_thread_fence_release,
24428         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24429         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24430         atomic_compare_exchange_weak_relaxed,
24431         atomic_compare_exchange_weak_acquire,
24432         atomic_compare_exchange_weak_release,
24433         atomic_exchange_acquire, atomic_exchange_release,
24434         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24435         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24436         atomic_fetch_and_acquire,
24437         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24438
24439 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24440
24441         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24442         USE_ATOMIC_COMPILER_BUILTINS): Define.
24443         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24444         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24445         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24446         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24447         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24448         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24449         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24450         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24451         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24452         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24453         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24454         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24455         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24456         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24457         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24458         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24459         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24460         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24461         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24462         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24463         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24464         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24465         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24466         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24467         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24468         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24469         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24470         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24471         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24472         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24473         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24474         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24475         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24476         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24477         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24478         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24479         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24480         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24481         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24482         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24483
24484 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24485
24486         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24487         the sched_priority value here.  It was already checked when the user
24488         called pthread_attr_setschedparam.
24489
24490         * nptl/tst-bad-schedattr.c: New file.
24491         * nptl/Makefile (tests): Add it.
24492
24493 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24494             Florian Weimer  <fweimer@redhat.com>
24495             Joseph Myers  <joseph@codesourcery.com>
24496             Adam Conrad  <adconrad@0c3.net>
24497             Andreas Schwab  <schwab@suse.de>
24498             Brooks  <bmoses@google.com>
24499
24500         [BZ #17625]
24501         * wordexp-test.c (__dso_handle): Add prototype.
24502         (__register_atfork): Likewise.
24503         (__app_register_atfork): New function.
24504         (registered_forks): New global.
24505         (register_fork): New function.
24506         (test_case): Add 3 new tests for WRDE_CMDSUB.
24507         (main): Call __app_register_atfork.
24508         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24509         fork count is non-zero fail the test.
24510         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24511         is set.
24512         (parse_dollars): Remove check for WRDE_NOCMD.
24513         (parse_dquote): Likewise.
24514
24515 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24516
24517         * Makeconfig (built-modules): List non-library modules to be
24518         built.
24519         (module-cppflags): Include libc-modules.h for
24520         everything except shlib-versions.v.i.
24521         (CPPFLAGS): Use it.
24522         (before-compile): Add libc-modules.h.
24523         ($(common-objpfx)libc-modules.h,
24524         $(common-objpfx)libc-modules.stmp): New targets.
24525         (common-generated): Add libc-modules.h and libc-modules.stmp.
24526         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24527         * include/libc-symbols.h: Don't include libc-modules.h.
24528         * include/libc-modules.h: Remove file.
24529         * scripts/gen-libc-modules.awk: New script to generate
24530         libc-modules.h.
24531         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24532         Depend on libc-modules.stmp.
24533
24534         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24535
24536         * Makeconfig (in-module): Get value of libof set for the
24537         translation unit.
24538         (CPPFLAGS): Use $(in-module).
24539         * Makerules: Don't suffix routine names for nonlib.
24540         * include/libc-modules.h: New file.
24541         * include/libc-symbols.h: Include libc-modules.h
24542         (IS_IN): New macro to replace IS_IN_* macros.
24543         * elf/Makefile: Set libof-* for each routine.
24544         * elf/rtld-Rules: Likewise.
24545         * extra-modules.mk: Likewise.
24546         * iconv/Makefile: Likewise.
24547         * iconvdata/Makefile: Likewise.
24548         * locale/Makefile: Likewise.
24549         * malloc/Makefile: Likewise.
24550         * nss/Makefile: Likewise.
24551         * sysdeps/gnu/Makefile: Likewise.
24552         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24553         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24554         * sysdeps/s390/s390-64/Makefile: Likewise.
24555         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24556         CPPFLAGS for nscd instead of nonlib.
24557
24558 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24559
24560         * nptl/createthread.c: New file.
24561
24562         * nptl/createthread.c: Moved ...
24563         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24564
24565         * nptl/createthread.c: Add proper top-line comment.
24566         (do_clone): Folded into ...
24567         (create_thread): ... here.  Take new arguments STOPPED_START and
24568         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24569         increment __nptl_threads, do event-reporting logic, do
24570         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24571         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24572         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24573         just send SIGCANCEL.
24574         * nptl/pthread_create.c: Forward-declare create_thread before
24575         including createthread.c.
24576         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24577         declaration, and new macro START_THREAD_SELF to replace argument.
24578         Remove return statement.
24579         (report_thread_creation): New function.
24580         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24581         synchronization logic, and __nptl_nthreads increment here, around
24582         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24583         PD->parent_cancelhandling here, before create_thread.  When
24584         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24585         __deallocate_stack, and ENOMEM translation here.
24586
24587 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24588
24589         [BZ #17616]
24590         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24591         (mptwo): Rename to __mptwo.
24592         (__inv): Use __mptwo instead of mptwo.
24593         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24594         (mptwo): Rename to __mptwo.
24595         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24596         of mpone and __mptwo instead of mptwo.
24597         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24598         instead of mpone.
24599         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24600         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24601         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24602         of mpone and __mptwo instead of mptwo.
24603         (__mpranred): Use __mpone instead of mpone.
24604         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24605         variable.
24606         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24607         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24608         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24609         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24610         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24611         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24612         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24613         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24614         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24615         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24616         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24617         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24618         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24619         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24620         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24621         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24622         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24623         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24624         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24625
24626 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24627
24628         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24629         replace BSD Handler xref with BSD Signal Handling.
24630
24631 2014-11-17  Richard Henderson  <rth@redhat.com>
24632
24633         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24634         (_FP_PACK_RAW_2): Remove.
24635         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24636         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24637         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24638         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24639         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24640         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24641         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24642         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24643         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24644         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24645         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24646         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24647         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24648         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24649         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24650         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24651
24652 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24653
24654         * signal/signal.h [__USE_MISC]
24655         (struct sigvec): Remove type.
24656         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24657         (sigvec): Remove declaration.
24658         * sysdeps/posix/sigvec.c: Moved ...
24659         * signal/sigvec.c: ... here, replacing old file.
24660         (struct sigvec): New type, copied from old signal.h definition.
24661         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24662         (__sigvec): Convert definition to prototype.
24663         (sigvec): Replace weak_alias with compat_symbol.
24664         * signal/Versions (libc: GLIBC_2.21): New version set.
24665         * include/signal.h: Remove __sigvec declaration.
24666         * sysdeps/unix/bsd/sigvec.c: Remove file.
24667         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24668         * manual/signal.texi (BSD Handler): Remove subsection.
24669         Move siginterrupt up to ...
24670         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24671         (Blocking in BSD): Fold subsection into its parent.
24672         * NEWS: Mention sigvec removal.
24673
24674 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24675
24676         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24677         (DLA_FMS): Make definition conditional only on [__FMA4__].
24678         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24679         definition.
24680
24681         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24682         Make definition conditional only on [PROF].
24683         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24684         definition.
24685         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24686         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24687
24688         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24689         !__GNUC__].
24690         * include/signal.h (__sigpause): Move declaration above call to
24691         libc_hidden_proto.
24692         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24693         variable.
24694         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24695         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24696
24697 2014-11-14  David S. Miller  <davem@davemloft.net>
24698
24699         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24700         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24701
24702 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24703
24704         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24705         * configure: Regenerated.
24706         * manual/install.texi (Tools for Compilation): Document a
24707         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24708         compiler verified to work.
24709         * INSTALL: Regenerated.
24710
24711         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24712         redeclare with asm name.
24713         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24714         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24715         including <string.h>.
24716         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24717         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24718         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24719         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24720         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24721         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24722         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24723
24724 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24725
24726         * stdlib/strtol.c (__strtol): Use prototype definition.
24727
24728         [BZ #17594]
24729         * stdlib/strtol.c (SYM__): New macro.
24730         (SYM__1): Likewise.
24731         (__strtol): Likewise.
24732         (strtol): Rename to __strtol and define as weak alias of
24733         __strtol.  Use libc_hidden_weak.
24734
24735 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24736
24737         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24738         Use numbered labels in inline assembly.
24739
24740 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24741
24742         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24743         Add setjmp LIBC_PROBE.
24744         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24745         Likewise.
24746         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24747         Add longjmp, longjmp_target LIBC_PROBE.
24748         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24749         Likewise.
24750
24751 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24752
24753         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24754         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24755         to get rid of unused variable warning.
24756
24757 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24758
24759         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24760         Check for unwind_backtrace ==  NULL only in SHARED case.
24761         (__backchain_backtrace): Compile only in SHARED case.
24762         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24763         Likewise.
24764         (__backchain_backtrace): Declare as static.
24765
24766 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24767
24768         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24769         (__libc_multiple_threads_ptr): Variable moved ...
24770         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24771
24772 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24773
24774         * conform/GlibcConform.pm: New file.
24775         * conform/conformtest.pl: Use GlibcConform module.
24776         * conform/linknamespace.pl: New file.
24777         * conform/list-header-symbols.pl: Likewise.
24778         * conform/Makefile (linknamespace-symlists-base): New variable.
24779         (linknamespace-symlists-tests): Likewise.
24780         (linknamespace-header-base): Likewise.
24781         (linknamespace-header-tests): Likewise.
24782         (tests-special): Add new tests.
24783         ($(linknamespace-symlists-tests)): New rule.
24784         (linknamespace-libs): New variable.
24785         ($(objpfx)symlist-stdlibs): New rule.
24786         ($(linknamespace-header-tests)): Likewise.
24787         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24788         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24789         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24790         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24791         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24792         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24793         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24794         (test-xfail-ISO/math.h/linknamespace): Likewise.
24795         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24796         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24797         (test-xfail-ISO/time.h/linknamespace): Likewise.
24798         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24799         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24800         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24801         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24802         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24803         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24804         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24805         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24806         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24807         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24808         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24809         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24810         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24811         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24812         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24813         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24814         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24815         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24816         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24817         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24818         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24819         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24820         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24821         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24822         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24823         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24824         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24825         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24826         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24827         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24828         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24829         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24830         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24831         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24832         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24833         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24834         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24835         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24836         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24837         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24838         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24839         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24840         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24841         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24842         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24843         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24844         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24845         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24846         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24847         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24848         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24849         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24850         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24851         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24852         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24853         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24854         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24855         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24856         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24857         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24858         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24859         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24860         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24861         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24862         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24863         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24864         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24865         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24866         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24867         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24868         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24869         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24870         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24871         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24872         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24873         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24874         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24875         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24876         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24877         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24878         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24879         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24880         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24881         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24882         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24883         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24884         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24885         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24886         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24887         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24888         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24889         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24890         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24891         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24892         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24893         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24894         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24895         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24896         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24897         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24898         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24899         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24900         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24901         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24902         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24903         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24904         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24905         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24906         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24907         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24908         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24909         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24910         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24911         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24912         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24913         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24914         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24915         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24916         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24917         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24918         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24919         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24920         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24921         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24922         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24923         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24924         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24925         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24926         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24927         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24928         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24929         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24930         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24931         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24932         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24933         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24934         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24935         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24936         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24937         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24938         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24939         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24940         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24941         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24942         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24943         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24944         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24945         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24946         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24947         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24948
24949         [BZ #17589]
24950         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24951         of fgets_unlocked.
24952
24953         [BZ #17585]
24954         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24955         (memmem): Rename to __memmem and define as weak alias of
24956         __memmem.  Use libc_hidden_weak.
24957         (__memmem): Use libc_hidden_def.
24958         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24959         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24960         memmem.
24961
24962         [BZ #17582]
24963         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24964         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24965         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24966         and define as weak alias of __fgets_unlocked.  Use
24967         libc_hidden_weak.
24968         (__fgets_unlocked): Use libc_hidden_def.
24969         * include/stdio.h (__fgets_unlocked): Declare.  Use
24970         libc_hidden_proto.
24971         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24972         __fgets_unlocked instead of fgets_unlocked.
24973         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24974         (GET_NPROCS_CONF_PARSER): Likewise.
24975         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24976         (GET_NPROCS_CONF_PARSER): Likewise.
24977
24978         [BZ #17574]
24979         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24980         weak alias of __wmemset.  Use libc_hidden_weak.
24981         (__wmemset): Use libc_hidden_def.
24982         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24983         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24984         of wmemset.
24985
24986         [BZ #17573]
24987         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24988         with asm name __mempcpy.
24989         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24990
24991         [BZ #17572]
24992         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24993         and define as weak alias of __rawmemchr.
24994         (__rawmemchr): Do not define as strong alias of rawmemchr.
24995
24996         [BZ #17571]
24997         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24998         alias of __qsort_r.
24999         (qsort): Call __qsort_r instead of qsort_r.
25000         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25001         (__qsort_r): Declare.  Call libc_hidden_proto.
25002         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25003         instead of qsort_r.
25004         * nscd/gai.c (__qsort_r): Define to qsort_r.
25005         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25006         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25007         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25008
25009         [BZ #17570]
25010         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25011         define as weak alias of __malloc_info.
25012
25013         [BZ #17584]
25014         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25015         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25016         (__rewinddir): Use libc_hidden_def.
25017         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25018         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25019         (__rewinddir): Use libc_hidden_def.
25020         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25021         weak alias of __rewinddir.  Don't use libc_hidden_def.
25022         (__rewinddir): Use libc_hidden_def.
25023         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25024         (__rewinddir): Use libc_hidden_proto.
25025         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25026         rewinddir.
25027         (__getcwd): Use __rewinddir instead of rewinddir.
25028
25029         [BZ #17583]
25030         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25031         alias of __fileno.  Use libc_hidden_weak.
25032         (__fileno): Use libc_hidden_def.
25033         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25034         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25035         alias of __ftello.
25036         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25037         __ftello.
25038         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25039         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25040         libc_hidden_def.
25041         (fread_unlocked): Don't use libc_hidden_ver.
25042         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25043         and define as weak alias of __fread_unlocked.  Don't use
25044         libc_hidden_def.
25045         (__fread_unlocked): Use libc_hidden_def.
25046         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25047         (ftello): Don't use libc_hidden_proto.
25048         (__ftello): Declare.  Use libc_hidden_proto.
25049         (fread_unlocked): Don't use libc_hidden_proto.
25050         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25051         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25052         and __ftello instead of fileno, fread_unlocked and ftello.
25053
25054 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25055
25056         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25057         GOT12.
25058         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25059         Likewise.
25060         (_dl_start_user): Likewise.
25061         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25062
25063 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25064             Siddhesh Poyarekar  <siddhesh@redhat.com>
25065
25066         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25067         Move argv and envp down instead of moving argc up.
25068         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25069
25070 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25071
25072         [BZ #17506]
25073         * test-skeleton.c (main): Return successful if one of
25074         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25075         * string/tst-strcoll-overflow.c: Define expected status.
25076
25077 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25078
25079         [BZ #17475]
25080         * locale/iso-639.def: Define Bhili and Tulu language codes.
25081
25082 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25083
25084         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25085
25086 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25087
25088         [BZ #17555]
25089         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25090
25091 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25092
25093         * configure.ac: Updated check of minimal required version to
25094         2.22.
25095         * manual/install.texi (Tools for Compilation): Updated version
25096         number.
25097         * configure: Regenerated.
25098         * INSTALL: Likewise.
25099
25100 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25101
25102         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25103         __tls_get_addr.
25104
25105 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25106
25107         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25108         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25109         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25110         libc_hidden_weak.
25111         (waitpid): Define as alias of __waitpid.
25112         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25113         __waitpid.
25114         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25115         libc_hidden_weak.
25116         (waitpid): Define as alias of __waitpid.
25117         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25118         __libc_waitpid alias.
25119         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25120         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25121         Likewise.
25122         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25123         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25124         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25125         alias.
25126         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25127         __waitpid.
25128         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25129         libc_hidden_weak.
25130         (waitpid): Define as alias of __waitpid.
25131
25132 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25133
25134         * manual/llio.texi: Add comment that write safety has been
25135         fixed in Linux.
25136
25137         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25138         (localplt-build-dso): Add elf/ld.so.
25139         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25140         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25141         and free for ld.so.
25142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25143         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25145         Likewise.
25146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25147         Likewise.
25148         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25149         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25150         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25151         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25152         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25153         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25154         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25155         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25156         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25157         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25158         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25159
25160 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25161
25162         [BZ #14132]
25163         * include/libc-symbols.h (INTUSE): Remove macro.
25164         (INTDEF): Likewise.
25165         (INTVARDEF): Likewise.
25166         (_INTVARDEF): Likewise.
25167         (INTDEF2): Likewise.
25168         (INTVARDEF2): Likewise.
25169         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25170         rtld_hidden_def instead of INTVARDEF.
25171         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25172         (_dl_starting_up_internal): Remove declaration.
25173         (_dl_starting_up): Use rtld_hidden_proto.
25174         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25175         declaration.
25176         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25177         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25178         _dl_starting_up.
25179         * elf/dl-writev.h (_dl_writev): Likewise.
25180         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25181         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25182         _dl_starting_up_internal.
25183
25184 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25185
25186         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25187         test-skeleton.c.
25188
25189 2014-11-05  Will Newton  <will.newton@linaro.org>
25190
25191         * benchtests/Makefile: (bench-malloc): Add malloc thread
25192         scalability benchmark.
25193         * benchtests/bench-malloc-threads.c: New file.
25194
25195 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25196
25197         * sysdeps/aarch64/strchrnul.S: New file.
25198
25199 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25200
25201         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25202         definition.
25203         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25204         Likwise.
25205         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25206         Likewise.
25207         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25208         Likewise.
25209         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25210         Likewise.
25211         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25212         Likewise.
25213
25214 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25215
25216         * catgets/test-gencat.c: Use test-skeleton.c.
25217         * catgets/tst-catgets.c: Likewise.
25218         * csu/tst-empty.c: Likewise.
25219         * elf/tst-audit2.c: Likewise.
25220         * elf/tst-global1.c: Likewise.
25221         * elf/tst-pathopt.c: Likewise.
25222         * elf/tst-piemod1.c: Likewise.
25223         * elf/tst-tls10.c: Likewise.
25224         * elf/tst-tls11.c: Likewise.
25225         * elf/tst-tls12.c: Likewise.
25226         * gnulib/tst-gcc.c: Likewise.
25227         * iconvdata/tst-e2big.c: Likewise.
25228         * iconvdata/tst-loading.c: Likewise.
25229         * iconv/tst-iconv1.c: Likewise.
25230         * iconv/tst-iconv2.c: Likewise.
25231         * inet/test-inet6_opt.c: Likewise.
25232         * inet/tst-gethnm.c: Likewise.
25233         * inet/tst-network.c: Likewise.
25234         * inet/tst-ntoa.c: Likewise.
25235         * intl/tst-codeset.c: Likewise.
25236         * intl/tst-gettext2.c: Likewise.
25237         * intl/tst-gettext3.c: Likewise.
25238         * intl/tst-ngettext.c: Likewise.
25239         * intl/tst-translit.c: Likewise.
25240         * io/test-stat.c: Likewise.
25241         * libio/test-fmemopen.c: Likewise.
25242         * libio/tst-freopen.c: Likewise.
25243         * libio/tst-sscanf.c: Likewise.
25244         * libio/tst-ungetwc1.c: Likewise.
25245         * libio/tst-ungetwc2.c: Likewise.
25246         * libio/tst-widetext.c: Likewise.
25247         * localedata/tst-ctype.c: Likewise.
25248         * localedata/tst-digits.c: Likewise.
25249         * localedata/tst-leaks.c: Likewise.
25250         * localedata/tst-mbswcs1.c: Likewise.
25251         * localedata/tst-mbswcs2.c: Likewise.
25252         * localedata/tst-mbswcs3.c: Likewise.
25253         * localedata/tst-mbswcs4.c: Likewise.
25254         * localedata/tst-mbswcs5.c: Likewise.
25255         * localedata/tst-setlocale.c: Likewise.
25256         * localedata/tst-trans.c: Likewise.
25257         * localedata/tst-wctype.c: Likewise.
25258         * localedata/tst-xlocale1.c: Likewise.
25259         * login/tst-grantpt.c: Likewise.
25260         * malloc/tst-calloc.c: Likewise.
25261         * malloc/tst-malloc.c: Likewise.
25262         * malloc/tst-mallocstate.c: Likewise.
25263         * malloc/tst-mcheck.c: Likewise.
25264         * malloc/tst-mtrace.c: Likewise.
25265         * malloc/tst-obstack.c: Likewise.
25266         * math/atest-exp2.c: Likewise.
25267         * math/atest-exp.c: Likewise.
25268         * math/atest-sincos.c: Likewise.
25269         * math/test-matherr.c: Likewise.
25270         * math/test-misc.c: Likewise.
25271         * math/test-powl.c: Likewise.
25272         * math/tst-definitions.c: Likewise.
25273         * misc/tst-dirname.c: Likewise.
25274         * misc/tst-efgcvt.c: Likewise.
25275         * misc/tst-fdset.c: Likewise.
25276         * misc/tst-hsearch.c: Likewise.
25277         * misc/tst-mntent2.c: Likewise.
25278         * nptl/tst-sem7.c: Likewise.
25279         * nptl/tst-sem8.c: Likewise.
25280         * nptl/tst-sem9.c: Likewise.
25281         * nss/test-netdb.c: Likewise.
25282         * posix/tst-fnmatch.c: Likewise.
25283         * posix/tst-getlogin.c: Likewise.
25284         * posix/tst-gnuglob.c: Likewise.
25285         * posix/tst-mmap.c: Likewise.
25286         * pwd/tst-getpw.c: Likewise.
25287         * resolv/tst-inet_ntop.c: Likewise.
25288         * rt/tst-timer.c: Likewise.
25289         * stdio-common/test-fseek.c: Likewise.
25290         * stdio-common/test-popen.c: Likewise.
25291         * stdio-common/test-vfprintf.c: Likewise.
25292         * stdio-common/tst-cookie.c: Likewise.
25293         * stdio-common/tst-fileno.c: Likewise.
25294         * stdio-common/tst-gets.c: Likewise.
25295         * stdio-common/tst-obprintf.c: Likewise.
25296         * stdio-common/tst-perror.c: Likewise.
25297         * stdio-common/tst-sprintf2.c: Likewise.
25298         * stdio-common/tst-sprintf3.c: Likewise.
25299         * stdio-common/tst-sprintf.c: Likewise.
25300         * stdio-common/tst-swprintf.c: Likewise.
25301         * stdio-common/tst-tmpnam.c: Likewise.
25302         * stdio-common/tst-unbputc.c: Likewise.
25303         * stdio-common/tst-wc-printf.c: Likewise.
25304         * stdlib/tst-environ.c: Likewise.
25305         * stdlib/tst-fmtmsg.c: Likewise.
25306         * stdlib/tst-limits.c: Likewise.
25307         * stdlib/tst-rand48-2.c: Likewise.
25308         * stdlib/tst-rand48.c: Likewise.
25309         * stdlib/tst-random2.c: Likewise.
25310         * stdlib/tst-random.c: Likewise.
25311         * stdlib/tst-strtol.c: Likewise.
25312         * stdlib/tst-strtoll.c: Likewise.
25313         * stdlib/tst-tls-atexit.c: Likewise.
25314         * stdlib/tst-xpg-basename.c: Likewise.
25315         * string/test-ffs.c: Likewise.
25316         * string/tst-bswap.c: Likewise.
25317         * string/tst-inlcall.c: Likewise.
25318         * string/tst-strtok.c: Likewise.
25319         * string/tst-strxfrm.c: Likewise.
25320         * sysdeps/x86_64/tst-audit10.c: Likewise.
25321         * sysdeps/x86_64/tst-audit3.c: Likewise.
25322         * sysdeps/x86_64/tst-audit4.c: Likewise.
25323         * sysdeps/x86_64/tst-audit5.c: Likewise.
25324         * time/tst-ftime_l.c: Likewise.
25325         * time/tst-getdate.c: Likewise.
25326         * time/tst-mktime3.c: Likewise.
25327         * time/tst-mktime.c: Likewise.
25328         * time/tst-posixtz.c: Likewise.
25329         * time/tst-strptime2.c: Likewise.
25330         * time/tst-strptime3.c: Likewise.
25331         * wcsmbs/tst-btowc.c: Likewise.
25332         * wcsmbs/tst-mbrtowc.c: Likewise.
25333         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25334         * wcsmbs/tst-wchar-h.c: Likewise.
25335         * wcsmbs/tst-wcpncpy.c: Likewise.
25336         * wcsmbs/tst-wcrtomb.c: Likewise.
25337         * wcsmbs/tst-wcsnlen.c: Likewise.
25338         * wcsmbs/tst-wcstof.c: Likewise.
25339
25340 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25341
25342         [BZ #14132]
25343         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25344         INTDEF.
25345         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25346         declaration.
25347         (_dl_mcount): Use rtld_hidden_proto.
25348         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25349         _dl_mcount.
25350         * elf/rtld.c (_rtld_global_ro): Likewise.
25351
25352         [BZ #14132]
25353         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25354         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25355         of _dl_init_internal.
25356         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25357         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25358         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25359         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25360         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25361         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25362         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25363         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25364         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25365         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25366         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25367         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25368         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25369         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25370         * sysdeps/tile/dl-start.S (_start): Likewise.
25371         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25372         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25373
25374         [BZ #14132]
25375         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25376         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25377         (rtld_progname): Make macro definition unconditional.
25378         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25379         INTDEF.
25380         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25381         (dl_main): Likewise.
25382         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25383         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25384         instead of _dl_argv_internal.
25385         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25386         __GI__dl_argv instead of INTUSE(_dl_argv).
25387         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25388         __GI__dl_argv instead of _dl_argv_internal.
25389
25390         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25391         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25392         macro.
25393         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25394         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25395         New macro.
25396         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25397         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25398         macro.
25399         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25400         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25401
25402 2014-11-04  Andreas Schwab  <schwab@suse.de>
25403
25404         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25405
25406 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25407
25408         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25409         mtvsrd instruction in binary form.
25410
25411 2014-11-03  Andreas Schwab  <schwab@suse.de>
25412
25413         [BZ #17522]
25414         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25415         for less than MB_LEN_MAX use a local buffer of that size.
25416         * libio/tst-fputws.c: New file.
25417         * libio/Makefile (tests): Add tst-fputws.
25418
25419 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25420
25421         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25422         the size of the fpu_fr.fpu_dregs[] array.
25423
25424 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25425
25426         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25427         (__nanosleep): Do not define as alias.
25428         (nanosleep): Define as alias of __nanosleep.
25429         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25430         __libc_nanosleep name.
25431
25432 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25433
25434         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25435         install.texi in comment.
25436
25437 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25438
25439         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25440         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25441         ... add here and use lwsync or sync ...
25442         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25443         ... and add here using lwsync.
25444
25445 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25446
25447         * elf/dl-machine-reject-phdr.h: New file.
25448         * elf/dl-load.c: #include that.
25449         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25450         if that returned true.
25451
25452 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25453
25454         [BZ #17496]
25455         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25456         gen-as-const-headers chunk.  Add a big scare comment after the last
25457         safe place to touch before-compile.
25458
25459 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25460
25461         * manual/install.texi (Tools for Compilation): Update autoconf
25462         version requirements.
25463         * INSTALL: Regenerated.
25464
25465         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25466         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25467         (__libc_pselect): Likewise.
25468
25469         [BZ #14138]
25470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25474
25475 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25476
25477         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25478         correct barrier instruction.
25479         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25480         Likewise.
25481         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25482         Likewise.
25483
25484 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25485
25486         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25487         after defining inlines.  Instead, just use parens to defeat macro
25488         expansion of __isctype in its declaration.
25489
25490 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25491
25492         * include/sys/uio.h (__libc_readv): Remove declaration.
25493         (__libc_writev): Likewise.
25494         * misc/readv.c (__libc_readv): Rename to __readv.
25495         (__readv): Do not define as alias.
25496         (readv): Define as alias of __readv.
25497         * misc/writev.c (__libc_writev): Rename to __writev.
25498         (__writev): Do not define as alias.
25499         (writev): Define as alias of __writev.
25500         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25501         (__readv): Do not define as alias.
25502         (readv): Define unconditionally as alias of __readv.
25503         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25504         (__writev): Do not define as alias.
25505         (writev): Define unconditionally as alias of __writev.
25506         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25507         name.
25508         (writev): Do not define __libc_writev name.
25509
25510 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25511
25512         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25513         (convert_charseq): New function, broken out of ...
25514         (use_from_charmap): ... here.  Call it.
25515         (use_to_charmap): Use convert_charseq and free instead of duplicating
25516         its code with a variable-length stack struct.
25517
25518 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25519
25520         * include/fcntl.h (__libc_creat): Remove declaration.
25521         * io/creat.c (__libc_creat): Rename to creat.
25522         (creat): Do not define as alias.
25523         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25524         of creat instead of __libc_creat.
25525         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25526         to creat.
25527         (creat): Do not define as alias.
25528         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25529         __libc_creat.
25530         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25531         __libc_creat name.
25532         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25533         Likewise.
25534
25535 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25536
25537         * manual/llio.texi: Add comments discussing why write() may be
25538         considered MT-unsafe on Linux.
25539
25540 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25541
25542         * dl-load.c (local_strdup): Remove.
25543         (expand_dynamic_string_token): Use __strdup.
25544         (decompose_rpath): Likewise.
25545         (_dl_map_object): Likewise.
25546
25547 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25548
25549         [BZ #14132]
25550         * sysdeps/generic/unwind-dw2-fde.c
25551         (__register_frame_info_bases_internal): Do not declare.
25552         (__register_frame_info_table_bases_internal): Likewise.
25553         (__deregister_frame_info_bases_internal): Likewise.
25554         (__register_frame_info_bases): Declare and use hidden_proto before
25555         definition.  Use hidden_def instead of INTDEF.
25556         (__register_frame_info_table_bases): Likewise.
25557         (__deregister_frame_info_bases): Likewise.
25558         (__register_frame_info): Do not use INTUSE.
25559         (__register_frame): Likewise.
25560         (__register_frame_info_table): Likewise.
25561         (__register_frame_table): Likewise.
25562         (__deregister_frame_info): Likewise.
25563         (__deregister_frame): Likewise.
25564
25565 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25566
25567         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25568         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25569         not undefine.
25570         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25571         Likewise.
25572         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25573         Likewise.
25574
25575 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25576
25577         [BZ #14138]
25578         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25579         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25580         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25581         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25582         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25583         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25584         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25585         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25586         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25587         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25588         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25589         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25590         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25591         syscall.
25592         (setfsuid): Likewise.
25593         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25594         (setfsuid): Likewise.
25595         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25596         (setfsuid): Likewise.
25597         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25598         Likewise.
25599         (setfsuid): Likewise.
25600         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25601         (setfsuid): Likewise.
25602         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25603         Likewise.
25604         (setfsuid): Likewise.
25605
25606 2014-10-27  Andreas Schwab  <schwab@suse.de>
25607
25608         [BZ #17501]
25609         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25610         check for Slow_SSE4_2 feature bit.
25611         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25612         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25613         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25614         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25615
25616 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25617
25618         * configure.ac: Validate compiler version with a empirical test of
25619         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25620         $CC -v output.
25621         * configure: Regenerated.
25622
25623         * inet/htons.c (htons): Prototypify.
25624         * inet/htonl.c (htonl): Likewise.
25625
25626 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25627
25628         * string/strncat.c (strncat): Improve performance by using strlen.
25629
25630 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25631
25632         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25633
25634 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25635
25636         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25637         Call libc_fetestexcept_aarch64.
25638
25639 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25640
25641         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25642         Call libc_feholdexcept_aarch64.
25643
25644 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25645
25646         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25647         Call get_rounding_mode.
25648
25649 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25650
25651         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25652         Simplify logic.
25653
25654 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25655
25656         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25657         Simplify logic.
25658
25659 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25660
25661         [BZ #14138]
25662         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25663         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25664         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25665         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25666         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25667         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25668         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25669         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25670         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25671         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25672         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25673         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25674         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25675         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25676         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25677         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25678         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25679         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25680         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25681         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25682         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25683         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25684         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25685         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25686         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25687         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25688         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25689         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25690         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25691         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25692         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25693         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25694         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25695         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25696         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25697         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25698         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25699         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25700         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25701         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25702         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25703         syscall.
25704         (geteuid): Likewise.
25705         (getgid): Likewise.
25706         (getuid): Likewise.
25707         (getresgid): Likewise.
25708         (getresuid): Likewise.
25709         (getgroups): Likewise.
25710         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25711         (geteuid): Likewise.
25712         (getgid): Likewise.
25713         (getuid): Likewise.
25714         (getresgid): Likewise.
25715         (getresuid): Likewise.
25716         (getgroups): Likewise.
25717         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25718         (geteuid): Likewise.
25719         (getgid): Likewise.
25720         (getuid): Likewise.
25721         (getresgid): Likewise.
25722         (getresuid): Likewise.
25723         (getgroups): Likewise.
25724         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25725         Likewise.
25726         (geteuid): Likewise.
25727         (getgid): Likewise.
25728         (getuid): Likewise.
25729         (getresgid): Likewise.
25730         (getresuid): Likewise.
25731         (getgroups): Likewise.
25732         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25733         (geteuid): Likewise.
25734         (getgid): Likewise.
25735         (getuid): Likewise.
25736         (getresgid): Likewise.
25737         (getresuid): Likewise.
25738         (getgroups): Likewise.
25739         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25740         Likewise.
25741         (geteuid): Likewise.
25742         (getgid): Likewise.
25743         (getuid): Likewise.
25744         (getgroups): Likewise.
25745
25746         [BZ #14138]
25747         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25748         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25749         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25750         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25751         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25752         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25753         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25754         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25755         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25756         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25757         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25758         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25759         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25760         __chown.
25761         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25762         (lchown): Likewise.
25763         (fchown): Likewise.
25764         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25765         Likewise.
25766         (lchown): Likewise.
25767         (fchown): Likewise.
25768         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25769         (lchown): Likewise.
25770         (fchown): Likewise.
25771         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25772         Likewise.
25773         (lchown): Likewise.
25774         (fchown): Likewise.
25775
25776 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25777
25778         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25779         Simplify logic.
25780
25781 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25782
25783         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25784         Cleanup logic.
25785
25786 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25787
25788         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25789         Remove unused include.
25790
25791 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25792
25793         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25794         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25795         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25796         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25797
25798 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25799             Helge Deller <deller@gmx.de>
25800
25801         [BZ #17508]
25802         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25803         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25804         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25805
25806 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25807
25808         [BZ #14132]
25809         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25810         Remove macro definition.
25811         (__ashrdi3_v_glibc20): Likewise.
25812         (__lshrdi3_v_glibc20): Likewise.
25813         (__cmpdi2_v_glibc20): Likewise.
25814         (__ucmpdi2_v_glibc20): Likewise.
25815         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25816         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25817         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25818         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25819         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25820         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25821
25822 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25823
25824         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25825         old GNU extension [0] syntax.
25826         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25827         alloca rather than an array member with variable length.
25828         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25829         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25830         (parse_opt): ... here.  Likewise use alloca there.
25831         Validate the -i argument before checking for rootness.
25832         (send_shutdown): New function, broken out of ...
25833         (parse_opt): ... here.
25834
25835 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25836
25837         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25838         macro to get at the _rt_local_ro field.
25839         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25840         ([PIC] case) or _dl_hwcap ([!PIC] case).
25841         * sysdeps/arm/setjmp.S: Likewise.
25842
25843         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25844         * sysdeps/arm/configure.ac: New check to define it.
25845         * sysdeps/arm/configure: Regenerated.
25846         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25847         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25848         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25849         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25850         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25851         Use move/movt pair instead of a load.
25852         (LDST_GLOBAL): Macro removed.
25853         (LDR_GLOBAL): New macro replaces it.
25854         (LDR_HIDDEN): New macro.
25855         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25856         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25857
25858         * setjmp/tst-setjmp-static.c: New file.
25859         * setjmp/Makefile (tests): Add it.
25860         (tests-static): New variable.
25861
25862 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25863
25864         [BZ #17485]
25865         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25866
25867 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25868
25869         [BZ #14132]
25870         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25871
25872 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25873
25874         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25875
25876 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25877
25878         * io/fts.c (dirent_not_directory): New function.
25879         (fts_build): Call it.
25880
25881 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25882
25883         * nptl/version.c (__nptl_main): Use normal __write rather than
25884         INTERNAL_SYSCALL.
25885         (banner): Update copyright years.
25886
25887         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25888         gettimeofday.
25889         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25890         * nptl/pthread_cond_timedwait.c: Likewise.
25891         * nptl/pthread_mutex_timedlock.c: Likewise.
25892         * nptl/sem_timedwait.c: Likewise.
25893
25894         * sysdeps/nptl/bits/libc-lock.h
25895         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25896         (__libc_lock_init_recursive): Return void, not 0.
25897         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25898         (__libc_rwlock_init): Likewise.
25899         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25900
25901 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25902
25903         [BZ #15215]
25904         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25905         (__pthread_once_slow): ... here.
25906         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25907         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25908
25909 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25910
25911         [BZ #15215]
25912         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25913         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25914         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25915         * nptl/pthread_once.c (__pthread_once): Likewise.
25916         Update comments.
25917
25918 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25919
25920         [BZ #14138]
25921         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25922         name.
25923         (writev): Use __libc_writev as strong name.
25924         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25925         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25926
25927 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25928
25929         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25930
25931         * sysdeps/i386/nptl/tls.h
25932         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25933         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25934         New macros.
25935         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25936         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25937         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25938         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25939         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25940         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25941
25942         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25943         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25944         on [__NR_futex].
25945         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25946         broken out of ...
25947         (__pthread_mutex_init): ... here.  Call it.
25948         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25949         Conditionalize PI cases on [__NR_futex].
25950         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25951         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25952         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25953
25954         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25955         conditional on [SIGSETXID].
25956         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25957         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25958         is defined.  Likewise for SIGSETXID.
25959         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25960         Conditionalize definitions on [SIGSETXID].
25961         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25962         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25963         unblocking on [SIGCANCEL].
25964
25965         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25966         [__NR_set_robust_list].
25967
25968 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25969
25970         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25971         (do_compare): Likewise.
25972
25973 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25974
25975         [BZ #15884]
25976         * string/strcoll_l.c: Don't include stdio.h.
25977         (coll_seq): Remove members idxarr and rulearr.
25978         (get_next_seq_cached): Remove function.
25979         (get_next_seq): Likewise.
25980         (get_next_seq_nocache): Rename to get_next_seq.
25981         (do_compare): Remove function.
25982         (do_compare_nocache): Rename to do_compare.
25983         (STRCOLL): Remove weight and rules cache.
25984
25985 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25986
25987         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25988         * sysdeps/arm/sfp-machine.h: ... to here.
25989         * sysdeps/arm/Implies: Remove arm/soft-fp.
25990
25991 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25992
25993         * conform/data/sys/utsname.h-data (*_t): Allow.
25994         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25995         [POSIX] (WEXITED): Do not expect constant.
25996         [POSIX] (WSTOPPED): Likewise.
25997         [POSIX] (WNOHANG): Likewise.
25998         [POSIX] (WNOWAIT): Likewise.
25999         [POSIX] (siginfo_t): Do not expect type or elements.
26000         [POSIX] (pid_t): Do not expect type.
26001         [POSIX] (signal.h): Do not allow header.
26002         [POSIX] (sys/resource.h): Likewise.
26003         [POSIX] (si_*): Do not allow pattern.
26004         [POSIX] (W*): Likewise.
26005         [POSIX] (P_*): Likewise.
26006         [POSIX] (BUS_*): Likewise.
26007         [POSIX] (CLD_*): Likewise.
26008         [POSIX] (FPE_*): Likewise.
26009         [POSIX] (ILL_*): Likewise.
26010         [POSIX] (POLL_*): Likewise.
26011         [POSIX] (SEGV_*): Likewise.
26012         [POSIX] (SI_*): Likewise.
26013         [POSIX] (TRAP_*): Likewise.
26014         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26015         variable.
26016
26017 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26018
26019         [BZ #12926]
26020         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26021         infinite loop when __recvmsg returns 0.
26022
26023 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26024
26025         * CANCEL-FCT-WAIVE: Remove file.
26026         * CANCEL-FILE-WAIVE: Likewise.
26027
26028         [BZ #14132]
26029         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26030         instead of INTVARDEF.
26031         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26032         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26033         rtld_hidden_data_def instead of INTVARDEF.
26034         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26035         * elf/dl-deps.c (expand_dst): Likewise.
26036         * elf/dl-load.c (_dl_dst_count): Likewise.
26037         (_dl_dst_substitute): Likewise.
26038         (decompose_rpath): Likewise.
26039         (_dl_init_paths): Likewise.
26040         (open_path): Likewise.
26041         (_dl_map_object): Likewise.
26042         * elf/rtld.c (dl_main): Likewise.
26043         (process_dl_audit): Likewise.
26044         (process_envvars): Likewise.
26045         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26046         Remove declaration.
26047         (__libc_enable_secure): Use rtld_hidden_proto.
26048
26049 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26050
26051         * elf/dl-load.c
26052         (add_path): New function broken out of _dl_rtld_di_serinfo.
26053         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26054
26055 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26056
26057         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26058         parentheses around macro arguments.
26059         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26060         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26061         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26062         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26063         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26064         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26065         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26066         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26067         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26068         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26069         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26070         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26071         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26072         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26073         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26074         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26075         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26076         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26077         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26078         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26079         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26080         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26081         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26082         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26083         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26084         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26085         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26086         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26087         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26088         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26089         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26090         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26091         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26092         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26093         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26094         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26095         Likewise.
26096         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26097         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26098         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26099         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26100         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26101         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26102         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26103         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26104         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26105         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26106         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26107         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26108         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26109         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26110         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26111         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26112         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26113         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26114         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26115         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26116         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26117         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26118         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26119         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26120         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26121         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26122         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26123         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26124         (_FP_FRAC_SRS_1): Likewise.
26125         (_FP_FRAC_CLZ_1): Likewise.
26126         (_FP_MUL_MEAT_1_imm): Likewise.
26127         (_FP_MUL_MEAT_1_wide): Likewise.
26128         (_FP_MUL_MEAT_1_hard): Likewise.
26129         (_FP_SQRT_MEAT_1): Likewise.
26130         (_FP_FRAC_ASSEMBLE_1): Likewise.
26131         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26132         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26133         (__FP_CLZ_2): Likewise.
26134         (_FP_MUL_MEAT_2_wide): Likewise.
26135         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26136         (_FP_MUL_MEAT_2_gmp): Likewise.
26137         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26138         (_FP_SQRT_MEAT_2): Likewise.
26139         (_FP_FRAC_ASSEMBLE_2): Likewise.
26140         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26141         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26142         (_FP_FRAC_CLZ_4): Likewise.
26143         (_FP_MUL_MEAT_4_wide): Likewise.
26144         (_FP_MUL_MEAT_4_gmp): Likewise.
26145         (_FP_SQRT_MEAT_4): Likewise.
26146         (_FP_FRAC_ASSEMBLE_4): Likewise.
26147         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26148         * soft-fp/op-common.h (_FP_CMP): Likewise.
26149         (_FP_CMP_EQ): Likewise.
26150         (_FP_CMP_UNORD): Likewise.
26151         (_FP_TO_INT): Likewise.
26152         (_FP_FROM_INT): Likewise.
26153         [!__FP_CLZ] (__FP_CLZ): Likewise.
26154         (_FP_DIV_HELP_imm): Likewise.
26155         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26156         Likewise.
26157         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26158         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26159         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26160         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26161         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26162         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26163         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26164         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26165         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26166         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26167         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26168         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26169         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26170         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26171         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26172         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26173         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26174         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26175         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26176         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26177         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26178         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26179         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26180         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26181         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26182         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26183         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26184         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26185         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26186         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26187         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26188         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26189         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26190         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26191         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26192         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26193         (FP_UNPACK_RAW_SP): Likewise.
26194         (FP_PACK_RAW_S): Likewise.
26195         (FP_PACK_RAW_SP): Likewise.
26196         (FP_UNPACK_S): Likewise.
26197         (FP_UNPACK_SP): Likewise.
26198         (FP_UNPACK_SEMIRAW_S): Likewise.
26199         (FP_UNPACK_SEMIRAW_SP): Likewise.
26200         (FP_PACK_S): Likewise.
26201         (FP_PACK_SP): Likewise.
26202         (FP_PACK_SEMIRAW_S): Likewise.
26203         (FP_PACK_SEMIRAW_SP): Likewise.
26204         (_FP_SQRT_MEAT_S): Likewise.
26205         (FP_CMP_S): Likewise.
26206         (FP_CMP_EQ_S): Likewise.
26207         (FP_CMP_UNORD_S): Likewise.
26208         (FP_TO_INT_S): Likewise.
26209         (FP_FROM_INT_S): Likewise.
26210
26211         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26212
26213         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26214         (FP_EX_INVALID_IMZ): Likewise.
26215         (FP_EX_INVALID_IMZ_FMA): Likewise.
26216         (FP_EX_INVALID_ISI): Likewise.
26217         (FP_EX_INVALID_ZDZ): Likewise.
26218         (FP_EX_INVALID_IDI): Likewise.
26219         (FP_EX_INVALID_SQRT): Likewise.
26220         (FP_EX_INVALID_CVI): Likewise.
26221         (FP_EX_INVALID_VC): Likewise.
26222         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26223         "invalid" exceptions.
26224         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26225         (_FP_ADD_INTERNAL): Likewise.
26226         (_FP_MUL): Likewise.
26227         (_FP_FMA): Likewise.
26228         (_FP_DIV): Likewise.
26229         (_FP_CMP_CHECK_NAN): Likewise.
26230         (_FP_SQRT): Likewise.
26231         (_FP_TO_INT): Likewise.
26232         (FP_EXTEND): Likewise.
26233
26234 2014-10-09  Allan McRae  <allan@archlinux.org>
26235
26236         * po/fr.po: Update French translation from translation project.
26237
26238 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26239
26240         [BZ #14132]
26241         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26242         of INTDEF.
26243         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26244         (__cxa_atexit): Use libc_hidden_proto.
26245         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26246
26247         [BZ #14132]
26248         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26249         declaration.
26250         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26251         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26252         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26253         [!_ISOMAC] (__iswctype_internal): Likewise.
26254         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26255         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26256         alias.
26257         (fcntl): Remove __fcntl_internal alias.
26258         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26259         __connect_internal alias.
26260         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26261         Likewise.
26262
26263         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26264         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26265         FP_DENORM_ZERO.
26266         (_FP_CHECK_FLUSH_ZERO): New macro.
26267         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26268         (_FP_CMP): Likewise.
26269         (_FP_CMP_EQ): Likewise.
26270         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26271         FP_DENORM_ZERO.
26272         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26273         (FP_TRUNC): Likewise.
26274
26275         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26276         treated as invalid conversion, not as normal exponent.
26277
26278         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26279         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26280         (_FP_CMP_EQ): Likewise.
26281         (_FP_CMP_UNORD): Likewise.
26282         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26283         (FP_CMP_EQ_D): Likewise.
26284         (FP_CMP_UNORD_D): Likewise.
26285         * soft-fp/extended.h (FP_CMP_E): Likewise.
26286         (FP_CMP_EQ_E): Likewise.
26287         (FP_CMP_UNORD_E): Likewise.
26288         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26289         (FP_CMP_EQ_Q): Likewise.
26290         (FP_CMP_UNORD_Q): Likewise.
26291         * soft-fp/single.h (FP_CMP_S): Likewise.
26292         (FP_CMP_EQ_S): Likewise.
26293         (FP_CMP_UNORD_S): Likewise.
26294         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26295         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26296         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26297         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26298         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26299         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26300         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26301         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26302         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26303         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26304         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26305         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26306         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26307         to FP_CMP_Q.
26308         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26309         FP_CMP_Q.
26310         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26311         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26312         FP_CMP_EQ_Q.
26313         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26314         FP_CMP_Q.
26315         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26316         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26317         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26318         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26319         FP_CMP_EQ_Q.
26320         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26321         FP_CMP_Q.
26322         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26323         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26324         FP_CMP_EQ_Q.
26325         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26326         FP_CMP_Q.
26327         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26328         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26329         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26330         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26331         FP_CMP_EQ_Q.
26332
26333         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26334         a subnormal result, set the underflow exception if trapping on
26335         underflow is enabled.
26336         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26337         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26338         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26339         redefine to 0.
26340         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26341         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26342         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26343         * soft-fp/extendxftf2.c (__extendxftf2): Use
26344         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26345
26346         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26347         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26348         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26349         FP_HANDLE_EXCEPTIONS.
26350         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26351         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26352         FP_HANDLE_EXCEPTIONS.
26353         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26354         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26355         FP_HANDLE_EXCEPTIONS.
26356         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26357         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26358         FP_HANDLE_EXCEPTIONS.
26359
26360 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26361
26362         [BZ #14132]
26363         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26364         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26365         use INTUSE.
26366         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26367         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26368         Remove alias.
26369         (__adjtimex): Define using libc_hidden_ver.
26370         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26371         Remove declaration.
26372         (ntp_gettime): Call __adjtimex directly.
26373         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26374         Remove declaration.
26375         (ntp_gettimex): Call __adjtimex directly.
26376         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26377         __adjtimex_internal alias.
26378
26379 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26380
26381         [BZ #17460]
26382         * nscd/nscd.c (more_help): Rewrite list of tables collection
26383         using xstrdup and asprintf.
26384
26385         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26386
26387 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26388             Roland McGrath  <roland@hack.frob.com>
26389
26390         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26391         (do_lookup_unique): ... local function 'enter' here; update callers.
26392
26393 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26394
26395         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26396         compat_symbol calls on [SHARED].
26397         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26398         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26399         Remove.
26400         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26401         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26402         (oldsetrlimit): Remove.
26403         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26405         (lchown): New syscall entry.
26406         (oldsetrlimit): Remove.
26407         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26408         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26409         (oldsetrlimit): Remove.
26410         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26411
26412         [BZ #14138]
26413         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26414         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26415         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26416         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26417         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26418         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26419         (fchown): Likewise.
26420         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26421         (fchown): Likewise.
26422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26423         Likewise.
26424
26425 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26426
26427         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26428         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26429         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26430         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26431         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26432         Likewise.
26433         (__old_sem_post): Likewise.
26434
26435 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26436
26437         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26438         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26439         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26440         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26441         Use INLINE_VSYSCALL macro.
26442         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26443         __vdso_clock_gettime.
26444         * sysdeps/unix/sysv/linux/tile/init-first.c
26445         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26446         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26447         __vdso_clock_gettime.
26448
26449         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26450         to set up frame more cleanly.
26451
26452         * sysdeps/tile/memcmp.c: New file.
26453
26454         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26455
26456         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26457         * sysdeps/tile/tilegx/strcasestr.c: New file.
26458         * sysdeps/tile/tilegx/strnlen.c: New file.
26459         * sysdeps/tile/tilegx/strstr.c: New file.
26460
26461         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26462
26463 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26464
26465         * nptl/tst-setuid3.c: Write errors to stdout.
26466
26467 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26468
26469         * elf/dl-deps.c
26470         (preload): New functions broken out of _dl_map_object_deps.
26471         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26472
26473 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26474
26475         [BZ #14138]
26476         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26477         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26478
26479 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26480
26481         * sysdeps/mips/strcmp.S: New.
26482
26483 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26484
26485         [BZ #14138]
26486         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26487         (linkat): Likewise.
26488         (mkdirat): Likewise.
26489         (readlinkat): Likewise.
26490         (renameat): Likewise.
26491         (symlinkat): Likewise.
26492         (unlinkat): Likewise.
26493         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26494         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26495         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26496         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26497         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26498         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26499         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26500
26501 2014-09-30  Will Newton  <will.newton@linaro.org>
26502
26503         * math/math.h: Define long double math functions if
26504         _LIBC_TEST is defined.
26505         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26506
26507         * localedata/Makefile: Move assignment to tests-special
26508         into an ifdef testing run-built-tests.
26509         * timezone/Makefile: Likewise.
26510
26511 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26512
26513         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26514         with $(BASH) not $(SHELL).
26515
26516 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26517             Matthew LeGendre  <legendre1@llnl.gov>
26518
26519         [BZ #17411]
26520         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26521         l_reloc_result.
26522
26523 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26524
26525         * stdio-common/printf_fp.c
26526         (hack_digit): New function, broken out of ...
26527         (__printf_fp): ... local function here.  Update call sites.
26528         hack_digit now takes an additional parameter that is a pointer
26529         to a struct of the referenced locals.  Those locals moved inside
26530         the struct and references updated.
26531
26532 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26533
26534         * aclocal.m4: Require autoconf 2.69.
26535         * configure: Regenerated.
26536         * sysdeps/aarch64/configure: Likewise.
26537         * sysdeps/alpha/configure: Likewise.
26538         * sysdeps/arm/armv7/configure: Likewise.
26539         * sysdeps/arm/configure: Likewise.
26540         * sysdeps/ia64/configure: Likewise.
26541         * sysdeps/mach/configure: Likewise.
26542         * sysdeps/mips/configure: Likewise.
26543         * sysdeps/s390/configure: Likewise.
26544         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26546
26547         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26548         file.
26549         * sysdeps/ia64/configure.ac: Likewise.
26550
26551 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26552
26553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26554         specify symbol version for ld.so.  Do not include entry for
26555         libpthread.
26556         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26557         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26558         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26559
26560         [BZ #14171]
26561         * Makeconfig [$(build-shared) = yes]
26562         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26563         makefiles.
26564         [$(build-shared) = yes && $(soversions.mk-done) = t]
26565         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26566         [$(build-shared) = yes && $(soversions.mk-done) = t]
26567         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26568         to Makerules.
26569         [$(build-shared) = yes && $(soversions.mk-done) = t]
26570         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26571         here.
26572         [$(build-shared) = yes && $(soversions.mk-done) = t]
26573         (common-generated): Don't append gnu/lib-names.h and
26574         gnu/lib-names.stmp here.
26575         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26576         (lib-names-h-abi): New variable.
26577         [$(build-shared) = yes && $(soversions.mk-done) = t]
26578         (lib-names-stmp-abi): Likewise.
26579         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26580         abi-variants] (before-compile): Append
26581         $(common-objpfx)$(lib-names-h-abi).
26582         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26583         abi-variants] (common-generated): Append gnu/lib-names.h.
26584         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26585         abi-variants] (install-others-nosubdir): Depend on
26586         $(inst_includedir)/$(lib-names-h-abi).
26587         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26588         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26589         [$(build-shared) = yes && $(soversions.mk-done) = t]
26590         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26591         [$(build-shared) = yes && $(soversions.mk-done) = t]
26592         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26593         [$(build-shared) = yes && $(soversions.mk-done) = t]
26594         (common-generated): Append $(lib-names-h-abi) and
26595         $(lib-names-stmp-abi).
26596         * scripts/lib-names.awk: Do not handle multi being set.
26597         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26598         Remove variable.
26599         (abi-lp64_be-ld-soname): Likewise.
26600         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26601         Likewise.
26602         (abi-hard-ld-soname): Likewise.
26603         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26604         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26605         Remove variable.
26606         (abi-o32_hard-ld-soname): Likewise.
26607         (abi-o32_soft_2008-ld-soname): Likewise.
26608         (abi-o32_hard_2008-ld-soname): Likewise.
26609         (abi-n32_soft-ld-soname): Likewise.
26610         (abi-n32_hard-ld-soname): Likewise.
26611         (abi-n32_soft_2008-ld-soname): Likewise.
26612         (abi-n32_hard_2008-ld-soname): Likewise.
26613         (abi-n64_soft-ld-soname): Likewise.
26614         (abi-n64_hard-ld-soname): Likewise.
26615         (abi-n64_soft_2008-ld-soname): Likewise.
26616         (abi-n64_hard_2008-ld-soname): Likewise.
26617         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26618         Likewise.
26619         (abi-64-v2-ld-soname): Likewise.
26620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26621         ld.so entries.
26622         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26623         variable.
26624         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26625         entry.
26626         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26627         variable.
26628         (abi-64-ld-soname): Likewise.
26629         (abi-x32-ld-soname): Likewise.
26630         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26631         entry.
26632         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26633
26634 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26635
26636         [BZ #14138]
26637         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26638         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26639         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26640         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26641         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26642         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26643         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26644         syscall entry for GLIBC_2.2 symbol version.
26645         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26646         Likewise.
26647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26648         (setrlimit): Likewise.
26649         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26650         Likewise.
26651
26652 2014-09-23  Will Newton  <will.newton@linaro.org>
26653
26654         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26655         _LINUX_ARM_SYSDEP_H include guard too.
26656         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26657         define.
26658
26659 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26660
26661         * sysdeps/unix/sysv/linux/eventfd.c:
26662         Make first argument unsigned.
26663         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26664         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26665
26666 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26667
26668         [BZ #16852]
26669         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26670         * socket/sys/socket.h: Likewise.
26671         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26672
26673 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26674
26675         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26676
26677 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26678
26679         * time/tst-ftime.c: New test.
26680         * time/Makefile (tests): Add tst-ftime.
26681
26682 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26683
26684         * soft-fp/extended.h: Fix comment formatting.
26685         * soft-fp/op-1.h: Likewise.
26686         * soft-fp/op-2.h: Likewise.
26687         * soft-fp/op-4.h: Likewise.
26688         * soft-fp/op-8.h: Likewise.
26689         * soft-fp/op-common.h: Likewise.
26690         * soft-fp/soft-fp.h: Likewise.
26691
26692         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26693
26694 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26695
26696         [BZ #6652]
26697         * Makeconfig (soversions-default-setname): Remove variable.
26698         ($(common-objpfx)soversions.i): Don't pass default_setname to
26699         soversions.awk.
26700         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26701         oldest_abi to abi-versions.awk.
26702         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26703         * config.make.in (oldest-abi): Remove variable.
26704         * configure.ac (--enable-oldest-abi): Remove configure option.
26705         * configure: Regenerated.
26706         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26707         text.
26708         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26709         * scripts/soversions.awk: Do not handle default_setname variable.
26710         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26711         variable.
26712         * sysdeps/mach/hurd/configure: Regenerated.
26713         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26714         variable.
26715         * sysdeps/unix/sysv/linux/configure: Regenerated.
26716
26717 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26718
26719         * elf/Makefile (CFLAGS-interp.c): Remove.
26720         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26721         path string.
26722         * elf/interp.c: Include generated runtime-linker.h
26723
26724         * Makerules (lib%.so): Don't include $(+interp) in
26725         prerequisites.
26726         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26727         * dlfcn/eval.c: Remove file.
26728
26729         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26730         macros.
26731
26732         [BZ #17266]
26733         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26734         4.2 and newer.
26735
26736         [BZ #17370]
26737         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26738
26739 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26740             Jakub Jelinek  <jakub@redhat.com>
26741
26742         [BZ #17266]
26743         * libio/stdio.h: Check definition of __fortify_function
26744         instead of __extern_always_inline to include bits/stdio2.h.
26745         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26746         check if __extern_always_inline is defined.
26747         [__USE_MISC || __USE_XOPEN]: Likewise.
26748         [__USE_ISOC99] Likewise.
26749         * misc/sys/cdefs.h (__fortify_function): Define only if
26750         __extern_always_inline is defined.
26751         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26752         __extern_always_inline and __extern_inline only for g++-4.3
26753         and newer or a compatible gcc.
26754
26755 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26756
26757         [BZ #17371]
26758         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26759         last change to handle zero prefix length.
26760
26761 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26762
26763         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26764         _SC_REGEX_VERSION.
26765
26766         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26767         _POSIX_RAW_SOCKETS.
26768
26769 2014-09-13  Allan McRae  <allan@archlinux.org>
26770
26771         * po/ru.po: Update Russian translation from translation project.
26772
26773 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26774
26775         * locale/programs/locale.c (show_locale_vars): Inline local function
26776         into its sole call site.  Clean up some style nits.
26777         (print_item): New function, broken out of ...
26778         (show_info): ... local function here.  Clean up style nits.
26779
26780         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26781         out of ...
26782         (set_class_defaults): ... local function set_default here.
26783         Define set_default as a macro locally to pass constant parameters.
26784         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26785         rather than a shared local.
26786
26787         * stdlib/rpmatch.c (try): New function, broken out of ...
26788         (rpmatch): ... local function here.  Also, prototypify definition.
26789
26790 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26791
26792         * scripts/soversions.awk: Do not handle configuration names.
26793         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26794         vendor and os variables to soversions.awk.
26795         * configure.ac: Do not modify gnu-* host_os.
26796         * configure: Regenerated
26797         * shlib-versions: Remove first column with configuration names.
26798         * nptl/shlib-versions: Likewise.
26799         * nptl_db/shlib-versions: Likewise.
26800         * sysdeps/hppa/shlib-versions: Likewise.
26801         * sysdeps/m68k/shlib-versions: Likewise.
26802         * sysdeps/mach/hurd/shlib-versions: Likewise.
26803         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26804         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26805         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26806         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26807         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26808         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26809         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26810         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26812         Likewise.
26813         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26814         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26815         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26816         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26817         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26818         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26819         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26820         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26821
26822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26823         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26825         Regenerated.
26826         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26828         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26829
26830         * shlib-versions: Remove OS-specific entries.  Moved to files in
26831         sysdeps.
26832         * sysdeps/mach/hurd/shlib-versions: New file.
26833         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26834
26835         * nptl/shlib-versions: Remove architecture-specific entries.
26836         Moved to files in sysdeps.
26837         * shlib-versions: Likewise.
26838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26839         file.
26840         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26841         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26842         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26843         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26844
26845         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26846         (UDP_NO_CHECK6_RX): Likewise.
26847
26848 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26849
26850         * sysdeps/posix/sysconf.c (__sysconf): Spell
26851         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26852
26853 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26854
26855         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26856         loading.
26857         * iconv/Versions (__gconv_transliterate): Export for use from
26858         gconv modules.
26859         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26860         (struct __gconv_trans_data, __gconv_trans_fct,
26861         __gconv_trans_context_fct, __gconv_trans_query_fct,
26862         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26863         definitions.
26864         (struct __gconv_step_data): Remove __trans member.
26865         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26866         longer hidden.  Remove unused trans_data argument.
26867         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26868         (__gconv_translit_find): Remove declaration.
26869         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26870         prototype.
26871         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26872         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26873         trans_data argument.  Add hidden definition.
26874         (__gconv_translit_find): Remove.
26875         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26876         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26877         * iconv/skeleton.c: Remove transliteration initialization.
26878         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26879         __gconv_step_data initialization.
26880         * libio/iofwide.c (__libio_translit_): Remove.
26881         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26882         * wcsmbs/btowc.c (__btowc): Likewise.
26883         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26884         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26885         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26886         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26887         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26888         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26889         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26890         * wcsmbs/wctob.c (wctob): Likewise.
26891
26892 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26893
26894         [BZ #16194]
26895         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26896         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26897         register usage.
26898         * sysdeps/x86/Makefile: Adjust.
26899
26900 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26901             Roland McGrath  <roland@hack.frob.com>
26902
26903         * locale/weight.h: Add include guard.
26904         (findidx): Make static rather than auto; take new parameters
26905         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26906         * locale/weightwc.h: Likewise.
26907         * posix/fnmatch_loop.c
26908         (FCT): Change type of EXTRA from int32_t to wint_t.
26909         Don't include either header inside the function.
26910         Call FINDIDX rather than findidx, and pass new arguments.
26911         #undef FINDIDX at the end of the file.
26912         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26913         FINDIDX before including fnmatch_loop.c for the non-wide version.
26914         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26915         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26916         for the wide version.
26917         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26918         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26919         Pass new arguments to findidx.
26920         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26921         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26922         Don't #include it inside the function.  Pass new arguments to findidx.
26923         * posix/regex_internal.h
26924         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26925         (re_string_elem_size_at): Don't #include it inside the function.
26926         Pass new arguments to findidx.
26927         * string/strcoll_l.c: #include WEIGHT_H at top level.
26928         (get_next_seq): Don't #include it inside the function.
26929         Pass new arguments to findidx.
26930         (get_next_seq_nocache): Likewise.
26931         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26932         (STRXFRM): Don't #include it inside the function.
26933         Pass new arguments to findidx.
26934
26935 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26936
26937         [BZ #17344]
26938         * malloc/malloc.c (unlink): Turn asserts into a call to
26939         malloc_printerr.
26940
26941 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26942
26943         [BZ #17370]
26944         * libio/wfileops (do_ftell_wide): Free OUT.
26945
26946 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26947
26948         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26949
26950 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26951
26952         [BZ #17363]
26953         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26954         group if the current group is empty.
26955
26956 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26957
26958         * benchtests/bench-memset.c (test_main): Add more test from size
26959         from 32 to 512 bytes.
26960         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26961         Add POWER8 memset object.
26962         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26963         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26964         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26965         implementation.
26966         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26967         Likewise.
26968         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26969         multiarch POWER8 memset optimization.
26970         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26971         POWER8 memset optimization.
26972
26973         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26974         Remove bzero multiarch objects.
26975         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26976         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26977         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26978         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26979         Remove define.
26980         [__bzero]: Redefine to specific name.
26981         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26982         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26983         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26984         define.
26985         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26986         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26987
26988 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26989
26990         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26991         warnings into errors.
26992
26993         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26994         __cxa_thread_atexit_impl prototype.
26995
26996 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26997
26998         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26999         Fix capitalization of error message.
27000
27001 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27002
27003         * sysdeps/mips/preconfigure: Modify ABI tests.
27004
27005 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27006
27007         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27008
27009 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27010             Carlos O'Donell  <carlos@systemhalted.org>
27011
27012         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27013         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27014         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27015         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27016         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27017         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27018         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27019         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27020         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27021         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27022         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27023         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27024         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27025         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27026         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27027         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27028         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27029         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27030         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27031         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27032         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27033         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27034         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27035         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27036         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27037         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27038         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27039         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27040         Deconditionalize the code that was previously under [RESET_PID].
27041         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27042         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27043         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27044         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27045         include sysdep.h.
27046
27047 2014-09-08  Allan McRae  <allan@archlinux.org>
27048
27049         * version.h (RELEASE): Set to "development".
27050         (VERSION): Set to "2.20.90"
27051
27052 2014-09-07  Allan McRae  <allan@archlinux.org
27053
27054         * version.h (RELEASE): Set to "stable".
27055         (VERSION): Set to "2.20"
27056         * include/features.h (__GLIBC_MINOR__): Set to 20.
27057
27058         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27059         Liebler.
27060
27061         * po/ko.po: Update Korean translation from translation project.
27062
27063 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27064
27065         [BZ #17354]
27066         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27067         macro for handling signed relocations.
27068
27069 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27070
27071         [BZ #17325]
27072         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27073         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27074         assert.
27075         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27076         * iconvdata/ibm935.c (BODY): Likewise.
27077         * iconvdata/ibm937.c (BODY): Likewise.
27078         * iconvdata/ibm939.c (BODY): Likewise.
27079         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27080         assert.
27081         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27082         script.
27083         * iconvdata/run-iconv-test.sh: New test loop for checking for
27084         decoder crashers.
27085
27086 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27087
27088         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27089         libm_hidden_ver.
27090
27091 2014-09-01  Allan McRae  <allan@archlinux.org>
27092
27093         * po/eo.po: Update Esperanto translation from translation project.
27094
27095         * po/ca.po: Update Catalan translation from translation project.
27096
27097 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27098
27099         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27100         __proc_dostop call.
27101
27102 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27103
27104         [BZ #17319]
27105         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27106         to call set_thread_area instead of hand written asm.
27107         (__NR_set_thread_area): Removed define.
27108         (TLS_FLAG_WRITABLE): Likewise.
27109         (__ASSUME_SET_THREAD_AREA): Remove check.
27110         (TLS_EBX_ARG): Remove define.
27111         (TLS_LOAD_EBX): Likewise.
27112
27113 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27114
27115         Simplify atomicity of socket creation in bind.
27116
27117         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27118         looking up the name after linking the file.
27119
27120 2014-08-27  Allan McRae  <allan@archlinux.org>
27121
27122         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27123
27124 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27125
27126         [BZ #17187]
27127         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27128         trans_compare, open_translit, __gconv_translit_find):
27129         Remove module loading code.
27130
27131 2014-08-26  Allan McRae  <allan@archlinux.org>
27132
27133         * po/vi.po: Update Vietnamese translation from translation project.
27134
27135         * po/uk.po: Update Ukrainian translation from translation project.
27136
27137         * po/fr.po: Update French translation from translation project.
27138
27139         * po/ru.po: Update Russian translation from translation project.
27140
27141         * po/pl.po: Update Polish translation from translation project.
27142
27143         * po/cs.po: Update Czech translation from translation project.
27144
27145         * po/de.po: Update German translation from translation project.
27146
27147         * po/bg.po: Update Bulgarian translation from translation project.
27148
27149         * po/sv.po: Update Sweedish translation from translation project.
27150
27151         * po/nl.po: Update Dutch translation from translation project.
27152
27153         * po/es.po: Update Spanish translation from translation project.
27154
27155 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27156
27157         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27158
27159         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27160         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27161         (CPPFLAGS-iconvconfig): Likewise.
27162         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27163
27164         * include/libc-symbols.h: Remove unnecessary check for
27165         NOT_IN_libc.
27166         * nptl/pthreadP.h: Likewise.
27167         * sysdeps/aarch64/setjmp.S: Likewise.
27168         * sysdeps/alpha/setjmp.S: Likewise.
27169         * sysdeps/arm/sysdep.h: Likewise.
27170         * sysdeps/i386/setjmp.S: Likewise.
27171         * sysdeps/m68k/setjmp.c: Likewise.
27172         * sysdeps/posix/getcwd.c: Likewise.
27173         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27174         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27175         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27176         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27177         * sysdeps/sh/sh3/setjmp.S: Likewise.
27178         * sysdeps/sh/sh4/setjmp.S: Likewise.
27179         * sysdeps/unix/alpha/sysdep.h: Likewise.
27180         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27181         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27182         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27183         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27186         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27187         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27188         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27189         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27190         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27191         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27192         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27193         * sysdeps/x86_64/setjmp.S: Likewise.
27194
27195 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27196
27197         [BZ #17263]
27198         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27199         <stdint.h>.
27200         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27201         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27202
27203 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27204
27205         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27206
27207         [BZ #17262]
27208         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27209         and __x86_64__ when disabling x87 inline functions.
27210
27211 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27212
27213         [BZ #17259]
27214         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27215         asm statement with __cpuid_count.
27216
27217 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27218
27219         * configure.ac: Change __ehdr_start code to dereference the struct.
27220         Run readelf on the output to look for relocations.
27221         * configure: Regenerated.
27222
27223 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27224
27225         [BZ #17261]
27226         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27227         value to 0.
27228         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27229
27230 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27231
27232         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27233
27234 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27235
27236         [BZ #16892]
27237         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27238         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27239
27240 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27241
27242         * malloc/malloc.c: Fix typo in comment.
27243
27244 2014-08-09  Allan McRae  <allan@archlinux.org>
27245
27246         * Regenerate libc.po.
27247
27248 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27249
27250         * intl/tst-gettext2.sh: Check every lang file for creation.
27251
27252 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27253
27254         * sysdeps/aarch64/fpu/math_private.h
27255         (libc_feholdsetround_noex_aarch64_ctx): New function.
27256
27257 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27258
27259         * sysdeps/arm/armv6/strcpy.S (strcpy):
27260         Fix performance issue in misaligned cases.
27261
27262 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27263
27264         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27265         Move definition from termios.h.
27266         (struct termio): Likewise.
27267         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27268         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27269         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27270         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27271         Likewise.
27272         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27273         Move definition to ioctl-types.h
27274         (struct termio): Likewise.
27275         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27276         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27277         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27278         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27279         Likewise.
27280
27281 2014-08-05  Richard Henderson  <rth@redhat.com>
27282
27283         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27284         exceptions.
27285         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27286         Add fraiseexcpt.
27287         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27288         Use __feraiseexcept.
27289         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27290         Protect libm symbols with IS_IN_libm.
27291
27292         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27293
27294 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27295
27296         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27297
27298 2014-08-04  Will Newton  <will.newton@linaro.org>
27299
27300         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27301         file.
27302
27303 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27304
27305         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27306         variants for each function.
27307
27308 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27309
27310         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27311         appended ...
27312         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27313         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27314         appended ...
27315         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27316         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27317         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27318         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27319         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27320         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27321         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27322         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27323         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27324         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27325         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27326         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27327         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27328         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27329         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27330         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27331         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27332         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27333         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27334         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27335         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27336         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27337         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27338         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27339         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27340         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27341         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27342         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27343         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27344         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27345         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27346         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27347         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27348         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27349         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27350         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27351         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27352         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27353         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27354         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27355         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27356         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27357         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27358         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27359         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27360         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27361         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27362         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27363         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27364         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27365         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27366         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27367         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27368         Update #include.
27369         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27370         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27371
27372 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27373
27374         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27375         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27376         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27377         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27378         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27379         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27380
27381 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27382
27383         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27384         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27385         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27386         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27387
27388 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27389
27390         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27391         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27392         (__libc_vfork): Define function under this name.
27393         (__vfork): Define as an alias.
27394         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27395         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27396
27397 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27398
27399         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27400         that was previously under [RESET_PID].
27401         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27402
27403 2014-08-04  Andreas Schwab  <schwab@suse.de>
27404
27405         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27406
27407 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27408
27409         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27410         (main): Likewise.
27411
27412 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27413
27414         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27415
27416 2014-08-01  Richard Henderon  <rth@redhat.com>
27417
27418         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27419         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27420         typo in exact zero test.
27421         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27422         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27423         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27424
27425 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27426
27427         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27428         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27429         * sysdeps/arm/sysdep.h: ... here.
27430         [!__ASSEMBLER__]: Include <stdint.h>.
27431
27432 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27433
27434         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27435         (HAVE_WCTYPE_H): Likewise.
27436         (HAVE_ISWCTYPE): Likewise.
27437         (ENABLE_NLS): Likewise.
27438         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27439         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27440
27441         * posix/regex_internal.c: Check if DEBUG is defined and is
27442         set.
27443
27444         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27445         (HAVE_MBSRTOWCS): Likewise.
27446         * posix/fnmatch.c: Include string.h unconditionally.
27447
27448 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27449
27450         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27451         reversal.
27452
27453 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27454
27455         * sysdeps/generic/safe-fatal.h: New file.
27456         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27457         * nptl/forward.c: Include it.
27458         (__pthread_unwind): Use __safe_fatal as default action, rather
27459         than a bogus use of INTERNAL_SYSCALL that could never work.
27460
27461         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27462         * configure.ac (libc_cv_builtin_trap): New test.
27463         * configure: Regenerated.
27464         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27465         (ABORT_INSTRUCTION): Define using __builtin_trap.
27466
27467         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27468         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27469         * sysdeps/nptl/nptl-signals.h: New file.
27470         * nptl/pthreadP.h: Include <nptl-signals.h>.
27471
27472 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27473
27474         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27475         (ONE_DIRECTION): Define.
27476         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27477         (ONE_DIRECTION): Define.
27478         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27479         (ONE_DIRECTION): Define.
27480
27481 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27482
27483         * sysdeps/s390/Makefile: Delete file.
27484         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27485         * sysdeps/s390/__longjmp.c: Delete file.
27486         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27487         Remove fields __flags and __reserved.
27488         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27489         and add versioning.
27490         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27491         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27492         * sysdeps/s390/rtld-setjmp.S: Likewise.
27493         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27494         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27495         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27496         * sysdeps/s390/s390-32/setjmp.S: ... here.
27497         Add versioning.
27498         (__sigsetjmp): Remove setting __flags field.
27499         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27500         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27501         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27502         * sysdeps/s390/s390-64/setjmp.S: ... here.
27503         Add versioning.
27504         (__sigsetjmp): Remove setting __flags field.
27505         * sysdeps/s390/setjmp.S: Delete file.
27506         * sysdeps/s390/sigjmp.c: Likewise.
27507         * sysdeps/s390/v1-longjmp.c: Likewise.
27508         * sysdeps/s390/v1-setjmp.h: Likewise.
27509         * sysdeps/s390/v1-sigjmp.c: Likewise.
27510         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27511         Remove v1-longjmp_chk.
27512         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27513         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27514         Include debug/longjmp_chk.c and add versioning.
27515         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27516         Include nptl/pt-longjmp.c and add versioning.
27517         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27518         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27519         Include __longjmp.c.
27520         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27521         Move to ...
27522         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27523         (__getcontext): Remove setting __flags field.
27524         Add versioning.
27525         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27526         Don't restore upper high grps.
27527         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27528         Likewise.
27529         (__swapcontext): Remove setting uc_flags field.
27530         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27531         Delete file.
27532         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27533         Include __longjmp.c.
27534         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27535         Move to ...
27536         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27537         (__getcontext): Remove setting __flags field.
27538         Add versioning.
27539         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27540         (__swapcontext): Remove setting uc_flags field.
27541         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27542         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27543         Remove fields uc_high_gprs and __reserved.
27544         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27545         New file with reverted content.
27546         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27547         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27548         Regenerated.
27549         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27550         Regenerated.
27551
27552 2014-07-31  Andreas Schwab  <schwab@suse.de>
27553
27554         * config.h.in (HAVE_IFUNC): Define to 0.
27555         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27556         definedness.
27557
27558 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27559
27560         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27561         memmove-avx-unaligned, memcpy-avx-unaligned and
27562         mempcpy-avx-unaligned.
27563         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27564         Add tests for AVX memcpy functions.
27565         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27566         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27567         memcpy_chk.
27568         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27569         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27570         memmove_chk.
27571         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27572         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27573         mempcpy_chk.
27574         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27575         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27576         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27577
27578 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27579
27580         [BZ #17213]
27581         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27582         powerpc64le.
27583
27584 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27585
27586         [BZ #16839]
27587         * manual/llio.texi: Add section about open file description locks.
27588         * manual/examples/ofdlocks.c: Example of open file description
27589         lock usage.
27590         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27591         F_OFD_SETLK, and F_OFD_SETLKW.
27592
27593 2014-07-23  Allan McRae  <allan@archlinux.org>
27594
27595         * po/es.po: Update Spanish translation from translation project.
27596
27597 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27598
27599         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27600
27601 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27602
27603         [BZ #17078]
27604         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27605         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27606         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27607
27608 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27609
27610         [BZ #17088]
27611         * math/fesetenv.c (__fesetenv)
27612         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27613         * math/feupdateenv.c (__feupdateenv)
27614         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27615
27616         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27617         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27618         (__ASSUME_SOCKETCALL): Do not define.
27619
27620         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27621         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27622         (__ASSUME_SOCKETCALL): Do not define.
27623         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27624         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27625         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27626         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27627         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27628         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27629         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27630         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27631
27632         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27633         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27634         (__ASSUME_SOCKETCALL): Do not define.
27635         (__ASSUME_IPC64): Define unconditionally.
27636         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27637         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27638         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27639         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27640         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27641         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27642         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27643         Likewise.
27644
27645         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27646         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27647         (__ASSUME_SOCKETCALL): Do not define.
27648         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27649         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27650         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27651         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27652         (__ASSUME_REQUEUE_PI): Define unconditionally.
27653         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27654         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27655         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27656         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27657         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27658         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27659
27660         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27661         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27662         (__ASSUME_SOCKETCALL): Do not define.
27663         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27664         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27665         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27666         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27667         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27668         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27669
27670         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27671         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27672         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27673         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27674         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27675         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27676         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27677         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27678         (__ASSUME_GETCPU_SYSCALL): Likewise.
27679
27680         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27681         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27682         cases for individual architectures.
27683         * sysdeps/gnu/configure: Regenerated.
27684         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27685         LIBC_SLIBDIR_RTLDDIR.
27686         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27687         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27688         LIBC_SLIBDIR_RTLDDIR.
27689         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27691         LIBC_SLIBDIR_RTLDDIR.
27692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27693         Regenerated.
27694         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27695         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27696         file.
27697         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27698         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27699         file.
27700         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27701         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27702         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27703         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27704
27705         * sysdeps/aarch64/shlib-versions: Move to ...
27706         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27707         * sysdeps/alpha/shlib-versions: Move to ...
27708         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27709         * sysdeps/arm/shlib-versions: Move to ...
27710         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27711         * sysdeps/hppa/shlib-versions: Move all contents except for
27712         libgcc_s entry to ...
27713         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27714         entry from ...
27715         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27716         * sysdeps/ia64/shlib-versions: Move to ...
27717         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27718         entry from ...
27719         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27720         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27721         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27722         * sysdeps/microblaze/shlib-versions: Move to ...
27723         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27724         * sysdeps/mips/shlib-versions: Move to ...
27725         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27726         entry from ...
27727         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27728         * sysdeps/tile/shlib-versions: Move to ...
27729         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27730         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27731         from ...
27732         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27733         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27734         entry from ...
27735         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27736
27737 2014-07-17  Will Newton  <will.newton@linaro.org>
27738
27739         * sysdeps/arm/bits/atomic.h
27740         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27741         (__arch_compare_and_exchange_bool_16_int): Likewise.
27742         (__arch_compare_and_exchange_bool_64_int): Likewise.
27743
27744         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27745         into an #else block.
27746
27747 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27748
27749         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27750         just Linux configurations.  Test empirically that the compiler sets
27751         __ARM_EABI__, rather than using the tuple to decide.
27752         * sysdeps/arm/preconfigure: Regenerated.
27753         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27754         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27755         contents appended ...
27756         * sysdeps/arm/configure.ac: ... here.
27757         * sysdeps/arm/configure: Regenerated.
27758
27759 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27760
27761         * nptl/pthread_kill.c: New file.
27762         * nptl/pthread_sigmask.c: New file.
27763         * nptl/pthread_sigqueue.c: New file.
27764
27765         * sysdeps/nptl/lowlevellock.h: New file.
27766         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27767         * sysdeps/nptl/lowlevellock-futex.h: New file.
27768
27769         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27770         Remove dead declarations.
27771
27772 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27773
27774         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27775         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27776         config-cflags-avx2.
27777         * sysdeps/x86_64/configure.ac: Likewise.
27778         * sysdeps/i386/configure: Regenerated.
27779         * sysdeps/x86_64/configure: Likewise.
27780         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27781         memset-avx2 only if config-cflags-avx2 is yes.
27782         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27783         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27784         defined.
27785         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27786         only if HAVE_AVX2_SUPPORT is defined.
27787         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27788
27789 2014-07-14  Alan Modra  <amodra@gmail.com>
27790
27791         [BZ #17153]
27792         * elf/elf.h (DT_PPC64_NUM): Correct value.
27793         * NEWS: Add to fixed bug list.
27794
27795 2014-07-13  Jim Meyering  <meyering@fb.com>
27796
27797         [BZ 17150]
27798         regex: don't deref NULL upon heap allocation failure
27799         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27800         failure in one more place.
27801         To trigger the segfault, configure grep -with-included-regex,
27802         build it, and run these commands:
27803         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27804
27805 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27806
27807         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27808
27809 2014-07-11  Richard Henderson  <rth@redhat.com>
27810
27811         * sysdeps/aarch64/libm-test-ulps: Update.
27812
27813 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27814
27815         [BZ #17135]
27816         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27817         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27818         (__nptl_setxid): Initialize error member.  Call
27819         __nptl_setxid_error.
27820         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27821         * nptl/descr.h (struct xid_command): Add error member.
27822         * nptl/tst-setuid3.c: New file.
27823         * nptl/Makefile (tests): Add it.
27824
27825 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27826
27827         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27828         New define.
27829         (__lll_trylock): Use __lll_base_trylock.
27830         (__lll_cond_trylock): Likewise.
27831
27832 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27833
27834         * nptl/pthread_create.c (start_thread): Use atomic_or and
27835         lll_futex_wake directly rather than lll_robust_dead.
27836         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27837         (lll_robust_dead): Macro removed.
27838         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27839         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27840         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27841         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27842         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27843         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27844         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27845         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27846         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27847         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27848         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27849         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27850         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27851         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27852         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27853
27854         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27855         Use atomic_compare_and_exchange_val_acq directly rather than
27856         lll_robust_trylock.
27857         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27858         (__lll_robust_trylock, lll_robust_trylock): Removed.
27859         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27860         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27861         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27862         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27863         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27864         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27865         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27866         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27867         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27868         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27869         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27870         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27871         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27872         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27873
27874 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27875
27876         * manual/locale.texi (Locale Names): New section documenting
27877         locale name syntax.  Adjust menu and node chaining accordingly.
27878         (Choosing Locale): Reference Locale Names, Locale Categories.
27879         Mention setting LC_ALL=C.  Reflect that name syntax is now
27880         documented.
27881         (Locale Categories): New section title.  Reference Locale Names.
27882         LC_ALL is an environment variable, but not a category.
27883         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27884         description, now in Locale Name.  Reference that section.  Locale
27885         name syntax is now documented.
27886
27887 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27888
27889         [BZ #17137]
27890         * locale/findlocale.c (name_present, valid_locale_name): New
27891         functions.
27892         (_nl_find_locale): Use the loc_name variable to store name
27893         candidates.  Call name_present and valid_locale_name to check and
27894         validate locale names.  Return an error if the locale is invalid.
27895
27896 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27897
27898         * locale/setlocale.c (setlocale): Use strdup for allocating
27899         composite name copy.
27900
27901 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27902
27903         Sync up with gnulib.
27904         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27905         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27906         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27907         and _GL_ARG_NONNULL.
27908         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27909         [!_LIBC]: Include code for Windows and Cygwin.
27910         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27911         Include prototype for int strerror_r.
27912         [!_LIBC] (is_open): New function.
27913         (flush_stdout): New function.
27914         (print_errno_message): Use it.
27915         (error): Likewise.
27916         (error_at_line): Likewise.
27917         (error_tail) Add function attribute macros.  Use
27918         __builtin_expect.
27919
27920         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27921
27922         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27923
27924         * io/ftw.c: Include sys/param.h unconditionally.
27925
27926         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27927
27928         [BZ #17125]
27929         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27930         libc_freeres_ptr.
27931         (freecache): New function to free CACHE on exit.
27932
27933         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27934         initialization.
27935
27936 2014-07-09  David S. Miller  <davem@davemloft.net>
27937
27938         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27939
27940         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27941         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27942         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27943         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27944         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27945         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27946         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27947         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27948         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27949         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27950         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27951         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27952         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27953
27954 2014-07-09  Andreas Schwab  <schwab@suse.de>
27955
27956         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27957         output.
27958         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27959         (do_test): Likewise.
27960
27961         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27962
27963 2014-07-09  Will Newton  <will.newton@linaro.org>
27964
27965         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27966         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27967         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27968         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27969         * sysdeps/hppa/start.S (_start): Likewise.
27970
27971 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27972
27973         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27974
27975         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27976         defined.
27977
27978 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27979
27980         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27981         after checking that it is non-NULL.
27982
27983         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27984
27985 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27986
27987         * sysdeps/powerpc/memmove.c: Remove file.
27988         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27989         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27990         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27991         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27992         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27993         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27994         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27995         string memmove instead of removed powerpc one.
27996
27997         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27998         [weak_alias]: Fix compiler warning due trailing data.
27999         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28000         [weak_alias]: Likewise.
28001         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28002         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28003
28004         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28005         (__libc_ifunc_impl_list): Add memmove functions.
28006
28007 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28008
28009         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28010         Remove code.
28011         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28012         Likewise.
28013         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28014         Likewise.
28015         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28016         Likewise.
28017         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28018         Likewise.
28019         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28020         Likewise.
28021         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28022         Likewise.
28023         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28024         Likewise.
28025         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28026         Likewise.
28027         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28028         Likewise.
28029         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28030         Likewise.
28031         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28032         Likewise.
28033         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28034         Likewise.
28035         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28036         Likewise.
28037         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28038         Likewise.
28039         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28040         Likewise.
28041         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28042         Likewise.
28043
28044 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28045
28046         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28047         to avoid alignment traps in non-cacheable memory.
28048         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28049
28050         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28051         multiarch objects.
28052         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28053         file: multiarch power7 memmove.
28054         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28055         multiarch default memmove.
28056         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28057         multiarch memove for powerpc32/power4.
28058
28059         * string/bcopy.c: Use full path to include memmove.c.
28060         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28061         multiarch objects.
28062         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28063         bcopy for powerpc64.
28064         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28065         bcopy for powerpc64.
28066         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28067         and memmove implementations.
28068         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28069         optimized multiarch memmove for POWER7/powerpc64.
28070         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28071         default multiarch memmove for powerpc64.
28072         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28073         multiarch for powerpc64.
28074         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28075         for POWER7/powerpc64.
28076         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28077         memmove for POWER7/powerpc64.
28078
28079         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28080         glibc default one.
28081
28082         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28083         __ELF_NATIVE_CLASS equal to 64.
28084
28085 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28086
28087         * sysdeps/nptl/lowlevellock.h: File removed.
28088
28089         * NEWS: NPTL is no longer an add-on!
28090         * nptl/internaltypes.h: Moved ...
28091         * sysdeps/nptl/internaltypes.h: ... here.
28092         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28093         * sysdeps/nptl/fork.c: Likewise.
28094         * sysdeps/nptl/gai_misc.h: Likewise.
28095         * sysdeps/nptl/librt-cancellation.c: Likewise.
28096         * sysdeps/nptl/jmp-unwind.c: Likewise.
28097         * sysdeps/nptl/setxid.h: Likewise.
28098         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28099         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28100         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28101         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28102         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28103         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28104         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28105         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28106         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28107         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28108         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28109         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28110         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28111         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28112         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28113         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28114         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28115         * nptl/Makeconfig: Moved ...
28116         * sysdeps/nptl/Makeconfig: ... here.
28117         * nptl/configure: File removed.
28118         * nptl/ANNOUNCE: File removed.
28119         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28120         * sysdeps/unix/sysv/linux/configure: Regenerated.
28121
28122         * nptl/Makefile (routines): Add libc_pthread_init,
28123         libc_multiple_threads, register-atfork and unregister-atfork.
28124         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28125         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28126         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28127         pthread-pi-defines.sym, structsem.sym.
28128         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28129         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28130         [$(subdir) = nptl] (tests): Add tst-setgetname.
28131         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28132         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28133         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28134         [!LIBC_SIGACTION]: Remove aliases.
28135         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28136         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28137         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28138         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28139         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28140         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28141         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28142         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28143         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28144         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28145         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28146         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28147         __libc_allocate_rtsig_private.
28148         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28149         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28150         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28151         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28152         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28153         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28154         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28155         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28156         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28157         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28158         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28159         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28160         * nptl/internaltypes.h: ... here.
28161         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28162         * sysdeps/nptl/jmp-unwind.c: ... here.
28163         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28164         * nptl/libc-lowlevellock.c: ... here.
28165         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28166         * nptl/libc_multiple_threads.c: ... here.
28167         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28168         * nptl/libc_pthread_init.c: ... here.
28169         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28170         * nptl/lowlevelbarrier.sym: ... here.
28171         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28172         * nptl/lowlevelcond.sym: ... here.
28173         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28174         * nptl/lowlevellock.c: ... here.
28175         * nptl/lowlevellock.h: Moved ...
28176         * sysdeps/nptl/lowlevellock.h: ... here.
28177         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28178         * nptl/lowlevelrobustlock.c: ... here.
28179         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28180         * nptl/lowlevelrobustlock.sym: ... here.
28181         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28182         * nptl/lowlevelrwlock.sym: ... here.
28183         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28184         * nptl/pt-fork.c: ... here.
28185         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28186         * nptl/pthread-pi-defines.sym: ... here.
28187         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28188         * nptl/pthread_attr_getaffinity.c: ... here.
28189         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28190         * nptl/pthread_attr_setaffinity.c: ... here.
28191         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28192         * nptl/pthread_mutex_cond_lock.c: ... here.
28193         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28194         Update #include.
28195         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28196         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28197         * nptl/pthread_once.c: ... here, replacing old file.
28198         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28199         * nptl/pthread_yield.c: ... here.
28200         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28201         * nptl/register-atfork.c: ... here.
28202         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28203         * nptl/sem_post.c: ... here.
28204         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28205         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28206         * nptl/sem_timedwait.c: ... here.
28207         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28208         * nptl/sem_trywait.c: ... here.
28209         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28210         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28211         * nptl/sem_wait.c: ... here.
28212         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28213         * nptl/structsem.sym: ... here.
28214         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28215         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28216         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28217         * nptl/unregister-atfork.c: ... here.
28218         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28219         * nptl/unwindbuf.sym: ... here.
28220         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28221         * sysdeps/nptl/fork.c: ... here.
28222         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28223         * sysdeps/nptl/fork.h: ... here.
28224         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28225         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28226         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28227         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28228         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28229         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28230         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28231         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28232         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28233         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28234         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28235         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28236         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28237         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28238         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28239         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28240         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28241         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28242         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28243         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28244         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28245         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28246         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28247         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28248         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28249         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28250         * sysdeps/unix/sysv/linux/raise.c: ... here.
28251         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28252         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28253         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28254         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28255         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28256         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28257         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28258         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28259         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28260         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28261         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28262         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28263         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28264         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28265         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28266
28267 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28268
28269         * sysdeps/generic/memcopy.h: Add comment for
28270         MEMCPY_OK_FOR_FWD_MEMMOVE.
28271
28272 2014-07-04  Will Newton  <will.newton@linaro.org>
28273
28274         * string/memchr.c: Merge from gnulib.
28275         [_LIBC]: Remove conditionals.
28276         (__ptr_t): Remove define.
28277         (LONG_MAX_32_BITS): Likewise.
28278         (LONG_MAX): Likewise.
28279         (MEMCHR): Use ANSI prototype and optimize algorithm.
28280
28281         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28282
28283 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28284
28285         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28286         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28287
28288         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28289         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28290         in a bare environment with no <stdlib.h> installed.
28291         * sysdeps/nptl/configure: Regenerated.
28292
28293         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28294
28295         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28296         AC_EGREP_CPP for kernel header checks, so they only succeed if
28297         including <linux/version.h> actually works right.
28298         * sysdeps/unix/sysv/linux/configure: Regenerated.
28299
28300         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28301         value so it's not diagnosed as unused.
28302
28303         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28304         thing) with "ifeq ($(subdir),rt)".
28305
28306 2014-07-03  Richard Henderson  <rth@redhat.com>
28307
28308         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28309         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28310         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28311
28312         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28313         (math_force_eval): New.
28314
28315         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28316         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28317
28318         * sysdeps/alpha/fpu/s_round.c: Remove file.
28319         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28320
28321         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28322         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28323         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28324         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28325         (_dl_start, print_statistics): Likewise.
28326         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28327         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28328
28329         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28330         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28331         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28332         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28333         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28334         (HP_SMALL_TIMING_AVAIL): Define.
28335         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28336         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28337         (HP_SMALL_TIMING_AVAIL): Define.
28338         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28339         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28340
28341         * sysdeps/aarch64/hp-timing.h: New file.
28342
28343         * sysdeps/generic/hp-timing.h: Remove dead comment.
28344         * sysdeps/generic/hp-timing-common.h: New file.
28345         * sysdeps/alpha/hp-timing.h: Include it.
28346         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28347         * sysdeps/i386/i686/hp-timing.h: Likewise.
28348         * sysdeps/ia64/hp-timing.h: Likewise.
28349         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28350         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28351         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28352         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28353         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28354         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28355         (hp_timing_t): New.
28356
28357         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28358         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28359         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28360         * elf/rtld.c (_dl_start_final): Likewise.
28361         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28362         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28363         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28364         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28365         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28366         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28367         (HP_TIMING_DIFF_INIT): Remove.
28368         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28369         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28370         (HP_TIMING_DIFF_INIT): Remove.
28371         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28372         * sysdeps/i386/i686/hp-timing.c: Remove file.
28373         * sysdeps/x86_64/hp-timing.c: Remove file.
28374         * sysdeps/ia64/hp-timing.c: Remove file.
28375         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28376         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28377         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28378         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28379
28380         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28381         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28382         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28383         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28384         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28385         (HP_TIMING_ACCUM): Remove.
28386         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28387         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28388         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28389
28390         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28391         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28392         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28393         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28394         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28395         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28396         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28397         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28398
28399         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28400
28401 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28402
28403         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28404
28405 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28406
28407         Sync up with gettext.
28408         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28409         [_MSC_VER]: Include malloc.h
28410         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28411         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28412         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28413         TEMP_FAILURE_RETRY.  Cast return of alloca.
28414         [!_LIBC] Call gl_rwlock_init.
28415         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28416
28417 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28418
28419         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28420         before checking its value.
28421
28422 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28423
28424         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28425
28426         * debug/memcpy_chk.c: Don't include pagecopy.h.
28427         * debug/mempcpy_chk.c: Likewise.
28428         * string/memcpy.c: Likewise.
28429         * string/memmove.c: Likewise.
28430         * sysdeps/powerpc/memmove.c: Likewise.
28431         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28432         definition of PAGE_COPY_FWD_MAYBE here...
28433         * sysdeps/generic/pagecopy.h: ... from here.
28434         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28435
28436 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28437             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28438
28439         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28440         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28441         optimizations.
28442         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28443         (__libc_ifunc_impl_list): Likewise.
28444         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28445         multiarch strcat for PPC64.
28446         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28447         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28448
28449 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28450
28451         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28452
28453 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28454
28455         * intl/loadmsgcat.c: Remove declaration of
28456         get_sysdep_segment_value.
28457         (get_sysdep_segment_value): Use ISO C style.
28458         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28459         semicolon.  Fix typo and formatting in comment.
28460         (_nl_unload_domain): Use ISO C style.
28461
28462         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28463
28464 2014-07-02  Will Newton  <will.newton@linaro.org>
28465
28466         * malloc/obstack.c: Merge from gnulib master.
28467         [HAVE_CONFIG_H]: Remove conditional code.
28468         [!_LIBC]: Include config.h.
28469         [!ELIDE_CODE]: Don't include inttypes.h, include
28470         stdint.h unconditionally.
28471         (print_and_abort): Mark as _Noreturn.
28472         (_obstack_allocated_p): Mark as __attribute_pure__.
28473         (obstack_free): Rename to __obstack_free.
28474         [!__attribute__]: Remove conditional code.
28475         * malloc/obstack.h: Merge from gnulib master.
28476         [__cplusplus]: Move conditional down.
28477         [!__attribute_pure__]: Define __attribute_pure__ here
28478         if it is not already defined.
28479         (_obstack_memory_used): Mark as __attribute_pure__.
28480         [!__obstack_free]: Define as obstack_free.
28481         [__GNUC__]: Remove check for ancient NeXT gcc.
28482
28483 2014-07-02  Will Newton  <will.newton@linaro.org>
28484             Paul Eggert  <eggert@cs.ucla.edu>
28485
28486         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28487
28488 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28489
28490         * resolv/gethnamaddr.c: Add comment warning that the file is
28491         not maintained.
28492
28493 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28494
28495         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28496         entries.
28497
28498         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28499         entry for aio_cancel and aio_cancel64.
28500         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28501         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28502         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28503         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28504         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28505         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28506         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28507         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28508         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28509         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28510         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28511         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28512         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28513
28514 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28515
28516         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28517         * nptl/pthread_mutex_lock.c: Likewise.
28518         * nptl/pthread_mutex_timedlock.c: Likewise.
28519         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28520
28521 2014-07-01  Richard henderson  <rth@redhat.com>
28522
28523         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28524         (__isnan, __isnanl): Remove.
28525         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28526
28527         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28528
28529 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28530
28531         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28532
28533 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28534
28535         * resolv/nss_dns/dns-host.c (getanswer_r)
28536         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28537
28538 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28539
28540         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28541         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28542         undefine.
28543         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28544         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28545
28546 2014-07-01  Roland McGrath <roland@hack.frob.com>
28547
28548         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28549         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28550
28551         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28552         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28553
28554         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28555         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28556         ... here.
28557         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28558         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28559
28560         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28561         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28562         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28563         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28564
28565         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28566         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28567         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28568         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28569         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28570         Moved ...
28571         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28572         ... here.
28573         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28574         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28575         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28576         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28577         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28578         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28579         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28580         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28581         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28582         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28583         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28584         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28585         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28586         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28587         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28588         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28589         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28590         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28591         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28592         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28593         ... here.
28594         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28595         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28596         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28597         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28598         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28599         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28600         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28601         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28602
28603 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28604
28605         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28606         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28607         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28608         Add sysdep.
28609
28610 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28611
28612         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28613
28614 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28615
28616         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28617         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28618
28619         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28620
28621         * sysdeps/arm/libm-test-ulps: Regenerated.
28622
28623 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28624             Roland McGrath <roland@hack.frob.com>
28625
28626         * test-skeleton.c (signal_handler): Kill the whole process group
28627         before killing the child individually.
28628         (main): Report any failure on `setpgid'.
28629
28630 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28631
28632         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28633         from _TLS_H to _ARM_NPTL_TLS_H.
28634         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28635         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28636
28637 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28638
28639         [BZ #16539]
28640         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28641         (__expm1l): Return argument unchanged when small but not
28642         subnormal.
28643
28644         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28645         include macro name.
28646         (_FP_UNPACK_RAW_1_P): Likewise.
28647         (_FP_PACK_RAW_1): Likewise.
28648         (_FP_PACK_RAW_1_P): Likewise.
28649         (_FP_MUL_MEAT_1_wide): Likewise.
28650         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28651         (_FP_MUL_MEAT_1_hard): Likewise.
28652         (_FP_DIV_MEAT_1_imm): Likewise.
28653         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28654         (_FP_DIV_MEAT_1_udiv): Likewise.
28655         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28656         (_FP_UNPACK_RAW_2): Likewise.
28657         (_FP_UNPACK_RAW_2_P): Likewise.
28658         (_FP_PACK_RAW_2): Likewise.
28659         (_FP_PACK_RAW_2_P): Likewise.
28660         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28661         (_FP_MUL_MEAT_2_wide): Likewise.
28662         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28663         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28664         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28665         (_FP_MUL_MEAT_2_gmp): Likewise.
28666         (_FP_DIV_MEAT_2_udiv): Likewise.
28667         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28668         (_FP_FRAC_SRL_4): Likewise.
28669         (_FP_FRAC_SRST_4): Likewise.
28670         (_FP_FRAC_SRS_4): Likewise.
28671         (_FP_UNPACK_RAW_4): Likewise.
28672         (_FP_UNPACK_RAW_4_P): Likewise.
28673         (_FP_PACK_RAW_4): Likewise.
28674         (_FP_PACK_RAW_4_P): Likewise.
28675         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28676         (_FP_MUL_MEAT_4_wide): Likewise.
28677         (_FP_MUL_MEAT_4_gmp): Likewise.
28678         (umul_ppppmnnn): Likewise.
28679         (_FP_DIV_MEAT_4_udiv): Likewise.
28680         (__FP_FRAC_ADD_4): Likewise.
28681         (__FP_FRAC_SUB_3): Likewise.
28682         (__FP_FRAC_SUB_4): Likewise.
28683         (__FP_FRAC_DEC_3): Likewise.
28684         (__FP_FRAC_DEC_4): Likewise.
28685         (__FP_FRAC_ADDI_4): Likewise.
28686         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28687         (_FP_FRAC_SRL_8): Likewise.
28688         (_FP_FRAC_SRS_8): Likewise.
28689
28690         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28691         include macro name.
28692         (FP_UNPACK_RAW_EP): Likewise.
28693         (FP_PACK_RAW_E): Likewise.
28694         (FP_PACK_RAW_EP): Likewise.
28695         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28696         (_FP_ISSIGNAN): Likewise.
28697         (_FP_ADD_INTERNAL): Likewise.
28698         (_FP_FMA): Likewise.
28699         (_FP_CMP): Likewise.
28700         (_FP_SQRT): Likewise.
28701         (_FP_TO_INT): Likewise.
28702         (_FP_FROM_INT): Likewise.
28703         (FP_EXTEND): Likewise.
28704         (_FP_DIV_MEAT_N_loop): Likewise.
28705
28706 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28707
28708         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28709         throughout.
28710
28711 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28712
28713         [BZ #17097]
28714         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28715         result with correct sign in case of exponents that produce
28716         overflow except for X very close to 1.
28717
28718 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28719
28720         mktime: merge #if/#ifdef usage from glibc
28721         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28722         as that works with both Glibc's and Gnulib's style.
28723         See thread starting at Siddhesh Poyarekar's bug report at:
28724         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28725
28726 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28727
28728         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28729         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28730         * sysdeps/tile/tilegx/memmove.c: Remove file.
28731
28732 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28733
28734         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28735         abi-name definition.
28736         * scripts/soversions.awk: Do not handle or generate ABI lines.
28737         * shlib-versions: Remove ABI entries.
28738         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28739         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28740
28741 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28742
28743         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28744         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28745         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28746         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28747         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28748         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28749         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28750         Moved ...
28751         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28752         ... here.
28753         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28754         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28755         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28756         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28757         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28758         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28759         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28760         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28761         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28762         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28763         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28764         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28765         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28766         Moved ...
28767         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28768         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28769         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28770         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28771         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28772         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28773         Moved ...
28774         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28775         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28776         Moved ...
28777         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28778         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28779         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28780         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28781         Moved ...
28782         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28783         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28784         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28785         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28786         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28787         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28788         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28789         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28790         Moved ...
28791         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28792         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28793         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28794         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28795         Moved ...
28796         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28797         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28798         Moved ...
28799         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28800         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28801         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28802         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28803         Moved ...
28804         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28805         ... here.
28806         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28807         Identical file removed.
28808         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28809         Moved ...
28810         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28811         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28812         Identical file removed.
28813         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28814         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28815         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28816         Moved ...
28817         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28818         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28819         Identical file removed.
28820         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28821         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28822         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28823         Identical file removed.
28824         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28825         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28826         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28827         Identical file removed.
28828         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28829         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28830         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28831         Identical file removed.
28832         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28833         Moved ...
28834         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28835         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28836         Identical file removed.
28837         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28838         Moved ...
28839         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28840         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28841         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28842         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28843         Identical file removed.
28844         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28845         Moved ...
28846         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28847         ... here.
28848         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28849         Identical file removed.
28850         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28851         Moved ...
28852         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28853         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28854         Identical file removed.
28855         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28856         Moved ...
28857         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28858         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28859         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28860         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28861         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28862         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28863         Moved ...
28864         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28865         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28866         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28867
28868         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28869         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28870         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28871         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28872         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28873
28874 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28875
28876         [BZ #17092]
28877         * nscd/nscd.c (monitor_child): Return exit status of child
28878         instead of return value from wait syscall.
28879
28880 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28881
28882         * configure.ac (libc_commonpagesize): Remove variable.
28883         (libc_relro_required): Likewise.
28884         (libc_cv_z_relro): Remove configure test.
28885         * configure: Regenerated.
28886         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28887         variable.
28888         (libc_relro_required): Likewise.
28889         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28890         (libc_relro_required): Likewise.
28891         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28892         (libc_relro_required): Likewise.
28893         * sysdeps/arm/preconfigure: Regenerated.
28894         * sysdeps/ia64/preconfigure: Remove file.
28895         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28896         variable.
28897         (libc_relro_required): Likewise.
28898
28899         [BZ #16561]
28900         [BZ #16562]
28901         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28902         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28903         recompute overflowing results in original rounding mode.
28904         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28905         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28906         recompute overflowing results in original rounding mode.
28907         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28908         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28909         recompute overflowing results in original rounding mode.
28910         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28911         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28912         recompute overflowing results in original rounding mode.
28913         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28914         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28915         recompute overflowing results in original rounding mode.
28916         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28917         (libc_feholdsetround_ctx): New macro.
28918         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28919         * sysdeps/i386/fpu/libm-test-ulps: Update.
28920         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28921
28922 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28923
28924         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28925         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28926         corresponding .cpsetup call.
28927
28928 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28929
28930         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28931         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28932         * sysdeps/arm/Makefile [$(subdir) = csu]
28933         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28934         (static-only-routines): Add aeabi_read_tp here.
28935         (shared-only-routines): Add libc-aeabi_read_tp here.
28936         (CFLAGS-libc-start.c): Add -fexceptions here.
28937         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28938         (sysdep_routines, static-only-routines, shared-only-routines):
28939         Don't add to these here.
28940         (CFLAGS-libc-start.c): Likewise.
28941
28942         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28943         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28944         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28945         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28946         * sysdeps/arm/Makefile [$(subdir) = rt]
28947         (librt-sysdep_routines, librt-shared-only-routines):
28948         Append rt-aeabi_unwind_cpp_pr1 here.
28949         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28950         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28951         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28952         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28953         Append nptl-aeabi_unwind_cpp_pr1 here.
28954         (tests): Filter out tst-cleanupx4 here.
28955         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28956         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28957         Don't do those here.
28958
28959 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28960
28961         * scripts/list-sources.sh: Do not handle ports specially.
28962
28963 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28964
28965         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28966         * sysdeps/arm/feupdateenv.c: Likewise.
28967
28968         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28969
28970 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28971
28972         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28973         trailing whitespace removed.
28974         * scripts/config.guess: Update to version 2014-03-23.
28975         * scripts/config.sub: Update to version 2014-05-01
28976         * scripts/install-sh: Update to version 2013-12-25.23.
28977         * scripts/move-if-change: Update from gnulib.
28978
28979 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28980
28981         * debug/memmove_chk.c: Remove pagecopy.h include.
28982
28983 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28984
28985         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28986         identical to gnulib mktime.
28987
28988 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28989
28990         * configure.ac: Do not test for machine being rs6000.  Do not test
28991         for powerpc*-*soft.
28992         * configure: Regenerated.
28993
28994         [BZ #11505]
28995         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28996         test.
28997         * configure: Regenerated.
28998         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28999         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29000         Remove configure test.
29001         * sysdeps/arm/configure: Regenerated.
29002         * sysdeps/nptl/configure.ac: Do not check
29003         libc_cv_asm_cfi_directives.
29004         * sysdeps/nptl/configure: Regenerated.
29005         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29006         * sysdeps/x86_64/nptl/configure: Remove generated file.
29007         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29008         unconditional.
29009         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29010
29011 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29012
29013         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29014         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29015         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29016         it is defined.
29017
29018         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29019         instead of whether it is defined.
29020         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29021         * sysdeps/hppa/dl-machine.h: Likewise.
29022         * sysdeps/ia64/dl-machine.h: Likewise.
29023         * sysdeps/m68k/dl-machine.h: Likewise.
29024         * sysdeps/microblaze/dl-machine.h: Likewise.
29025         * sysdeps/mips/dl-machine.: Likewise.
29026         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29027         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29028         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29029         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29030         * sysdeps/sh/dl-machine.h: Likewise.
29031         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29032         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29033         * sysdeps/tile/dl-machine.h: Likewise.
29034         * sysdeps/x86_64/dl-machine.h: Likewise.
29035
29036         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29037         code.
29038         (verify_persistent_db): Likewise.
29039
29040 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29041
29042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29043         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29044         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29045         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29046         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29047         Moved ...
29048         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29049         ... here.
29050         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29051         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29052         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29053         Identical file removed.
29054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29055         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29057         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29059         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29061         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29062         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29063         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29065         Moved ...
29066         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29067         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29068         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29069         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29070         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29071         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29072         Moved ...
29073         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29075         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29077         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29078         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29079         Identical file removed.
29080         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29081         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29082         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29083         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29084         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29085         Moved ...
29086         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29087         ... here.
29088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29089         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29091         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29092         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29093         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29094         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29095         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29096         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29097         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29098         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29099         Moved ...
29100         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29102         Moved ...
29103         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29105         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29107         Moved ...
29108         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29110         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29111
29112         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29113         folded into ...
29114         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29115         * sysdeps/unix/sysv/linux/s390/Versions
29116         (libpthread: GLIBC_2.19): New version set.
29117         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29118         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29119         (librt: GLIBC_2.3.3): New version set.
29120         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29121         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29122         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29123         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29124         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29125         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29126         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29127         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29128         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29129         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29130         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29131         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29132         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29133         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29134         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29135         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29136         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29137         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29138         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29139         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29140         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29141         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29142         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29143         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29144         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29145         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29146         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29147         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29148         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29149         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29150         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29151         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29152         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29153         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29154         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29155         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29156         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29157         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29158         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29159         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29160         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29161         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29162         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29163         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29164         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29165
29166         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29167         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29168         (__libc_vfork): Define the function under this name.
29169         [!NOT_IN_libc] (__vfork): Make this an alias.
29170         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29171         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29172         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29173         (__libc_vfork): Define the function under this name.
29174         [!NOT_IN_libc] (__vfork): Make this an alias.
29175         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29176         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29177         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29178         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29179         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29180         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29181
29182         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29183         code that was previously under [RESET_PID].
29184         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29185         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29186         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29187
29188         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29189         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29190         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29191         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29192         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29193         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29194         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29195         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29196         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29197         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29198         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29199         Moved ...
29200         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29201         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29202         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29203         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29204         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29205         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29206         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29207         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29208         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29209         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29210         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29211         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29212         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29213         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29214         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29215         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29216         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29217         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29218         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29219         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29220         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29221         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29222         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29223         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29224         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29225         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29226         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29227         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29228         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29229
29230 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29231
29232         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29233         that was previously under [RESET_PID].
29234         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29235
29236 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29237
29238         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29239         not undefine and redefine.
29240         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29241         [O_CLOEXEC]: Make code unconditional.
29242         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29243         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29244         <kernel-features.h>.
29245         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29246         conditional variable definition.
29247         (shm_open) [O_CLOEXEC]: Make code unconditional.
29248         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29249         code.
29250
29251         * configure.ac (USE_REGPARMS): Don't define here.
29252         * configure: Regenerated.
29253         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29254         * sysdeps/i386/configure: Regenerated.
29255
29256         * nptl/createthread.c: Don't include kernel-features.h.
29257         * nptl/pthread_cancel.c: Likewise.
29258         * nptl/pthread_condattr_setclock.c: Likewise.
29259         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29260         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29261         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29262         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29263         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29264         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29265         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29266         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29267         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29268         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29269         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29270         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29271         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29272         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29273         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29274         * nscd/gai.c: Likewise.
29275         * nss/nss_db/db-open.c: Likewise.
29276         * sysdeps/generic/ldsodefs.h: Likewise.
29277         * sysdeps/sh/nptl/tls.h: Likewise.
29278         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29279         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29280         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29281         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29282         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29283         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29284         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29285         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29286         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29287         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29288         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29289         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29290         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29291         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29292         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29293         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29294         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29295         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29296         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29297         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29298         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29299         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29300         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29301         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29302         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29303         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29304         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29305         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29306         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29307         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29308         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29309         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29310         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29311         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29312         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29313         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29314         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29315         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29316         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29317         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29318         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29319         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29320         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29321         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29322         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29323         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29324         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29325         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29326         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29327         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29328         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29329         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29330         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29331         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29332         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29333         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29334         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29335         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29358         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29359         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29360         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29361         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29362         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29363         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29364         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29365         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29366         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29367         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29368         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29369         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29370         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29371         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29372         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29373         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29374         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29375         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29376         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29377         * sysdeps/unix/sysv/linux/system.c: Likewise.
29378         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29379         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29380         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29381         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29382         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29383         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29384         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29385
29386         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29387         * configure: Regenerated.
29388         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29389
29390         * configure.ac (base_machine): Do not set specially for particular
29391         machines here.
29392         * configure: Regenerated.
29393         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29394         settings from configure.ac.
29395         * sysdeps/i386/preconfigure: New file.
29396         * sysdeps/s390/preconfigure: Likewise.
29397         * sysdeps/sh/preconfigure: Likewise.
29398         * sysdeps/sparc/preconfigure: Likewise.
29399
29400 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29401
29402         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29403         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29404         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29405         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29406         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29407         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29408         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29409         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29410         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29411         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29412         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29413         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29414         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29415         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29416         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29417         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29418         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29419         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29420         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29421
29422         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29423         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29424         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29425         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29426         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29427         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29428         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29429         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29430         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29431         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29432         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29433         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29434         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29435         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29436         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29437         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29438         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29439         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29440         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29441         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29442         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29443         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29444         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29445         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29446         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29447         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29448         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29449         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29450         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29451         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29452         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29453         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29454         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29455         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29456         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29457         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29458         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29459         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29460
29461         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29462         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29463         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29464         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29465         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29466         Moved ...
29467         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29468         ... here.
29469         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29470         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29471         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29472         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29473         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29474         Moved ...
29475         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29476         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29477         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29478         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29479         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29480         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29481         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29483         Moved ...
29484         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29485         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29486         Moved ...
29487         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29489         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29490         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29491         Moved ...
29492         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29493         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29494         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29495         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29496         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29498         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29499         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29500         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29501         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29502         Moved ...
29503         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29504         ... here.
29505         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29506         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29507         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29508         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29509         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29510         Moved ...
29511         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29512         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29513         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29514         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29515         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29516         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29517         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29518         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29519         Moved ...
29520         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29521         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29522         Moved ...
29523         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29524         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29525         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29526         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29527         Moved ...
29528         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29529         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29530         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29531         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29532         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29533
29534 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29535
29536         * timezone/checktab.awk: Update from tzcode 2014e.
29537         * timezone/private.h: Likewise.
29538         * timezone/tzfile.h: Likewise.
29539         * timezone/zdump.c: Likewise.
29540         * timezone/zic.c: Likewise.
29541
29542         * sysdeps/unix/sysv/linux/kernel-features.h
29543         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29544         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29545         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29546         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29547         Remove conditional code.
29548
29549 2014-06-25  Will Newton  <will.newton@linaro.org>
29550
29551         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29552         (_dl_arm_cap_flags): Add HWCAP2 values.
29553         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29554         (_DL_HWCAP_COUNT): Increase to 37.
29555         (_DL_HWCAP_LAST): New define.
29556         (_DL_HWCAP2_LAST): New define.
29557         (_dl_procinfo): Add support for printing
29558         AT_HWCAP2 entries.
29559         (_dl_string_hwcap): Use _dl_hwcap_string.
29560
29561 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29562
29563         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29564
29565 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29566
29567         * README: Do not mention ports directory.
29568
29569         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29570         Remove macro.
29571         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29572         <kernel-features.h>.
29573         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29574         conditional variable definition.
29575         (__futimes): Update comment.
29576         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29577         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29578
29579         [BZ #16560]
29580         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29581         arguments close to 0.
29582         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29583         Likewise.
29584         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29585         Likewise.
29586         * math/auto-libm-test-in: Add more tests of exp10.
29587         * math/auto-libm-test-out: Regenerated.
29588         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29589
29590         * sysdeps/unix/sysv/linux/kernel-features.h
29591         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29592         * sysdeps/unix/sysv/linux/readv.c: Do not include
29593         <kernel-features.h>.
29594         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29595         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29596         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29597         unconditional.
29598         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29599         conditional code.
29600         * sysdeps/unix/sysv/linux/writev.c: Do not include
29601         <kernel-features.h>.
29602         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29603         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29604         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29605         unconditional.
29606         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29607         conditional code.
29608
29609 2014-06-25  Will Newton  <will.newton@linaro.org>
29610
29611         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29612         comment changes throughout the file.  Remove checks
29613         for HAVE_*_H definitions that are not required.
29614         (__gen_tempname): Call abort if an unknown kind value is
29615         passed.
29616
29617 2014-06-25  Andreas Schwab  <schwab@suse.de>
29618
29619         [BZ #17086]
29620         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29621         scalbln, scalblnf, scalblnl in libc.
29622
29623 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29624
29625         [BZ #17086]
29626         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29627         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29628         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29629
29630 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29631
29632         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29633         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29634         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29635         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29636         Update #include.
29637         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29638         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29639         Update #include.
29640         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29641         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29642         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29643         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29644         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29645         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29646         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29647         * sysdeps/x86/bits/semaphore.h: ... here.
29648         * sysdeps/x86/nptl/elide.h: Moved ...
29649         * sysdeps/x86/elide.h: ... here.
29650         * sysdeps/x86_64/nptl/Implies: File removed.
29651         * sysdeps/i386/nptl/Implies: File removed.
29652
29653 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29654
29655         [BZ #16539]
29656         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29657         return the argument for normal arguments with exponent below -64.
29658         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29659         Likewise.
29660         * math/auto-libm-test-in: Add another test of expm1.
29661         * math/auto-libm-test-out: Regenerated.
29662
29663         [BZ #16287]
29664         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29665         calling __erfcl for arguments at least 16.
29666         * math/auto-libm-test-in: Add more tests of erf.
29667         * math/auto-libm-test-out: Regenerated.
29668
29669         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29670         individual architectures.
29671         * sysdeps/unix/sysv/linux/configure: Regenerated.
29672         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29673         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29674         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29675         (ldd_rewrite_script): Define variable.
29676         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29678         file.
29679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29680         generated file.
29681         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29682         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29683         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29684         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29685         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29686         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29687         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29688         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29689
29690 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29691
29692         [BZ #17084]
29693         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29694         Rename member __data.d to __data.__elision_data.
29695
29696 2014-06-24  Wilco  <wdijkstr@arm.com>
29697
29698         * NEWS: Add 16918 to fixed bug list.
29699
29700 2014-06-24  Wilco  <wdijkstr@arm.com>
29701
29702         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29703
29704 2014-06-24  Wilco  <wdijkstr@arm.com>
29705
29706         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29707         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29708         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29709         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29710         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29711         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29712         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29713         Use _FPU_MASK_RM.
29714
29715 2014-06-24  Wilco  <wdijkstr@arm.com>
29716
29717         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29718
29719 2014-06-24  Wilco  <wdijkstr@arm.com>
29720
29721         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29722         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29723         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29724         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29725
29726 2014-06-24  Wilco  <wdijkstr@arm.com>
29727
29728         [BZ #16918]
29729         * sysdeps/arm/feupdateenv.c (feupdateenv):
29730         Rewrite to reduce FPSCR accesses and fix return value.
29731
29732 2014-06-24  Wilco  <wdijkstr@arm.com>
29733
29734         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29735         Optimize to avoid unnecessary FPSCR writes.
29736         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29737         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29738         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29739         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29740
29741 2014-06-24  Wilco  <wdijkstr@arm.com>
29742
29743         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29744         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29745         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29746         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29747         Call libc_fetestexcept_vfp.
29748         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29749         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29750         __SOFTFP__ ifdef so that they can be built for softfp.
29751
29752 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29753
29754         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29755         argument type signed char.
29756
29757         * Makerules (check-abi): Dump diff of symlist if the test
29758         fails.
29759
29760 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29761
29762         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29763         using abort.
29764
29765         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29766         Remove unused variable ST.
29767
29768 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29769
29770         [BZ #16354]
29771         [BZ #17061]
29772         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29773         small arguments before calling __expm1.
29774         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29775         small arguments before calling __expm1f.
29776         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29777         small arguments before calling __expm1l.
29778         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29779         Likewise.
29780         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29781         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29782         spurious underflow for some cosh tests.
29783         * math/auto-libm-test-out: Regenerated.
29784         * sysdeps/i386/fpu/libm-test-ulps: Update.
29785
29786         [BZ #17050]
29787         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29788         (__ieee754_y1): Set errno if return value overflows.
29789         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29790         (__ieee754_y1f): Set errno if return value overflows.
29791         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29792         (__ieee754_y1l): Set errno if return value overflows.
29793         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29794         (__ieee754_y1l): Set errno if return value overflows.
29795         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29796         * math/auto-libm-test-out: Regenerated.
29797
29798         * math/gen-auto-libm-tests.c: Document use of
29799         ignore-zero-inf-sign.
29800         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29801         (input_flags): Add ignore-zero-inf-sign.
29802         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29803         * math/gen-libm-test.pl (generate_testfile): Handle
29804         ignore-zero-inf-sign.
29805         * math/auto-libm-test-in: Mark some cpow tests with
29806         ignore-zero-inf-sign and some with xfail-rounding.
29807         * math/auto-libm-test-out: Regenerated.
29808         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29809         * sysdeps/i386/fpu/libm-test-ulps: Update.
29810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29811
29812         [BZ #16315]
29813         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29814         overflowing or underflowing operations take place with sign of
29815         result.
29816         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29817         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29818         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29819         (__ieee754_pow): Recompute overflowing and underflowing results in
29820         original rounding mode.
29821         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29822         (__powl_helper): Allow negative argument X and scale negated value
29823         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29824         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29825         overflowing or underflowing operations take place with sign of
29826         result.
29827         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29828         Include <math.h>.
29829         * math/auto-libm-test-in: Add more tests of pow.
29830         * math/auto-libm-test-out: Regenerated.
29831         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29832         (pow_tonearest_test_data): Remove.
29833         (pow_test_tonearest): Likewise.
29834         (pow_towardzero_test_data): Likewise.
29835         (pow_test_towardzero): Likewise.
29836         (pow_downward_test_data): Likewise.
29837         (pow_test_downward): Likewise.
29838         (pow_upward_test_data): Likewise.
29839         (pow_test_upward): Likewise.
29840         (main): Don't call removed functions.
29841         * sysdeps/i386/fpu/libm-test-ulps: Update.
29842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29843
29844 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29845
29846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29847         Moved ...
29848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29850         Moved ...
29851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29853         Moved ...
29854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29856         Moved ...
29857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29859         File removed.
29860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29861         File removed.
29862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29863         File removed.
29864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29865         File removed.
29866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29867         File removed.
29868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29869         File removed.
29870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29871         File removed.
29872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29873         File removed.
29874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29875         File removed.
29876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29877         File removed.
29878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29879         File removed.
29880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29881         File removed.
29882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29883         Moved ...
29884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29886         Moved ...
29887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29888         ... here.
29889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29890         Moved ...
29891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29893         Moved ...
29894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29896         Moved ...
29897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29899         Moved ...
29900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29902         Moved ...
29903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29905         Moved ...
29906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29908         Moved ...
29909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29912         ... here.
29913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29914         Moved ...
29915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29917         Moved ...
29918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29919         ... here.
29920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29921         Moved ...
29922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29923         ... here.
29924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29925         Moved ...
29926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29927         ... here.
29928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29929         Moved ...
29930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29932         Moved ...
29933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29937         Moved ...
29938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29939         ... here.
29940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29941         Moved ...
29942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29943         ... here.
29944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29945         Moved ...
29946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29948         Moved ...
29949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29951         Moved ...
29952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29954         Moved ...
29955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29957         Moved ...
29958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29959         ... here.
29960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29961         Moved ...
29962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29964         Moved ...
29965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29967         Moved ...
29968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29970         Moved ...
29971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29975         Moved ...
29976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29978         Moved ...
29979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29981         Moved ...
29982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29983         ... here.
29984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29985         Moved ...
29986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29987         ... here.
29988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29989         Moved ...
29990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29991         ... here.
29992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29993         Moved ...
29994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29996         Moved ...
29997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29999         Moved ...
30000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30002         Moved ...
30003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30004         ... here.
30005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30006         Moved ...
30007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30008         ... here.
30009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30010         Moved ...
30011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30012         ... here.
30013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30014         Moved ...
30015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30017         Moved ...
30018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30019
30020 2014-06-23  Will Newton  <will.newton@linaro.org>
30021             Wilco  <wdijkstr@arm.com>
30022
30023         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30024         implementation.  Include get-rounding-mode.h.
30025         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30026         [!libc_feholdsetround_noex_ctx]: Define
30027         libc_feholdsetround_noex_ctx.
30028         [!libc_feholdsetround_noexf_ctx]: Define
30029         libc_feholdsetround_noexf_ctx.
30030         [!libc_feholdsetround_noexl_ctx]: Define
30031         libc_feholdsetround_noexl_ctx.
30032         (libc_feholdsetround_ctx): New function.
30033         (libc_feresetround_ctx): New function.
30034         (libc_feholdsetround_noex_ctx): New function.
30035         (libc_feresetround_noex_ctx): New function.
30036
30037 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30038
30039         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30040         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30041         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30042         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30043         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30044         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30045
30046         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30047         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30048         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30049         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30050         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30051         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30052         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30053         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30054         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30055         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30056         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30057         Moved ...
30058         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30059         ... here.
30060         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30061         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30062         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30063         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30064         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30065         Moved ...
30066         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30067         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30068         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30069         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30070         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30071         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30072         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30073         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30074         Moved ...
30075         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30076         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30077         Moved ...
30078         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30079         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30080         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30081         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30082         Moved ...
30083         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30084         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30085         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30086         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30087         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30088         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30089         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30090         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30091         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30092         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30093         Moved ...
30094         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30095         ... here.
30096         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30097         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30098         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30099         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30100         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30101         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30102         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30103         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30104         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30105         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30106         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30107         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30108         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30109         Moved ...
30110         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30111         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30112         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30113         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30114         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30115         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30116         Moved ...
30117         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30118         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30119         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30120         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30121         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30122
30123         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30124         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30125         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30126         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30127         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30128         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30129         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30130         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30131         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30132         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30133         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30134         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30135         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30136         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30137         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30138         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30139         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30140         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30141         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30142         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30143         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30144         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30145         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30146         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30147         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30148         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30149         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30150         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30151
30152 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30153
30154         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30155         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30156         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30157         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30158         (IPV6_PMTUDISC_INTERFACE): Likewise.
30159         (IPV6_PMTUDISC_OMIT): Likewise.
30160
30161 2014-06-23  Andreas Schwab  <schwab@suse.de>
30162
30163         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30164         Remove unused errout label.
30165
30166 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30167
30168         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30169         macro: hardware supports Vector Crypto instructions.
30170
30171 2014-06-23  Will Newton  <will.newton@linaro.org>
30172
30173         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30174         rather than __builtin_expect.
30175
30176         * elf/dl-lookup.c (undefined_msg): Remove variable.
30177         (_dl_lookup_symbol_x): Replace undefined_msg with string
30178         literal.
30179
30180         * elf/dl-lookup.c (do_lookup_unique): New function.
30181         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30182         to a separate function.
30183
30184 2014-06-23  Andreas Schwab  <schwab@suse.de>
30185
30186         [BZ #17079]
30187         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30188         before reading the next line.
30189
30190 2014-06-23  Will Newton  <will.newton@linaro.org>
30191
30192         * test-skeleton.c (signal_handler): Use printf and %m
30193         rather than perror.  Use printf rather than fprintf to
30194         stderr.  Use puts rather than fputs to stderr.
30195         (main): Likewise.
30196
30197 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30198
30199         * nscd/nscd.c (thread_info_t): Remove typedef.
30200         (thread_info): Remove variable.
30201
30202 2014-06-21  Allan McRae  <allan@archlinux.org>
30203
30204         * NEWS: Mention CVE-2014-4043.
30205
30206 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30207
30208         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30209         * nptl/smp.h: ... here.
30210
30211         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30212
30213         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30214         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30215         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30216         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30217
30218         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30219         * nptl/stack-aliasing.h: New file.
30220         * sysdeps/i386/i686/stack-aliasing.h: New file.
30221         * sysdeps/i386/i686/nptl/Makefile: File removed.
30222         * sysdeps/x86_64/stack-aliasing.h: New file.
30223         * sysdeps/x86_64/nptl/Makefile
30224         (CFLAGS-pthread_create.c): Variable removed.
30225
30226         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30227         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30228         old file.
30229         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30230         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30231         old file.
30232
30233 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30234
30235         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30236         (__ASSUME_SIGFRAME_V2): Remove macro.
30237         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30238         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30239         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30240         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30241         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30242         Declare as function.  Remove conditional macro definitions.
30243         (__default_rt_sa_restorer): Likewise.
30244         (__default_sa_restorer_v1): Remove declaration.
30245         (__default_sa_restorer_v2): Likewise.
30246         (__default_rt_sa_restorer_v1): Likewise.
30247         (__default_rt_sa_restorer_v2): Likewise.
30248         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30249         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30250         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30251
30252 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30253
30254         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30255         (libpthread-routines): Add sysdep.
30256         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30257         * sysdeps/unix/sysv/linux/sparc/Versions
30258         (libpthread: GLIBC_2.3.3): New version set.
30259         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30260         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30261         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30262         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30263         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30264         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30265         Moved ...
30266         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30267         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30268         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30269         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30270         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30271         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30272         * sysdeps/sparc/nptl/sem_init.c: ... here.
30273         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30274         * sysdeps/sparc/nptl/sem_post.c: ... here.
30275         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30276         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30277         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30278         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30279         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30280         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30281         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30282         (libpthread-routines): Add cpu_relax.
30283         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30284         File removed.
30285         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30286         (librt: GLIBC_2.3.3): New version set.
30287         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30288         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30289         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30290         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30291         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30292         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30293         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30294         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30295         Moved ...
30296         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30297         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30298         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30299         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30300         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30301         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30302         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30303         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30304         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30305         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30306         Moved ...
30307         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30308         Update #include.
30309         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30310         Moved ...
30311         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30312         Update #include.
30313         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30314         Moved ...
30315         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30316         Update #include.
30317         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30318         Moved ...
30319         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30320         Update #include.
30321         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30322         Moved ...
30323         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30324         Update #include.
30325         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30326         Moved ...
30327         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30328         Update #include.
30329         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30330         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30331         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30332         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30333         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30334         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30335         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30336         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30337         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30338         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30339         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30340         Moved ...
30341         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30342         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30343         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30344         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30345         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30346
30347 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30348
30349         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30350         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30351         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30352         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30353         * nscd/nscd.c: Likewise.
30354         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30355         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30356         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30357         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30358
30359         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30360         <kernel-features.h>.
30361         (init_mq_netlink): Remove conditional have_sock_cloexec
30362         definitions.  Remove code conditional on have_sock_cloexec < 0.
30363         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30364         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30365         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30366         <kernel-features.h>.
30367         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30368         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30369
30370 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30371
30372         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30373         Add tests for memset_chk and memset.
30374
30375         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30376         with AVX2_Usable.
30377
30378 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30379
30380         [BZ #16046]
30381         * elf/tst-dl-iter-static.c: New file.
30382         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30383
30384         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30385         error.
30386
30387 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30388
30389         * sysdeps/unix/sysv/linux/kernel-features.h
30390         (__ASSUME_F_GETOWN_EX): Remove macro.
30391         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30392         <kernel-features.h>.
30393         (miss_F_GETOWN_EX): Remove variable or macro.
30394         (do_fcntl): Do not check miss_F_GETOWN_EX.
30395         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30396
30397         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30398         Remove macro.
30399         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30400         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30401         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30402
30403         * sysdeps/unix/sysv/linux/kernel-features.h
30404         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30405         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30406         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30407         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30408
30409 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30410
30411         [BZ #17075]
30412         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30413         Fix calculation of the symbol's value.
30414         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30415         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30416         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30417         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30418         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30419         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30420         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30421         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30422         (modules-names): Add `tst-armtlsdescmod',
30423         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30424         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30425         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30426         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30427         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30428         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30429         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30430         ($(objpfx)tst-armtlsdescloc): New dependency.
30431         ($(objpfx)tst-armtlsdescextnow): Likewise.
30432         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30433         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30434         TLS scheme support.
30435         * sysdeps/arm/configure: Regenerate.
30436
30437 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30438
30439         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30440         (__atfct_seterrno_2): Likewise.
30441         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30442         <kernel-features.h>.
30443         (__ASSUME_ATFCTS): Do not undefine and redefine.
30444         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30445         (__have_atfcts): Remove conditional definition.
30446         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30447         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30448         unreachable if [__ASSUME_ATFCTS].
30449         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30450         not undefine and redefine.
30451         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30452         <kernel-features.h>.
30453         (faccessat) [__NR_faccessat]: Make code unconditional.
30454         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30455         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30456         <kernel-features.h>.
30457         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30458         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30459         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30460         <kernel-features.h>.
30461         (fchownat) [__NR_fchownat]: Make code unconditional.
30462         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30463         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30464         <kernel-features.h>.
30465         (futimesat) [__NR_futimesat]: Make code unconditional.
30466         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30467         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30468         <kernel-features.h>.
30469         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30470         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30471         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30472         <kernel-features.h>.
30473         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30474         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30475         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30476         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30477         <kernel-features.h>.
30478         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30479         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30480         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30481         <kernel-features.h>.
30482         (linkat) [__NR_linkat]: Make code unconditional.
30483         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30484         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30485         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30486         <kernel-features.h>.
30487         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30488         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30489         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30490         <kernel-features.h>.
30491         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30492         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30493         * sysdeps/unix/sysv/linux/openat.c: Do not include
30494         <kernel-features.h>.
30495         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30496         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30497         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30498         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30499         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30500         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30501         <kernel-features.h>.
30502         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30503         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30504         result of INLINE_SYSCALL directly, not via int variable.
30505         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30506         <kernel-features.h>.
30507         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30508         (renameat) [__NR_renameat]: Make code unconditional.
30509         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30510         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30511         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30512         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30513         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30514         (__ASSUME_ATFCTS): Do not undefine and redefine.
30515         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30516         <kernel-features.h>.
30517         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30518         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30519         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30520         <kernel-features.h>.
30521         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30522         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30523         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30524         (__ASSUME_ATFCTS): Do not undefine and redefine.
30525         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30526         <kernel-features.h>.
30527         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30528         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30529         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30530         <kernel-features.h>.
30531         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30532         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30533
30534 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30535
30536         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30537
30538 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30539
30540         [BZ #17069]
30541         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30542         constructed tree before returning error.
30543         * posix/bug-regexp36.c: Expand test case.
30544
30545 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30546
30547         [BZ #6803]
30548         * math/libm-test.inc (scalbln_test_date):
30549         Add errno expectations.
30550         * math/w_scalblnf.c: New File.
30551         Add wrapper which checks for setting errno to ERANGE.
30552         Add weak_alias for corresponding scalbln function.
30553         * math/w_scalbln.c: Likewise.
30554         * math/w_scalblnl.c: Likewise.
30555         * math/Makefile (libm-calls): Add w_scalbln.
30556         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30557         Remove weak_alias for corresponding scalbln function.
30558         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30559         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30560         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30561         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30562         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30563         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30564         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30565         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30566         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30567         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30568         Remove long_double_symbol for scalblnl function in libm, libc.
30569         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30570         Add wrapper which checks for setting errno to ERANGE.
30571         Add long_double_symbol for scalblnl function in libm, libc.
30572         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30573         Remove long_double_symbol for scalblnl in libm.
30574         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30575         Add wrapper which checks for setting errno to ERANGE.
30576         Add long_double_symbol for scalblnl function in libm.
30577         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30578         Do not use wrapper because of own implementation.
30579
30580 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30581
30582         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30583         3 bytes for __pad1 for x32.
30584         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30585
30586 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30587             H.J. Lu  <hongjiu.lu@intel.com>
30588
30589         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30590         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30591         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30592         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30593         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30594
30595 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30596
30597         [BZ #17069]
30598         * posix/regcomp.c (parse_expression): Deallocate partially
30599         constructed tree before returning error.
30600         * posix/Makefile.c (tests): Add bug-regex36.
30601         (generated): Add bug-regex36.mtrace.
30602         (tests-special): Add $(objpfx)bug-regex36-mem.out
30603         (bug-regex36-ENV): New variable.
30604         ($(objpfx)bug-regex36-mem.out): New rule.
30605         * posix/bug-regex36.c: New file.
30606
30607 2014-06-19  Will Newton  <will.newton@linaro.org>
30608
30609         * malloc/malloc.c (systrim): If extra is zero then return
30610         early.
30611
30612 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30613
30614         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30615
30616 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30617
30618         * sysdeps/aarch64/strchr.S: New file.
30619
30620 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30621
30622         [BZ #17022]
30623         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30624         from arguments -2 or below.
30625         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30626         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30627
30628 2014-06-18  Andreas Schwab  <schwab@suse.de>
30629
30630         [BZ #17062]
30631         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30632         of a bracket expr not to run off the end of the string.
30633         * posix/Makefile (tests): Add tst-fnmatch3.
30634         * posix/tst-fnmatch3.c: New file.
30635
30636 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30637
30638         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30639         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30640         [$(cross-compiling) = no]: Likewise.
30641         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30642         [$(cross-compiling) = no]: Likewise.
30643
30644 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30645
30646         [BZ #17031]
30647         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30648         double, adjusted for any remainder from the high double.
30649         * math/libm-test.inc (nearbyint): Add tests.
30650         (rint): Likewise.
30651
30652 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30653
30654         * nptl/sysdeps/powerpc/Makefile: Moved ...
30655         * sysdeps/powerpc/nptl/Makefile: ... here.
30656         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30657         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30658         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30659         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30660         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30661         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30662         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30663         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30664         * nptl/sysdeps/powerpc/tls.h: Moved ...
30665         * sysdeps/powerpc/nptl/tls.h: ... here.
30666
30667 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30668
30669         [BZ #16681]
30670         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30671         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30672         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30673         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30674         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30675         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30676         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30677         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30678         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30679
30680 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30681
30682         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30683
30684 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30685
30686         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30687         defined operator.
30688
30689         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30690         $TIMEOUTFACTOR.
30691
30692 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30693
30694         [BZ #17058]
30695         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30696         non-executed part of the test.
30697
30698 2014-06-16  Andreas Schwab  <schwab@suse.de>
30699
30700         * string/bits/string2.h (strdup, strndup): Update feature guard.
30701
30702 2014-06-14  David S. Miller  <davem@davemloft.net>
30703
30704         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30705
30706 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30707
30708         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30709         that was previously under [RESET_PID].
30710         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30711
30712         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30713         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30714         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30715         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30716         (__libc_vfork): New strong alias.
30717         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30718
30719 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30720
30721         * sysdeps/generic/elide.h: New file.
30722
30723 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30724
30725         * Makefile (installed-headers): Adjust path of pthread.h header.
30726
30727 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30728
30729         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30730         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30731         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30732         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30733
30734         * nptl/sysdeps/s390/Makefile: Moved ...
30735         * sysdeps/s390/nptl/Makefile: ... here.
30736         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30737         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30738         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30739         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30740         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30741         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30742         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30743         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30744         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30745         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30746         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30747         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30748         * nptl/sysdeps/s390/tls.h: Moved ...
30749         * sysdeps/s390/nptl/tls.h: ... here.
30750
30751         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30752         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30753
30754 2014-06-13  David S. Miller  <davem@davemloft.net>
30755
30756         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30757         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30758         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30759         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30760         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30761         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30762         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30763         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30764         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30765         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30766         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30767         Remove RESET_PID cpp guards.
30768         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30769         Remove RESET_PID cpp guards.
30770         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30771
30772 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30773
30774         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30775         __sp to uintptr_t.
30776
30777 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30778
30779         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30780         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30781         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30782         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30783         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30784         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30785         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30786         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30787         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30788         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30789         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30790         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30791         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30792         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30793         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30794         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30795         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30796         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30797         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30798         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30799
30800         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30801         (pthread_rwlock_rdlock): Add elision.
30802         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30803         (pthread_rwlock_wrlock): Add elision.
30804         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30805         (pthread_rwlock_trywrlock): Add elision.
30806         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30807         (pthread_rwlock_tryrdlock): Add elision.
30808         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30809         (pthread_rwlock_tryrdlock): Add elision unlock.
30810         * nptl/sysdeps/pthread/pthread.h:
30811         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30812         (PTHREAD_RWLOCK_INITIALIZER,
30813         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30814         Handle new elision field.
30815         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30816         * sysdeps/arm/nptl/bits/pthreadtypes.h
30817         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30818         * sysdeps/sh/nptl/bits/pthreadtypes.h
30819         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30820         * sysdeps/tile/nptl/bits/pthreadtypes.h
30821         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30822         * sysdeps/a/nptl/bits/pthreadtypes.h
30823         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30824         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30825         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30826         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30827         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30828         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30829         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30830         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30831         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30832         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30833         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30834         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30835         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30836         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30837         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30838         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30839         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30840         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30841         (elision_init): Set try_xbegin to zero when no RTM.
30842         * sysdeps/x86/nptl/bits/pthreadtypes.h
30843         (pthread_rwlock_t): Change __pad1 to __rwelision.
30844         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30845
30846 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30847
30848         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30849         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30850         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30851         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30852
30853 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30854
30855         [BZ #16996]
30856         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30857         that the cached result has been set before returning it.
30858
30859 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30860
30861         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30862         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30863         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30864         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30865         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30866         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30867
30868         * nptl/sysdeps/sparc/Makefile: Moved ...
30869         * sysdeps/sparc/nptl/Makefile: ... here.
30870         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30871         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30872         * nptl/sysdeps/sparc/tls.h: Moved ...
30873         * sysdeps/sparc/nptl/tls.h: ... here.
30874         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30875         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30876         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30877         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30878         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30879         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30880         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30881         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30882         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30883         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30884         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30885         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30886         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30887         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30888         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30889         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30890         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30891         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30892         Update #include.
30893         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30894         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30895         Update #include.
30896         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30897         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30898         Update #include.
30899         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30900         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30901         Update #include.
30902
30903         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30904
30905         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30906         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30907
30908         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30909         (struct list_links): Type removed.
30910         (struct thread_node, struct timer_node): Replace struct list_links
30911         with struct list_head.
30912         (list_unlink_ip): Likewise.
30913         * sysdeps/pthread/timer_routines.c
30914         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30915         (list_append, list_insbefore): Likewise.
30916         (list_init): Function removed.
30917         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30918         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30919         * sysdeps/pthread/Makefile: ... here, new file.
30920
30921         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30922         * sysdeps/nptl/Implies: ... here.
30923         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30924         * nptl/sysdeps/pthread/list.h: Moved ...
30925         * include/list.h: ... here.
30926         * nptl/sysdeps/pthread/createthread.c: Moved ...
30927         * nptl/createthread.c: ... here.
30928         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30929         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30930         * nptl/pt-longjmp.c: ... here.
30931         * nptl/sysdeps/pthread/Makefile: Moved ...
30932         * sysdeps/nptl/Makefile: ... here.
30933         * nptl/sysdeps/pthread/Subdirs: Moved ...
30934         * sysdeps/nptl/Subdirs: ... here.
30935         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30936         * sysdeps/nptl/aio_misc.h: ... here.
30937         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30938         * sysdeps/nptl/bits/libc-lock.h: ... here.
30939         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30940         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30941         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30942         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30943         * nptl/sysdeps/pthread/configure: Moved ...
30944         * sysdeps/nptl/configure: ... here.
30945         * nptl/sysdeps/pthread/configure.ac: Moved ...
30946         * sysdeps/nptl/configure.ac: ... here.
30947         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30948         * sysdeps/nptl/gai_misc.h: ... here.
30949         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30950         * sysdeps/nptl/librt-cancellation.c: ... here.
30951         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30952         * sysdeps/nptl/malloc-machine.h: ... here.
30953         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30954         * sysdeps/nptl/pthread-functions.h: ... here.
30955         * nptl/sysdeps/pthread/pthread.h: Moved ...
30956         * sysdeps/nptl/pthread.h: ... here.
30957         * nptl/sysdeps/pthread/setxid.h: Moved ...
30958         * sysdeps/nptl/setxid.h: ... here.
30959         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30960         * sysdeps/nptl/sigfillset.c: ... here.
30961         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30962         * sysdeps/nptl/tcb-offsets.h: ... here.
30963         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30964         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30965         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30966         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30967         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30968         * sysdeps/pthread/allocalim.h: ... here.
30969         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30970         * sysdeps/pthread/bits/sigthread.h: ... here.
30971         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30972         * sysdeps/pthread/flockfile.c: ... here.
30973         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30974         * sysdeps/pthread/ftrylockfile.c: ... here.
30975         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30976         * sysdeps/pthread/funlockfile.c: ... here.
30977         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30978         * sysdeps/pthread/posix-timer.h: ... here.
30979         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30980         * sysdeps/pthread/timer_create.c: ... here.
30981         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30982         * sysdeps/pthread/timer_delete.c: ... here.
30983         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30984         * sysdeps/pthread/timer_getoverr.c: ... here.
30985         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30986         * sysdeps/pthread/timer_gettime.c: ... here.
30987         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30988         * sysdeps/pthread/timer_routines.c: ... here.
30989         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30990         * sysdeps/pthread/timer_settime.c: ... here.
30991         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30992         * sysdeps/pthread/tst-timer.c: ... here.
30993         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30994         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30995
30996         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30997         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30998
30999         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31000         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31001         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31002         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31003         Update #include target.
31004         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31005         * sysdeps/i386/i686/nptl/Makefile: ... here.
31006         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31007         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31008         Update #include target.
31009         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31010         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31011         * nptl/sysdeps/i386/Makefile: Moved ...
31012         * sysdeps/i386/nptl/Makefile: ... here.
31013         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31014         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31015         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31016         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31017         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31018         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31019         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31020         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31021         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31022         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31023         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31024         * nptl/sysdeps/i386/tls.h: Moved ...
31025         * sysdeps/i386/nptl/tls.h: ... here.
31026
31027         * sysdeps/sh/Makefile [$(subdir) = csu]
31028         (gen-as-const-headers): Add tcb-offsets.sym.
31029         * nptl/sysdeps/sh/Makefile: File removed.
31030         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31031         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31032         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31033         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31034         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31035         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31036         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31037         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31038         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31039         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31040         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31041         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31042         * nptl/sysdeps/sh/tls.h: Moved ...
31043         * sysdeps/sh/nptl/tls.h: ... here.
31044         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31045         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31046         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31047         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31048         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31049         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31050         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31051         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31052         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31053         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31054         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31055         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31056         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31057         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31058         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31059         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31060         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31061         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31062         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31063         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31064         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31065         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31066         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31067         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31068         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31069         Moved ...
31070         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31071         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31072         Moved ...
31073         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31074         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31075         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31076         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31077         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31078         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31079         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31080         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31081         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31082         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31083         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31084         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31085         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31086         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31087         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31088         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31089         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31090         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31091         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31092
31093 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31094
31095         * posix/spawn_faction_addopen.c: Include string.h.
31096
31097 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31098
31099         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31100         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31101         * nptl/sysdeps/x86_64/Makefile: Moved ...
31102         * sysdeps/x86_64/nptl/Makefile: ... here.
31103         * nptl/sysdeps/x86_64/configure: Moved ...
31104         * sysdeps/x86_64/nptl/configure: ... here.
31105         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31106         * sysdeps/x86_64/nptl/configure.ac: ... here.
31107         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31108         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31109         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31110         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31111         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31112         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31113         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31114         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31115         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31116         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31117         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31118         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31119         * nptl/sysdeps/x86_64/tls.h: Moved ...
31120         * sysdeps/x86_64/nptl/tls.h: ... here.
31121         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31122         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31123         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31124         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31125
31126         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31127
31128 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31129
31130         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31131
31132 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31133
31134         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31135         type.
31136         [POSIX] (off_t): Likewise.
31137         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31138         [POSIX] (S_ISBLK): Require macro.
31139         [POSIX] (S_ISCHR): Likewise.
31140         [POSIX] (S_ISDIR): Likewise.
31141         [POSIX] (S_ISFIFO): Likewise.
31142         [POSIX] (S_ISREG): Likewise.
31143         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31144         optional-macro.
31145         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31146         type.
31147         [POSIX] (time_t): Likewise.
31148         [POSIX] (timer_t): Likewise.
31149
31150 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31151
31152         [BZ #17048]
31153         * posix/spawn_int.h (struct __spawn_action): Make the path string
31154         non-const to support deallocation.
31155         * posix/spawn_faction_addopen.c
31156         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31157         * posix/spawn_faction_destroy.c
31158         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31159         path in all spawn_do_open actions.
31160         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31161         posix_spawn_file_actions_addopen.
31162
31163 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31164
31165         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31166         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31167         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31168         conditional code always true.
31169         (__libc_vfork): New alias.
31170
31171 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31172
31173         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31174         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31175
31176         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31177
31178         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31179         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31180
31181         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31182         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31183
31184         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31185         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31186
31187 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31188
31189         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31190         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31191         multiarch strcmp for PPC64.
31192         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31193         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31194         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31195         multiarch optimizations.
31196         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31197         (__libc_ifunc_impl_list): Likewise.
31198
31199 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31200
31201         * benchtests/scripts/validate_benchout.py: New script.
31202         * benchtests/Makefile (bench-func): Call it.
31203         * benchtests/scripts/benchout.schema.json: New file.
31204
31205 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31206
31207         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31208         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31209         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31210         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31211         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31212         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31213         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31214         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31215         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31216         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31217         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31218         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31219         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31220         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31221         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31222         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31223         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31224         Moved ...
31225         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31226         ... here.
31227         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31228         Moved ...
31229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31230         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31231         Moved ...
31232         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31233         ... here.
31234         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31235         Moved ...
31236         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31237         ... here.
31238         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31239         Moved ...
31240         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31241         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31242         Moved ...
31243         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31244         ... here.
31245         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31246         Moved ...
31247         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31248         ... here.
31249         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31250         Moved ...
31251         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31252         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31253         Moved ...
31254         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31255         ... here.
31256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31257         Moved ...
31258         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31259         ... here.
31260         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31261         Moved ...
31262         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31263         ... here.
31264         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31265         Moved ...
31266         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31267         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31268         Moved ...
31269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31270         ... here.
31271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31272         Moved ...
31273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31274         ... here.
31275         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31276         Moved ...
31277         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31278         ... here.
31279         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31280         Moved ...
31281         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31282         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31283         Moved ...
31284         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31285         ... here.
31286         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31287         Moved ...
31288         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31289         ... here.
31290         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31291         Moved ...
31292         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31293         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31294         Moved ...
31295         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31296         ... here.
31297         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31298         Moved ...
31299         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31300         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31301         Moved ...
31302         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31304         Moved ...
31305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31306         ... here.
31307         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31308         Moved ...
31309         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31310         ... here.
31311         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31312         Moved ...
31313         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31314         ... here.
31315         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31316         Moved ...
31317         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31318         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31319         Moved ...
31320         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31321         ... here.
31322         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31323         Moved ...
31324         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31325         ... here.
31326         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31327         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31328         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31329         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31330         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31331         Moved ...
31332         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31333         ... here.
31334         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31335         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31336         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31337         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31338         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31339         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31340         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31341         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31342         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31343         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31344         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31345         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31346         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31347         Moved ...
31348         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31349         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31350         Moved ...
31351         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31352         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31353         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31354         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31355         Moved ...
31356         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31357         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31358         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31359         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31360         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31361         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31362         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31363
31364 2014-06-10  Wilco  <wdijkstr@arm.com>
31365
31366         * math/test-fenv-return.c: New file.
31367         * math/Makefile: Add new test test-fenv-return.
31368
31369 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31370
31371         [BZ #17042]
31372         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31373         when x - 1 is zero.
31374         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31375         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31376         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31377         0.0L for an argument of 1.0L.
31378         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31379         Likewise.
31380         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31381         value when x - 1 is zero.
31382         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31383         * sysdeps/i386/fpu/libm-test-ulps: Update.
31384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31385
31386 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31387
31388         [BZ #15119]
31389         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31390
31391 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31392
31393         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31394         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31395
31396 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31397
31398         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31399         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31400
31401         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31402         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31403
31404         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31405         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31406
31407         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31408         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31409
31410         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31411         if not already defined.
31412         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31413         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31414         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31415         (TLS_INIT_TP): Use it.
31416         (TLS_DEFINE_INIT_TP): New macro.
31417         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31418
31419 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31420
31421         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31422         constant.
31423         [POSIX] (IXANY): Likewise.
31424         [POSIX] (OLCUC): Likewise.
31425         [POSIX || POSIX2008] (CBAUD): Do not allow.
31426         [POSIX || POSIX2008] (DEFECHO): Likewise.
31427         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31428         [POSIX || POSIX2008] (ECHOKE): Likewise.
31429         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31430         [POSIX || POSIX2008] (EXTA): Likewise.
31431         [POSIX || POSIX2008] (EXTB): Likewise.
31432         [POSIX || POSIX2008] (FLUSHO): Likewise.
31433         [POSIX || POSIX2008] (LOBLK): Likewise.
31434         [POSIX || POSIX2008] (PENDIN): Likewise.
31435         [POSIX || POSIX2008] (SWTCH): Likewise.
31436         [POSIX || POSIX2008] (VDISCARD): Likewise.
31437         [POSIX || POSIX2008] (VDSUSP): Likewise.
31438         [POSIX || POSIX2008] (VLNEXT): Likewise.
31439         [POSIX || POSIX2008] (VREPRINT): Likewise.
31440         [POSIX || POSIX2008] (VSTATUS): Likewise.
31441         [POSIX || POSIX2008] (VWERASE): Likewise.
31442         (B*): Change to B[0123456789]*.
31443         * conform/data/time.h-data [POSIX || UNIX98]
31444         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31445         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31446         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31447         [POSIX] (tm_*): Do not allow.
31448
31449 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31450
31451         * Makefile (install): Don't set LANGUAGE.
31452         * Makefile.in (install): Likewise.
31453         * assert/Makefile (test-assert-ENV): Remove variable.
31454         (test-assert-perr-ENV): Likewise.
31455         * elf/Makefile (neededtest4-ENV): Likewise.
31456         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31457         [$(cross-compiling) = no]: Don't set LANGUAGE.
31458         * io/ftwtest-sh (LANG): Remove variable.
31459         * libio/Makefile (tst-widetext-ENV): Likewise.
31460         * manual/install.texi (Running make install): Don't refer to
31461         environment settings for make install.
31462         * INSTALL: Regenerated.
31463         * nptl/tst-tls6.sh: Don't set LANG.
31464         * posix/globtest.sh (LANG): Remove variable.
31465         * string/Makefile (tester-ENV): Likewise.
31466         (inl-tester-ENV): Likewise.
31467         (noinl-tester-ENV): Likewise.
31468         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31469         [$(cross-compiling) = no]: Don't set LANGUAGE.
31470         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31471         without explicit environment settings.
31472
31473 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31474
31475         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31476         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31477         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31478         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31479
31480 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31481
31482         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31483         other files in the crypt directory.
31484         * crypt/crypt.c: Remove duplicate includes.
31485         * crypt/crypt-entry.c: Likewise.
31486         * crypt/crypt_util.c: Likewise.
31487
31488 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31489
31490         * Makeconfig (run-program-env): New variable.
31491         (run-program-prefix-before-env): Likewise.
31492         (run-program-prefix-after-env): Likewise.
31493         (run-program-prefix): Define in terms of new variables.
31494         (built-program-cmd-before-env): New variable.
31495         (built-program-cmd-after-env): Likewise.
31496         (built-program-cmd): Define in terms of new variables.
31497         (test-program-prefix-before-env): New variable.
31498         (test-program-prefix-after-env): Likewise.
31499         (test-program-prefix): Define in terms of new variables.
31500         (test-program-cmd-before-env): New variable.
31501         (test-program-cmd-after-env): Likewise.
31502         (test-program-cmd): Define in terms of new variables.
31503         * Rules (make-test-out): Use $(run-program-env).
31504         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31505         (help): Do not mention environment variables.  Mention
31506         --timeoutfactor option.
31507         (timeoutfactor): New variable.
31508         (blacklist_exports): Remove function.
31509         (exports): Remove variable.
31510         (command): Do not include ${exports}.
31511         * manual/install.texi (Configuring and compiling): Do not mention
31512         test wrappers preserving environment variables.  Mention that last
31513         assignment to a variable must take precedence.
31514         * INSTALL: Regenerated.
31515         * benchtests/Makefile (run-bench): Use $(run-program-env).
31516         * catgets/Makefile ($(objpfx)test1.cat): Use
31517         $(built-program-cmd-before-env), $(run-program-env) and
31518         $(built-program-cmd-after-env).
31519         ($(objpfx)test2.cat): Do not specify environment variables
31520         explicitly.
31521         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31522         $(run-program-env) and $(built-program-cmd-after-env).
31523         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31524         $(run-program-env) and $(test-program-cmd-after-env).
31525         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31526         explicitly.
31527         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31528         run_program_env and test_program_cmd_after_env arguments.
31529         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31530         * elf/tst-pathopt.sh: Use run_program_env argument.
31531         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31532         $(test-wrapper-env) and $(run-program-env).
31533         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31534         run_program_env arguments.
31535         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31536         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31537         $(test-program-prefix-before-env), $(run-program-env) and
31538         $(test-program-prefix-after-env).
31539         ($(objpfx)tst-gettext2.out): Likewise.
31540         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31541         run_program_env and test_program_prefix_after_env arguments.
31542         * intl/tst-gettext2.sh: Likewise.
31543         * intl/tst-gettext4.sh: Do not set environment variables
31544         explicitly.
31545         * intl/tst-gettext6.sh: Likewise.
31546         * intl/tst-translit.sh: Likewise.
31547         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31548         $(test-program-prefix-before-env), $(run-program-env) and
31549         $(test-program-prefix-after-env).
31550         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31551         run_program_env and test_program_prefix_after_env arguments.
31552         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31553         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31554         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31555         explicitly with each use of ${test_wrapper_env}.
31556         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31557         $(test-program-prefix-before-env), $(run-program-env) and
31558         $(test-program-prefix-after-env).
31559         * posix/tst-getconf.sh: Do not set environment variables
31560         explicitly.
31561         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31562         run_program_env and test_program_prefix_after_env arguments.
31563         * stdio-common/tst-printf.sh: Do not set environment variables
31564         explicitly.
31565         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31566         $(test-program-prefix-before-env), $(run-program-env) and
31567         $(test-program-prefix-after-env).
31568         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31569         run_program_env and test_program_prefix_after_env arguments.
31570         Split $test calls into $test_pre and $test.
31571         * timezone/Makefile (build-testdata): Use
31572         $(built-program-cmd-before-env), $(run-program-env) and
31573         $(built-program-cmd-after-env).
31574
31575 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31576
31577         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31578         strlen for non SHARED builds.
31579
31580 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31581
31582         * nptl/allocatestack.c (check_list): Inlined function...
31583         (__reclaim_stacks): ... here.
31584
31585 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31586
31587         [BZ #15698]
31588         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31589         memory overrun.
31590
31591 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31592
31593         * Rules (make-test-out): Include
31594         LOCPATH=$(common-objpfx)localedata in default environment.
31595         * debug/Makefile (tst-chk1-ENV): Remove variable.
31596         (tst-chk2-ENV): Likewise.
31597         (tst-chk3-ENV): Likewise.
31598         (tst-chk4-ENV): Likewise.
31599         (tst-chk5-ENV): Likewise.
31600         (tst-chk6-ENV): Likewise.
31601         (tst-lfschk1-ENV): Likewise.
31602         (tst-lfschk2-ENV): Likewise.
31603         (tst-lfschk3-ENV): Likewise.
31604         (tst-lfschk4-ENV): Likewise.
31605         (tst-lfschk5-ENV): Likewise.
31606         (tst-lfschk6-ENV): Likewise.
31607         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31608         (tst-iconv7-ENV): Likewise.
31609         * intl/Makefile (LOCPATH-ENV): Likewise.
31610         (tst-codeset-ENV): Likewise.
31611         (tst-gettext3-ENV): Likewise.
31612         (tst-gettext5-ENV): Likewise.
31613         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31614         (tst-fopenloc-ENV): Likewise.
31615         (tst-fgetws-ENV): Remove variable.
31616         (tst-ungetwc1-ENV): Likewise.
31617         (tst-ungetwc2-ENV): Likewise.
31618         (bug-ungetwc2-ENV): Likewise.
31619         (tst-swscanf-ENV): Likewise.
31620         (bug-ftell-ENV): Likewise.
31621         (tst-fgetwc-ENV): Likewise.
31622         (tst-fseek-ENV): Likewise.
31623         (tst-ftell-partial-wide-ENV): Likewise.
31624         (tst-ftell-active-handler-ENV): Likewise.
31625         (tst-ftell-append-ENV): Likewise.
31626         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31627         (tst-regexloc-ENV): Likewise.
31628         (bug-regex1-ENV): Likewise.
31629         (tst-regex-ENV): Likewise.
31630         (tst-regex2-ENV): Likewise.
31631         (bug-regex5-ENV): Likewise.
31632         (bug-regex6-ENV): Likewise.
31633         (bug-regex17-ENV): Likewise.
31634         (bug-regex18-ENV): Likewise.
31635         (bug-regex19-ENV): Likewise.
31636         (bug-regex20-ENV): Likewise.
31637         (bug-regex22-ENV): Likewise.
31638         (bug-regex23-ENV): Likewise.
31639         (bug-regex25-ENV): Likewise.
31640         (bug-regex26-ENV): Likewise.
31641         (bug-regex30-ENV): Likewise.
31642         (bug-regex32-ENV): Likewise.
31643         (bug-regex33-ENV): Likewise.
31644         (bug-regex34-ENV): Likewise.
31645         (bug-regex35-ENV): Likewise.
31646         (tst-rxspencer-ENV): Likewise.
31647         (tst-rxspencer-no-utf8-ENV): Likewise.
31648         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31649         (tst-sscanf-ENV): Likewise.
31650         (tst-swprintf-ENV): Likewise.
31651         (tst-swscanf-ENV): Likewise.
31652         (test-vfprintf-ENV): Likewise.
31653         (scanf13-ENV): Likewise.
31654         (bug14-ENV): Likewise.
31655         (tst-grouping-ENV): Likewise.
31656         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31657         (tst-strtod3-ENV): Likewise.
31658         (tst-strtod4-ENV): Likewise.
31659         (tst-strtod5-ENV): Likewise.
31660         (testmb2-ENV): Likewise./
31661         * string/Makefile (tst-strxfrm-ENV): Likewise.
31662         (tst-strxfrm2-ENV): Likewise.
31663         (bug-strcoll1-ENV): Likewise.
31664         (test-strcasecmp-ENV): Likewise.
31665         (test-strncasecmp-ENV): Likewise.
31666         * time/Makefile (tst-strptime-ENV): Likewise.
31667         (tst-ftime_l-ENV): Likewise.
31668         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31669         (tst-mbrtowc-ENV): Likewise.
31670         (tst-wcrtomb-ENV): Likewise.
31671         (tst-mbrtowc2-ENV): Likewise.
31672         (tst-c16c32-1-ENV): Likewise.
31673         (tst-mbsnrtowcs-ENV): Likewise.
31674
31675 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31676
31677         * manual/resource.texi (How to get information about the memory
31678         subsystem?): Fix typo.
31679         Reported by Peon de la Parra Ivan <peon@keba.com>
31680
31681 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31682
31683         [BZ #16882]
31684         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31685         (pthread_spin_lock): Branch out of spin loop to proper location.
31686         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31687         (pthread_spin_lock): Likewise.
31688
31689         * nptl/tst-spin4.c: New test.
31690         * nptl/Makefile (tests): Add tst-spin4.
31691
31692 2014-06-03  Andreas Schwab  <schwab@suse.de>
31693
31694         [BZ #15946]
31695         * resolv/res_send.c (send_dg): Reload file descriptor after
31696         calling reopen.
31697
31698 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31699
31700         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31701
31702 2014-06-03  Richard Henderson  <rth@redhat.com>
31703
31704         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31705         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31706         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31707         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31708         in the SAVE_PID block.
31709         (__libc_vfork): New alias.
31710         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31711
31712         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31713         child in registers, not on the stack.  Remove RESET_PID conditionals.
31714         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31715
31716 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31717
31718         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31719
31720 2014-06-03  Wilco  <wdijkstr@arm.com>
31721
31722         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31723         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31724         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31725         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31726         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31727         Likewise.
31728
31729 2014-06-03  Wilco  <wdijkstr@arm.com>
31730
31731         * sysdeps/aarch64/fpu/math_private.h
31732         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31733         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31734         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31735         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31736         Fix declarations.
31737
31738 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31739
31740         * crypt/crypt-private.h: Include ufc-crypt.h.
31741         (__b64_from_24bit): Declare extern.
31742         * crypt/crypt_util.c(__b64_from_24bit): New function.
31743         (b64t): New static const variable.
31744         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31745         (b64t): Remove variable.
31746         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31747         * crypt/sha256-crypt.c: Include crypt-private.h.
31748         (b64t): Remove variable.
31749         (__sha256_crypt_r): Remove b64_from_24bit and replace
31750         with __b64_from_24bit.
31751         * crypt/sha512-crypt.c: Likewise.
31752
31753 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31754
31755         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31756         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31757         Label the code __libc_vfork rather than __vfork.
31758         [!NOT_IN_libc] (vfork): Define as weak alias.
31759         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31760         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31761         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31762
31763 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31764
31765         * malloc/malloc.c (malloc_info): Fix format specifier for
31766         n_mmaps.
31767
31768 2014-06-02  Wilco  <wdijkstr@arm.com>
31769
31770         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31771         FPCR write.
31772
31773 2014-06-02  Wilco  <wdijkstr@arm.com>
31774
31775         [BZ #17009]
31776         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31777         Rewrite to reduce FPCR/FPSR accesses.
31778
31779 2014-06-01  David S. Miller  <davem@davemloft.net>
31780
31781         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31782
31783 2014-05-31  David S. Miller  <davem@davemloft.net>
31784
31785         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31786         to occur in round to nearest mode when |x| >= 2.0
31787
31788 2014-05-30  Richard Henderson  <rth@twiddle.net>
31789
31790         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31791         (PSEUDO_RET_NOERRNO): Remove.
31792         (ret): Don't redefine.
31793         (ret_NOERRNO): Define in terms of ret.
31794         (ret_ERRVAL): Likewise.
31795
31796         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31797         use of PSEUDO_RET; perform the error check directly.
31798
31799 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31800
31801         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31802         with __int128_t.
31803
31804 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31805
31806         * malloc/malloc (malloc_info): Fix formatting.
31807
31808 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31809             Roland McGrath  <roland@hack.frob.com>
31810
31811         * malloc/malloc (malloc_info): Also print mmapped statistics.
31812
31813 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31814
31815         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31816         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31817
31818 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31819
31820         * malloc/malloc.c (malloc_info): Inline mi_arena.
31821
31822 2014-05-29  Richard Henderson  <rth@twiddle.net>
31823
31824         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31825         Remove comma before expanding ASM_ARGS_##nr.
31826         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31827         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31828         of ASM_ARGS_##nr.
31829         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31830         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31831         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31832         (ASM_ARGS_1): Add leading comma.
31833
31834         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31835         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31836         to __errno_location.
31837         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31838         Remove the expected plt for __errno_location.
31839
31840         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31841         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31842         call to __read_tp.
31843
31844         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31845         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31846         it and break it down.
31847         (DOCARGS_0, DOCARGS_1): Do nothing.
31848         (DOCARGS_2): Update to store into the new stack frame.
31849         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31850         (UNDOCARGS_1): Update to restore from the new stack frame.
31851         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31852         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31853
31854         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31855         (SINGLE_THREAD_P): New parameter for result regno.
31856         (PSEUDO): Update to match; use cbz instead of beq.
31857
31858         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31859         Use ENTRY to define the _nocancel entry point.  Share the syscall
31860         and syscall error check paths with the cancel path.
31861         (PSEUDO_END): New.
31862
31863         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31864         whitespace; tabs before and after asm mnemonics.
31865
31866 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31867
31868         [BZ #15132]
31869         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31870         Call fstat64 or stat64 internally, depending on arguments passed.
31871         Replace stat buffer argument with file descriptor argument.
31872         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31873         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31874         Pass fd to __internal_statvfs instead of calling fstat64.
31875         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31876         Pass fd to __internal_statvfs64 instead of calling fstat64.
31877         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31878         Pass -1 to __internal_statvfs instead of calling stat64.
31879         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31880         Pass -1 to __internal_statvfs64 instead of calling stat64.
31881
31882 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31883
31884         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31885         that was previously under [RESET_PID].
31886         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31887
31888         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31889         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31890
31891 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31892
31893         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31894
31895         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31896         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31897
31898 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31899
31900         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31901
31902 2014-05-27  Andreas Schwab  <schwab@suse.de>
31903
31904         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31905         TLS_INIT_TP macro.
31906         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31907         * elf/rtld.c (init_tls, dl_main): Likewise.
31908         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31909         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31910         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31911         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31912         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31913         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31914         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31915         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31916         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31917         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31918         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31919         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31920         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31921         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31922         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31923         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31924         * sysdeps/generic/tls.h: Update description.
31925
31926 2014-05-27  Will Newton  <will.newton@linaro.org>
31927
31928         [BZ #16990]
31929         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31930         and restore r2 rather than just restoring.
31931
31932 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31933
31934         [BZ #16724]
31935         * libio/tst-ftell-append.c: New test case.
31936         * libio/Makefile (tests): Add test case.
31937         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31938         append mode.
31939         * libio/wfileops.c (do_ftell_wide): Likewise.
31940
31941 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31942
31943         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31944
31945         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31946         ...
31947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31949         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31950         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31951         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31952         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31953         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31954         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31955         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31956         Moved ...
31957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31958         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31959         Moved ...
31960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31961         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31962         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31963         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31964         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31965         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31966         ...
31967         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31968         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31969         Moved ...
31970         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31971         here.
31972         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31973         ...
31974         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31975         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31976         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31977
31978         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31979         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31980         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31981         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31982
31983         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31984         merge into ...
31985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31986         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31987         ...
31988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31989         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31990         ...
31991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31992         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31993         Moved ...
31994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31995         here.
31996         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31997         Moved ...
31998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31999         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32000         Moved ...
32001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32002
32003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32004         conditional [RESET_PID].
32005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32006         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32007         removed.
32008         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32009         removed.
32010
32011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32012         <tcb-offsets.h>.
32013         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32014         (__libc_vfork): New strong alias.
32015         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32016         removed.
32017         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32018         Removed.
32019
32020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32021         <tcb-offsets.h>.
32022         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32023         (__libc_vfork): New strong alias.
32024         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32025         removed.
32026         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32027         removed.
32028
32029 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32030
32031         * malloc/malloc.c (mi_arena): New function.
32032         (malloc_info): Remove nested function mi_arena. Call non-nosted
32033         function mi_arena.
32034
32035 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32036
32037         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32038         by insrwi.
32039         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32040         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32041         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32042         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32043         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32044         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32045         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32046
32047 2014-05-26  Andreas Schwab  <schwab@suse.de>
32048
32049         [BZ #16984]
32050         * locale/programs/repertoire.c (repertoire_read): Add slash
32051         between I18NPATH element and file name.
32052         * locale/programs/locfile.c (locfile_read): Likewise.
32053
32054 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32055
32056         * nptl/pthread_mutexattr_settype.c
32057         (__pthread_mutexattr_settype):
32058         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32059
32060 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32061
32062         * nptl/tst-mutex5 (do_test):
32063         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32064
32065 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32066
32067         * benchtests/README: Document 'init' directive.
32068         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32069         BENCH_INIT.
32070         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32071         (parse_file): Recognize 'init' directive.
32072
32073 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32074
32075         [BZ #16796]
32076         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32077         alignment of struct pthread.
32078
32079 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32080
32081         [BZ #16878]
32082         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32083         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32084         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32085         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32086
32087 2014-05-25  Richard Henderson  <rth@twiddle.net>
32088
32089         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32090         (SINGLE_THREAD_P_PIC): Remove.
32091         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32092         (SINGLE_THREAD_P_PIC): Remove.
32093
32094         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32095         branch to syscall error ...
32096         (PSEUDO): ... here.
32097         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32098         from __local_syscall_error to .Lsyscall_error.
32099         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32100         (SYSCALL_ERROR): Update label name.
32101
32102         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32103         Do not use DOARGS/UNDOARGS.
32104         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32105         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32106         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32107         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32108         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32109
32110         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32111         block comment.
32112
32113         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32114         define if !NOT_IN_libc.
32115         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32116         define with non-default symbol versions.
32117
32118 2014-05-23  Richard Henderson  <rth@twiddle.net>
32119
32120         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32121         (vfork, __vfork): Define via compat_symbol.
32122
32123         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32124         [!HAVE_IFUNC] (vfork_compat): Remove.
32125         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32126
32127 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32128
32129         [BZ #16978]
32130         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32131         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32132         variable.
32133
32134 2014-05-23  Richard Henderson  <rth@twiddle.net>
32135
32136         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32137         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32138         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32139         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32140
32141         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32142         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32143         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32144         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32145         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32146         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32147         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32148         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32149         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32150         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32151         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32152         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32153         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32154         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32155         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32156         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32157         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32158         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32159         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32160         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32161         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32162         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32163         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32164         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32165         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32166         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32167         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32168         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32169         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32170         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32171         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32172         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32173         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32174         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32175         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32176         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32177         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32178         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32179         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32180         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32181         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32182         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32183         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32184         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32185         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32186         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32187         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32188         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32189         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32190         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32191         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32192         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32193         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32194         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32195         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32196         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32197
32198         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32199         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32200         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32201         before exiting on error.
32202         (__libc_vfork): New strong alias.
32203         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32204         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32205
32206         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32207         that was previously under [RESET_PID].
32208         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32209
32210         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32211
32212 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32213
32214         [BZ #16977]
32215         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32216         value when x - 1 is zero.
32217         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32218         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32219         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32220         0.0L for an argument of 1.0L.
32221         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32222         Likewise.
32223         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32224         value when x - 1 is zero.
32225         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32226         * sysdeps/i386/fpu/libm-test-ulps: Update.
32227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32228
32229 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32230
32231         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32232         alphasort and versionsort.
32233
32234 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32235
32236         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32237         macro.
32238         [copysignf]: Likewise.
32239
32240 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32241
32242         * crypt/md5-crypt.c: Fix formatting.
32243
32244 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32245
32246         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32247         (b64_from_24bit): New function.
32248
32249 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32250
32251         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32252         libc_hidden_builtin_def to ifunc.
32253         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32254         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32255
32256 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32257
32258         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32259         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32260
32261 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32262
32263         * nscd/Depend (linuxthreads): Remove.
32264         (nptl): Add.
32265         * resolv/Depend (linuxthreads): Remove.
32266         * rt/Depend (linuxthreads): Remove.
32267
32268         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32269         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32270         $(common-objpfx)elf/.
32271         (link-libc-before-gnulib): Likewise.
32272         (elfobjdir): Remove variable.
32273         * Makefile (install): Use $(elf-objpfx) instead of
32274         $(common-objpfx)elf/.
32275         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32276         $(elfobjdir)/.
32277         (link-libc-deps): Likewise.
32278         ($(common-objpfx)libc.so): Likewise.
32279         ($(common-objpfx)linkobj/libc.so): Likewise.
32280         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32281         instead of $(common-objpfx)elf/.
32282         (symbolic-link-list): Likewise.
32283         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32284         [$(cross-compiling) = no]: Likewise.
32285         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32286         $(elfobjdir)/.
32287         (static-gnulib-arch): Likewise.
32288         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32289         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32290         $(common-objpfx)elf/.
32291
32292 2014-05-21  Richard Henderson  <rth@redhat.com>
32293
32294         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32295         (SINGLE_THREAD_P): Use the correct width load.  Fold
32296         into the ldr offset.
32297
32298         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32299         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32300
32301 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32302
32303         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32304         (libgcc_s_resume): Use __attribute_used__.
32305         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32306         Likewise.
32307
32308 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32309
32310         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32311         optimization when used with float constants.
32312
32313         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32314
32315 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32316
32317         [BZ #16915]
32318         * locale/nl_langinfo_l.c: Make direct reference to every
32319         _nl_current_CATEGORY symbol.
32320         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32321         (tests-static): Add tst-langinfo-static.
32322         (tests-special): Add tst-langinfo-static.out.
32323         ($(objpfx)tst-langinfo.out): Redirect output.
32324         ($(objpfx)tst-langinfo-static.out): New.
32325         * localedata/tst-langinfo.sh: Send output to stdout.
32326         * localedata/tst-langinfo-static.c: New file.
32327
32328         [BZ #16965]
32329         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32330         when the shift amount is modulo the limb size.
32331
32332 2014-05-20  Richard Henderson  <rth@redhat.com>
32333
32334         [BZ #16967]
32335         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32336         Change type of sa_flags from unsigned int to int.
32337
32338         [BZ #16966]
32339         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32340
32341         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32342
32343 2014-05-20  Will Newton  <will.newton@linaro.org>
32344
32345         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32346         Test the return value of the system call in the nocancel case.
32347
32348 2014-05-20  Will Newton  <will.newton@linaro.org>
32349             Yvan Roux  <yvan.roux@linaro.org>
32350
32351         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32352         #include of asm/ptrace.h.
32353         (PTRACE_GET_THREAD_AREA): Remove #undef.
32354         (PTRACE_GETHBPREGS): Likewise.
32355         (PTRACE_SETHBPREGS): Likewise.
32356         (struct user_regs_struct): New structure.
32357         (struct user_fpsimd_struct): New structure.
32358         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32359         #include of asm/ptrace.h and second #include of sys/user.h.
32360         (PTRACE_GET_THREAD_AREA): Remove #undef.
32361         (PTRACE_GETHBPREGS): Likewise.
32362         (PTRACE_SETHBPREGS): Likewise.
32363         (ELF_NGREG): Use new struct user_regs_struct.
32364         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32365
32366 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32367
32368         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32369         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32370
32371 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32372
32373         [BZ #16958]
32374         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32375         membar to avoid block loads/stores to overlap previous stores.
32376
32377 2014-05-17  Richard Henderson  <rth@redhat.com>
32378
32379         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32380         Create the __##syscall_name##_nocancel entry point.
32381         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32382         Remove; let the sysdep-cancel.h code create it.
32383
32384 2014-05-17  David S. Miller  <davem@davemloft.net>
32385
32386         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32387         Protect with __USE_GNU.
32388         (TIOCSET_TEMPT): Likewise.
32389         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32390         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32391         these are already provided in bits/ioctl-types.h
32392
32393 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32394
32395         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32396         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32397
32398         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32399         Use wait4 regardless of [__NR_waitpid].
32400
32401 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32402
32403         PR libgcc/60166
32404         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32405         (_FP_NANSIGN_Q): Set the quiet bit.
32406
32407 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32408
32409         * benchtests/Makefile
32410         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32411         not $(common-objpfx)math/libm.so.
32412         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32413         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32414         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32415         $(common-objpfx)dlfcn/libdl.so.
32416         ($(objpfx)tst-audit8): Depend on $(libm), not
32417         $(common-objpfx)math/libm.so.
32418         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32419         not $(common-objpfx)dlfcn/libdl.so.
32420         * math/Makefile
32421         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32422         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32423         [$(build-shared) = yes].
32424         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32425         $(common-objpfx)nptl/libpthread.so.
32426         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32427         $(common-objpfx)math/libm.so$(libm.so-version) or
32428         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32429         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32430         $(common-objpfx)dlfcn/libdl.so.
32431         * setjmp/Makefile (link-libm): Remove variable.
32432         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32433         * stdio-common/Makefile (link-libm): Remove variable.
32434         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32435         * stdlib/Makefile (link-libm): Remove variable.
32436         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32437         ($(objpfx)tst-strtod-round): Likewise.
32438         ($(objpfx)tst-tininess): Likewise.
32439         ($(objpfx)tst-strtod-underflow): Likewise.
32440         ($(objpfx)tst-strtod6): Likewise.
32441         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32442         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32443         $(common-objpfx)dlfcn/libdl.so.
32444
32445 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32446
32447         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32448         BSD terminal modes definitions.
32449
32450 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32451
32452         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32453         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32454
32455         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32456         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32457         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32458         Don't do #include_next.
32459         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32460         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32461         Don't do #include_next.
32462         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32463         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32464         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32465         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32466
32467 2014-05-16  Allan McRae  <allan@archlinux.org>
32468
32469         * po/sv.po: Update Swedish translation from translation project.
32470
32471         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32472         in sed expression.
32473
32474 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32475
32476         [BZ #16917]
32477         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32478         errno if the TIOCGPTN ioctl fails with an error different than
32479         EINVAL.
32480         * login/tst-ptsname.c: New file.
32481         * login/Makefile (tests): Add tst-ptsname.
32482
32483         [BZ #16943]
32484         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32485         and prlimit64.
32486
32487 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32488
32489         [BZ #16849]
32490         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32491         herrno to return EAI_AGAIN.
32492
32493 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32494
32495         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32496         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32497         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32498         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32499         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32500         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32501         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32502         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32503         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32504         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32505         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32506         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32507         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32508         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32509         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32510         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32511         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32512         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32513         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32514         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32515         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32516         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32517         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32518         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32519         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32520         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32521         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32522         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32523         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32524         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32525         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32526         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32527         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32528         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32529         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32530         Moved ...
32531         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32532         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32533         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32534         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32535         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32536         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32537         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32538         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32539         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32540         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32541         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32542         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32543         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32544         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32545         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32546         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32547         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32548         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32549         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32550         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32551         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32552         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32553         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32554         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32555         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32557         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32558         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32559         Moved ...
32560         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32561         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32562         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32563         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32564         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32565         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32566         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32567         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32568         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32569         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32570         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32571         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32572         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32573         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32574         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32575         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32576         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32577         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32578         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32579         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32580         Moved ...
32581         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32582         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32583         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32584
32585         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32586         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32587         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32588         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32589         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32590         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32591         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32592         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32593         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32594         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32595         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32596         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32597         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32598         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32599         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32600         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32601         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32602         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32603         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32604         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32605         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32606         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32607         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32608         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32609         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32610         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32611         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32612         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32613         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32614         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32615         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32616
32617         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32618         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32619
32620         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32621         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32622         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32623         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32624         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32625         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32626         Moved ...
32627         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32628         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32629         Moved ...
32630         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32631         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32632         Moved ...
32633         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32634         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32635         Moved ...
32636         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32637         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32638         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32639         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32640         Moved ...
32641         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32642         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32643         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32644         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32645         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32646         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32647         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32648         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32649         Moved ...
32650         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32651         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32652         Moved ...
32653         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32654         ... here.
32655         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32656         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32657         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32658         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32659         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32660         Moved ...
32661         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32662         ... here.
32663         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32664         Moved ...
32665         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32666         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32667         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32668         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32669         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32670         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32671         Moved ...
32672         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32673         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32674         Moved ...
32675         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32676         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32677         Moved ...
32678         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32679         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32680         Moved ...
32681         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32682         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32683         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32684         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32685         Moved ...
32686         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32687         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32688         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32689         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32690         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32691         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32692         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32693         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32694         Moved ...
32695         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32696         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32697         Moved ...
32698         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32699         ... here.
32700         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32701         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32702         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32703         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32704         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32705         Moved ...
32706         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32707         ... here.
32708         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32709         Moved ...
32710         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32711         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32712         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32713         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32714         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32715         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32716         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32717         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32718         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32719         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32720         Moved ...
32721         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32722         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32723         Moved ...
32724         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32725         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32726         Moved ...
32727         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32728         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32729         Moved ...
32730         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32731         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32732         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32733         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32734         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32735         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32736         Moved ...
32737         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32738         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32739         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32740         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32741         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32742         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32743         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32744         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32745         Moved ...
32746         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32747         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32748         Moved ...
32749         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32750         ... here.
32751         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32752         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32753         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32754         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32755         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32756         Moved ...
32757         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32758         ... here.
32759         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32760         Moved ...
32761         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32762         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32763         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32764         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32765         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32766         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32767         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32768         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32769         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32770         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32771         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32772
32773         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32774         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32775
32776         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32777         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32778
32779         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32780         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32781         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32782         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32783         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32784         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32785         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32786         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32787         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32788         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32789         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32790         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32791         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32792         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32793         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32794         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32795         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32796         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32797         Moved ...
32798         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32799         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32800         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32801         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32802         Moved ...
32803         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32804         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32805         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32806         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32807         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32808         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32809         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32810         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32811         Moved ...
32812         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32813         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32814         Moved ...
32815         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32816         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32817         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32818         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32819         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32820         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32821         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32822         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32823         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32824         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32825         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32826         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32827         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32828         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32829         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32830         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32831         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32832
32833         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32834         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32835         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32836         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32837         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32838
32839         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32840         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32841         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32842         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32843         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32844         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32845         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32846         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32847         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32848         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32849
32850         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32851         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32852
32853         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32854         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32855         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32856         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32857         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32858         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32859         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32860         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32861         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32862         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32863         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32864         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32865         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32866         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32867         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32868         Update #include.
32869         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32870         Likewise.
32871         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32872         Likewise.
32873         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32874         Likewise.
32875         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32876         Likewise.
32877         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32878         Likewise.
32879         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32880         Likewise.
32881         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32882         Likewise.
32883         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32884         Likewise.
32885         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32886         Likewise.
32887         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32888         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32889         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32890         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32891         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32892         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32893         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32894         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32895         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32896         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32897         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32898         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32899         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32900         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32901         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32902
32903         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32904         that was previously under [RESET_PID].
32905         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32906         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32907         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32908
32909         * sysdeps/i386/nptl/Implies: New file.
32910         * sysdeps/x86_64/nptl/Implies: New file.
32911         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32912         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32913         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32914         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32915
32916         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32917         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32918         (__libc_vfork): New strong alias.
32919         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32920         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32921
32922         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32923         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32924         (__libc_vfork): New strong alias.
32925         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32926         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32927
32928         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32929         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32930         (__libc_vfork): New strong alias.
32931         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32932         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32933         * nptl/pt-vfork.c: New file.
32934         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32935         (libpthread: GLIBC_2.20): New version set (empty).
32936
32937 2014-05-14  Will Newton  <will.newton@linaro.org>
32938
32939         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32940         rather than #if.
32941
32942 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32943
32944         [BZ #16564]
32945         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32946         arguments with exponent 65 or above.
32947         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32948         arguments 0x1p113L or above.
32949         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32950         to arguments 0x1p107L or above.
32951         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32952         positive arguments with exponent 65 or above.
32953         * math/auto-libm-test-in: Add more tests of log1p.
32954         * math/auto-libm-test-out: Regenerated.
32955
32956         [BZ #16928]
32957         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32958         non-finite arguments is +0.
32959         * math/s_cacosf.c (__cacosf): Likewise.
32960         * math/s_cacosl.c (__cacosl): Likewise.
32961         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32962         * sysdeps/i386/fpu/libm-test-ulps: Update.
32963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32964
32965         [BZ #16927]
32966         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32967         value.
32968         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32969         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32970         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32971         for explicit high bit of mantissa when testing for argument equal
32972         to 1.
32973         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32974         * sysdeps/i386/fpu/libm-test-ulps: Update.
32975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32976
32977         [BZ #16516]
32978         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32979         (__erf): Scale by 16 instead of 8 in potentially underflowing
32980         case.  Ensure exception if result actually underflows.
32981         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32982         (__erff): Scale by 16 instead of 8 in potentially underflowing
32983         case.  Ensure exception if result actually underflows.
32984         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32985         (efx8): Remove variable.
32986         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32987         case.  Ensure exception if result actually underflows.
32988         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32989         (efx8): Remove variable.
32990         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32991         case.  Ensure exception if result actually underflows.
32992         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32993         (efx8): Remove variable.
32994         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32995         case.  Ensure exception if result actually underflows.
32996         * math/auto-libm-test-in: Add more tests of erf.
32997         * math/auto-libm-test-out: Regenerated.
32998
32999 2014-05-14  Andreas Schwab  <schwab@suse.de>
33000
33001         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33002         Remove code conditionalized on USE___THREAD.
33003
33004         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33005         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33006         not definedness.
33007
33008 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33009
33010         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33011         Define unconditionally.
33012         (__ASSUME_O_CLOEXEC): Likewise.
33013         (__ASSUME_SOCK_CLOEXEC): Likewise.
33014         (__ASSUME_IN_NONBLOCK): Likewise.
33015         (__ASSUME_PIPE2): Likewise.
33016         (__ASSUME_EVENTFD2): Likewise.
33017         (__ASSUME_SIGNALFD4): Likewise.
33018         (__ASSUME_DUP3): Likewise.
33019         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33020         (__ASSUME_DUP3): Do not define.
33021         (__ASSUME_EVENTFD2): Likewise.
33022         (__ASSUME_IN_NONBLOCK): Likewise.
33023         (__ASSUME_O_CLOEXEC): Likewise.
33024         (__ASSUME_PIPE2): Likewise.
33025         (__ASSUME_SIGNALFD4): Likewise.
33026         (__ASSUME_SOCK_CLOEXEC): Likewise.
33027         (__ASSUME_UTIMES): Undefine.
33028         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33029         (__ASSUME_UTIMES): Do not define.
33030         (__ASSUME_O_CLOEXEC): Likewise.
33031         (__ASSUME_SOCK_CLOEXEC): Likewise.
33032         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33033         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33034         0x020621].
33035         (__ASSUME_PIPE2): Likewise.
33036         (__ASSUME_EVENTFD2): Likewise.
33037         (__ASSUME_SIGNALFD4): Likewise.
33038         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33039         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33040         Do not define.
33041         (__ASSUME_EVENTFD2): Likewise.
33042         (__ASSUME_SIGNALFD4): Likewise.
33043         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33044         (__ASSUME_32BITUIDS): Likewise.
33045         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33046         (__ASSUME_IPC64): Likewise.
33047         (__ASSUME_ST_INO_64_BIT): Likewise.
33048         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33049         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33050         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33051         (__ASSUME_UTIMES): Do not define.
33052         (__ASSUME_PSELECT): Likewise.
33053         (__ASSUME_PPOLL): Likewise.
33054         (__ASSUME_O_CLOEXEC): Likewise.
33055         (__ASSUME_SOCK_CLOEXEC): Likewise.
33056         (__ASSUME_IN_NONBLOCK): Likewise.
33057         (__ASSUME_PIPE2): Likewise.
33058         (__ASSUME_EVENTFD2): Likewise.
33059         (__ASSUME_SIGNALFD4): Likewise.
33060         (__ASSUME_DUP3): Likewise.
33061         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33062         (__ASSUME_UTIMES): Likewise.
33063         (__ASSUME_O_CLOEXEC): Likewise.
33064         (__ASSUME_SOCK_CLOEXEC): Likewise.
33065         (__ASSUME_IN_NONBLOCK): Likewise.
33066         (__ASSUME_PIPE2): Likewise.
33067         (__ASSUME_EVENTFD2): Likewise.
33068         (__ASSUME_SIGNALFD4): Likewise.
33069         (__ASSUME_DUP3): Likewise.
33070         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33071         (__ASSUME_UTIMES): Likewise.
33072         (__ASSUME_O_CLOEXEC): Likewise.
33073         (__ASSUME_SOCK_CLOEXEC): Likewise.
33074         (__ASSUME_IN_NONBLOCK): Likewise.
33075         (__ASSUME_PIPE2): Likewise.
33076         (__ASSUME_EVENTFD2): Likewise.
33077         (__ASSUME_SIGNALFD4): Likewise.
33078         (__ASSUME_DUP3): Likewise.
33079         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33080         Likewise.
33081         (__ASSUME_UTIMES): Likewise.
33082         (__ASSUME_EVENTFD2): Likewise.
33083         (__ASSUME_SIGNALFD4): Likewise.
33084         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33085         (__ASSUME_O_CLOEXEC): Likewise.
33086         (__ASSUME_SOCK_CLOEXEC): Likewise.
33087         (__ASSUME_IN_NONBLOCK): Likewise.
33088         (__ASSUME_PIPE2): Likewise.
33089         (__ASSUME_EVENTFD2): Likewise.
33090         (__ASSUME_SIGNALFD4): Likewise.
33091         (__ASSUME_DUP3): Likewise.
33092         (__ASSUME_UTIMES): Undefine.
33093
33094         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33095         feclearexcept.  Remove symbol versioning code.
33096         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33097         symbol versioning code.
33098         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33099         symbol versioning code.
33100         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33101         feupdateenv.  Remove symbol versioning code.
33102         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33103         fegetexceptflag.  Remove symbol versioning code.
33104         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33105         fesetexceptflag.  Remove symbol versioning code.
33106         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33107         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33108         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33109         (__posix_fadvise64_l32): Remove prototype.
33110         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33111         code.
33112
33113 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33114
33115         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33116         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33117         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33118         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33119
33120 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33121
33122         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33123         current working directory
33124
33125 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33126
33127         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33128         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33129         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33130         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33131         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33132         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33133         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33134         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33135         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33136         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33137         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33138         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33139         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33140         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33141         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33142         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33143         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33144         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33145         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33146         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33147         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33148         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33149         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33150         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33151         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33152         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33153         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33154         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33155         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33156         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33157         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33158         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33159         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33160         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33161         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33162         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33163         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33164         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33165         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33166         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33167         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33168         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33169
33170         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33171         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33172
33173         * sysdeps/unix/sysv/linux/arm/Makefile
33174         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33175         Add rt-aeabi_unwind_cpp_pr1.
33176         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33177         Add nptl-aeabi_unwind_cpp_pr1.
33178         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33179         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33180         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33181         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33182         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33183         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33184
33185         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33186         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33187         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33188         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33189
33190         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33191         Deconditionalize the code that was previously under [RESET_PID].
33192         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33193
33194         * sysdeps/generic/exit-thread.h: New file.
33195         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33196         * include/unistd.h (__exit_thread): Remove declaration.
33197         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33198         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33199         * csu/libc-start.c: Include <exit-thread.h>.
33200         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33201         * nptl/pthread_create.c: Include <exit-thread.h>.
33202         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33203         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33204         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33205         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33206         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33207         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33208         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33209         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33210         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33211         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33212         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33213         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33214         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33215         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33216         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33217         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33218         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33219
33220 2014-05-13  Andreas Schwab  <schwab@suse.de>
33221
33222         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33223
33224 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33225
33226         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33227         (__ASSUME_UTIMES): Do not condition on kernel version.
33228         (__ASSUME_PSELECT): Define unconditionally.
33229         (__ASSUME_PPOLL): Likewise.
33230         (__ASSUME_ATFCTS): Likewise.
33231         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33232         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33233         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33234         (__ASSUME_UTIMENSAT): Define unconditionally.
33235         (__ASSUME_PRIVATE_FUTEX): Likewise.
33236         (__ASSUME_FALLOCATE): Likewise.
33237         (__ASSUME_O_CLOEXEC): Likewise.
33238         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33239         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33240         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33241         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33242         (__ASSUME_IN_NONBLOCK): Likewise.
33243         (__ASSUME_PIPE2): Likewise.
33244         (__ASSUME_EVENTFD2): Likewise.
33245         (__ASSUME_SIGNALFD4): Likewise.
33246         (__ASSUME_DUP3): Likewise.
33247         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33248         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33249         (__ASSUME_AT_RANDOM): Likewise.
33250         (__ASSUME_PREADV): Likewise.
33251         (__ASSUME_PWRITEV): Likewise.
33252         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33253         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33254         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33255         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33256         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33257         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33258         (__ASSUME_O_CLOEXEC): Define unconditionally.
33259         (__ASSUME_PSELECT): Do not undefine conditionally.
33260         (__ASSUME_PPOLL): Likewise.
33261         (__ASSUME_ATFCTS): Likewise.
33262         (__ASSUME_SET_ROBUST_LIST): Likewise.
33263         (__ASSUME_UTIMENSAT): Likewise.
33264         (__ASSUME_FDATASYNC): Define unconditionally.
33265         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33266         (__ASSUME_SIGFRAME_V2): Likewise.
33267         )__ASSUME_EVENTFD2): Likewise.
33268         (__ASSUME_SIGNALFD4): Likewise.
33269         (__ASSUME_PSELECT): Do not undefine conditionally.
33270         (__ASSUME_PPOLL): Likewise.
33271         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33272         (__ASSUME_PSELECT): Define unconditionally.
33273         (__ASSUME_PPOLL): Likewise.
33274         (__ASSUME_O_CLOEXEC): Likewise.
33275         (__ASSUME_SOCK_CLOEXEC): Likewise.
33276         (__ASSUME_IN_NONBLOCK): Likewise.
33277         (__ASSUME_PIPE2): Likewise.
33278         (__ASSUME_EVENTFD2): Likewise.
33279         (__ASSUME_SIGNALFD4): Likewise.
33280         (__ASSUME_DUP3): Likewise.
33281         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33282         (__ASSUME_O_CLOEXEC): Likewise.
33283         (__ASSUME_SOCK_CLOEXEC): Likewise.
33284         (__ASSUME_IN_NONBLOCK): Likewise.
33285         (__ASSUME_PIPE2): Likewise.
33286         (__ASSUME_EVENTFD2): Likewise.
33287         (__ASSUME_SIGNALFD4): Likewise.
33288         (__ASSUME_DUP3): Likewise.
33289         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33290         (__ASSUME_EVENTFD2): Likewise.
33291         (__ASSUME_SIGNALFD4): Likewise.
33292         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33293
33294 2014-05-12  Andreas Schwab  <schwab@suse.de>
33295
33296         [BZ #16932]
33297         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33298         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33299         than maximum RPC packet size.
33300         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33301         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33302         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33303         (_nss_nis_getservbyport_r): Likewise.
33304
33305 2014-05-12  Will Newton  <will.newton@linaro.org>
33306
33307         * malloc/Makefile (tests): Add tst-mallopt.
33308         * malloc/tst-mallopt.c: New file.
33309
33310 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33311
33312         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33313         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33314
33315 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33316
33317         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33318         (tst-tlsmod6.so): Likewise.
33319
33320 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33321
33322         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33323
33324 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33325
33326         [BZ #16064]
33327         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33328         and <dl-procinfo.h>.
33329         (__fegetenv): Save SSE state in envp->__eip if supported.
33330         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33331         envp->__eip if supported.
33332         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33333         and <dl-procinfo.h>.
33334         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33335         __data_offset and __data_selector in environment to 0.  Set SSE
33336         state if supported.
33337         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33338         test-fenv-sse.
33339         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33340         -mfpmath=sse.
33341         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33342
33343 2014-05-09  Will Newton  <will.newton@linaro.org>
33344
33345         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33346         and libc_relro_required for ARM.
33347         * sysdeps/arm/preconfigure: Regenerate.
33348
33349 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33350             Stefan Liebler  <stli@linux.vnet.ibm.com>
33351
33352         * config.make.in (enable-lock-elision): New Makefile variable.
33353         * configure.ac: Likewise.
33354         * configure: Regenerate.
33355         * sysdeps/s390/configure.ac:
33356         Add check for gcc transactions support.
33357         * sysdeps/s390/configure: Regenerate.
33358         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33359         Build elision files if enabled.
33360         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33361         Add lock elision support for s390.
33362         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33363         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33364         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33365         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33366         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33367         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33368         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33369         Likewise.
33370         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33371         Likewise.
33372         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33373         Likewise.
33374         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33375         Likewise.
33376         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33377         (__lll_timedlock_elision, __lll_lock_elision)
33378         (__lll_unlock_elision, __lll_trylock_elision)
33379         (lll_timedlock_elision, lll_lock_elision)
33380         (lll_unlock_elision, lll_trylock_elision): Add.
33381         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33382         (pthread_mutex_t): Add lock elision support for s390.
33383
33384 2014-05-14  Wilco  <wdijkstr@arm.com>
33385
33386         * sysdeps/arm/fclrexcpt.c: Cleanup.
33387         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33388         * sysdeps/arm/feenablxcpt.c: Cleanup.
33389         * sysdeps/arm/fegetenv.c: Cleanup.
33390         * sysdeps/arm/fegetexcept.c: Cleanup.
33391         * sysdeps/arm/fegetround.c: Cleanup.
33392         * sysdeps/arm/feholdexcpt.c: Cleanup.
33393         * sysdeps/arm/fesetenv.c: Cleanup.
33394         * sysdeps/arm/fesetround.c: Cleanup.
33395         * sysdeps/arm/feupdateenv.c: Cleanup.
33396         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33397         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33398         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33399         * sysdeps/arm/ftestexcept.c: Cleanup.
33400         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33401         * sysdeps/arm/setfpucw.c: Cleanup.
33402
33403 2014-05-09  Will Newton  <will.newton@linaro.org>
33404
33405         * sysdeps/arm/armv7/strcmp.S: New file.
33406         * NEWS: Mention addition of ARMv7 optimized strcmp.
33407
33408 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33409
33410         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33411         look for %.ac rather than %.in.
33412
33413         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33414         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33415         * sysdeps/mach/hurd/configure: Regenerated.
33416         * sysdeps/unix/sysv/linux/configure: Regenerated.
33417
33418         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33419
33420 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33421
33422         [BZ# 16922]
33423         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33424         (LONG_SUB): Ditto.
33425         (PTR_SUB): Ditto.
33426
33427 2014-05-07  Andreas Schwab  <schwab@suse.de>
33428
33429         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33430         when skipping over non-matching result from nscd.
33431
33432 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33433
33434         [BZ #16876]
33435         * nptl/sockperf.c (client): Check socket return value.
33436
33437         [BZ #16877]
33438         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33439         nscd security class.
33440
33441 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33442
33443         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33444         * sysdeps/arm/unwind.h: ... here.
33445
33446 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33447
33448         [BZ# 16916]
33449         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33450         Define.
33451
33452 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33453
33454         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33455         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33456         multiarch strncpy for PPC64.
33457         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33458         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33459         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33460         multiarch optimizations.
33461         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33462         (__libc_ifunc_impl_list): Likewise.
33463         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33464         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33465         multiarch stpncpy for PPC64.
33466         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33467         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33468
33469 2014-05-06  Andreas Schwab  <schwab@suse.de>
33470
33471         [BZ #16912]
33472         * gmon/mcount.c (_MCOUNT_DECL): Use
33473         atomic_compare_and_exchange_bool_acq instead of
33474         catomic_compare_and_exchange_bool_acq.
33475
33476 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33477
33478         * elf/Makefile (others, install-bin): Remove pldd.
33479         (pldd-modules): Variable removed.
33480         ($(objpfx)pldd): Target removed.
33481         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33482         (others, install-bin): Append pldd here.
33483         ($(objpfx)pldd): New target.
33484
33485         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33486         to 0, so the first #if test emitted later doesn't see it undefined.
33487         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33488         * sysdeps/gnu/errlist.c: Regenerated.
33489
33490 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33491
33492         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33493         [libc_hidden_builtin_def]: Define to empty value.
33494         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33495         [libc_hidden_builtin_def]: Likewise.
33496         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33497         [libc_hidden_builtin_def]: Likewise.
33498         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33499         [libc_hidden_builtin_def]: Likewise.
33500         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33501         __redirect_memcpy and define ifunc as default hidden symbol.
33502         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33503         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33504
33505 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33506
33507         * locale/iso-4217.def: Reintroduce XDR currency.
33508
33509 2014-05-04  Allan McRae  <allan@archlinux.org>
33510
33511         * po/eo.po: Update Esperanto translation from translation project.
33512
33513 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33514
33515         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33516         and FEATURE_INDEX_MAX to 1.
33517         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33518
33519 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33520
33521         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33522         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33523         * iconvdata/big5.c (ONE_DIRECTION): Define.
33524         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33525         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33526         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33527         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33528         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33529         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33530         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33531         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33532         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33533         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33534         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33535         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33536         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33537         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33538         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33539         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33540         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33541         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33542         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33543         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33544         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33545         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33546         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33547         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33548         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33549         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33550         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33551         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33552         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33553         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33554         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33555         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33556         * iconvdata/johab.c (ONE_DIRECTION): Define.
33557         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33558         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33559         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33560         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33561         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33562         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33563         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33564         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33565         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33566         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33567
33568 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33569
33570         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33571         (_IO_JUMPS_OFFSET): Define to 0.
33572
33573         * nptl/sysdeps/pthread/bits/libc-lock.h
33574         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33575         (__libc_lock_define_initialized_recursive): Always define using
33576         initializer.  Modern compilers treat uninitialized (implicit zero) and
33577         explicit zero initializers the same (i.e. put the datum in bss).
33578
33579 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33580
33581         * nscd/nscd-client.h: Include <string.h>.
33582
33583 2014-05-01  David S. Miller  <davem@davemloft.net>
33584
33585         [BZ #16885]
33586         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33587         multiple zero bytes exist at the end of a string.
33588         Reported by Aurelien Jarno <aurelien@aurel32.net>
33589
33590         * string/test-strcmp.c (check): Add explicit test for situations where
33591         there are multiple zero bytes after the first.
33592
33593 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33594
33595         [BZ #16890]
33596         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33597         when compiling wprintf.
33598         * stdio-common/tstdiomisc.c (t3): New function.
33599         (main): Call it.
33600
33601 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33602
33603         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33604         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33605         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33606         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33607
33608 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33609
33610         * stdlib/longlong.h: Updated from GCC.
33611
33612 2014-05-01  Will Newton  <will.newton@linaro.org>
33613             Bernard Ogden  <bernie.ogden@linaro.org>
33614
33615         * NEWS: Update fixed bug list.
33616
33617         [BZ #15119]
33618         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33619
33620 2014-04-30  David S. Miller  <davem@davemloft.net>
33621
33622         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33623         (libc_feholdexcept_setround_sparc_ctx): New function.
33624         (libc_fesetenv_sparc_ctx): Likewise.
33625         (libc_feupdateenv_sparc_ctx): Likewise.
33626         (libc_feholdsetround_sparc_ctx): Likewise.
33627         (libc_feholdexcept_setround_ctx): Define.
33628         (libc_feholdexcept_setroundf_ctx): Likewise.
33629         (libc_feholdexcept_setroundl_ctx): Likewise.
33630         (libc_fesetenv_ctx): Likewise.
33631         (libc_fesetenvf_ctx): Likewise.
33632         (libc_fesetenvl_ctx): Likewise.
33633         (libc_feupdateenv_ctx): Likewise.
33634         (libc_feupdateenvf_ctx): Likewise.
33635         (libc_feupdateenvl_ctx): Likewise.
33636         (libc_feresetround_ctx): Likewise.
33637         (libc_feresetroundf_ctx): Likewise.
33638         (libc_feresetroundl_ctx): Likewise.
33639         (libc_feholdsetround_ctx): Likewise.
33640         (libc_feholdsetroundf_ctx): Likewise.
33641         (libc_feholdsetroundl_ctx): Likewise.
33642
33643         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33644         with __USE_GNU instead of XOPEN cpp guards.
33645
33646         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33647         0.
33648
33649         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33650         with XOPEN cpp guards.
33651
33652 2014-04-30  Julian Brown  <julian@codesourcery.com>
33653
33654         [BZ #16888]
33655         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33656         handling.
33657
33658 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33659
33660         [BZ #9894]
33661         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33662         Change to 2.6.32.
33663         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33664         * sysdeps/unix/sysv/linux/configure: Regenerated.
33665         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33666         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33667         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33668         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33669         * README: Update reference to required Linux kernel version.
33670         * manual/install.texi (Linux): Update reference to required Linux
33671         kernel headers version.
33672         * INSTALL: Regenerated.
33673
33674         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33675         header inclusion.
33676         [POSIX] (limits.h): Likewise.
33677         [POSIX] (math.h): Likewise.
33678         [POSIX] (sys/wait.h): Likewise.
33679         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33680         function.
33681         [POSIX] (stddef.h): Do not allow header inclusion.
33682
33683 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33684
33685         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33686
33687 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33688
33689         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33690         Return immediately after lll_futex_wake.
33691
33692 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33693
33694         [BZ #16791]
33695         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33696         structure.
33697         (datahead_init_pos): Call datahead_init_common early.
33698         (datahead_init_neg): Likewise.
33699
33700         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33701         datahead_init_neg): New functions.
33702         * nscd/aicache.c (addhstaiX): Use them.
33703         * nscd/grpcache.c (cache_addgr): Likewise.
33704         * nscd/hstcache.c (cache_addhst): Likewise.
33705         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33706         * nscd/netgroupcache.c (do_notfound): Likewise.
33707         (addgetnetgrentX): Likewise.
33708         (addinnetgrX): Likewise.
33709         * nscd/pwdcache.c (cache_addpw): Likewise.
33710         * nscd/servicescache.c (cache_addserv): Likewise.
33711
33712 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33713             Atsushi Onoe  <atsushi@onoe.org>
33714
33715         [BZ #14308]
33716         [BZ #12994]
33717         [BZ #13651]
33718         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33719         one response is valid.
33720         * resolv/res_send.c (send_dg): Check for validity of other
33721         response if the current response is a referral.
33722
33723 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33724
33725         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33726
33727 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33728
33729         [BZ #16823]
33730         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33731         Always divide by positive zero when computing -Inf result.
33732         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33733         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33734
33735 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33736
33737         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33738         FPSCR if value do not change.
33739         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33740         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33741         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33742         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33743         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33744         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33745         function.
33746
33747 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33748
33749         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33750         * sysdeps/unix/sysv/linux/hppa: Move directory from
33751         ports/systeps/unix/sysv/linux/hppa.
33752         * README: Update listing for hppa-*-linux-gnu.
33753
33754 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33755
33756         [BZ #16754]
33757         * manual/stdio.texi (Hook functions): Fix types of stream hook
33758         functions.
33759         [BZ #16854]
33760         * socket/sys/socket.h: Fix typo in comment.
33761
33762 2014-04-28  Wilco  <wdijkstr@arm.com>
33763
33764         * sysdeps/arm/fenv_private.h: New file.
33765         * sysdeps/arm/math_private.h: New file.
33766         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33767
33768 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33769
33770         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33771         with __int128_t.
33772         (La_x86_64_retval): Likewise.
33773
33774 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33775
33776         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33777         fpsr if value didn't change.
33778         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33779         to fpcr if value didn't change.
33780         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33781         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33782         fpsr or fpcr if value didn't change.
33783         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33784         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33785         fpcr if value didn't change.
33786         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33787         to fpsr if value didn't change.
33788
33789 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33790
33791         * nptl/tst-sem3.c: Use test-skeleton.c
33792         (main): Rename to do_test.  Use return instead of
33793         exit.
33794         * nptl/tst-sem4.c: Use test-skeleton.c
33795         (main): Rename to do_test.
33796
33797 2014-04-22  David S. Miller  <davem@davemloft.net>
33798
33799         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33800         (struct sigaction): New struct member __glibc_reserved0, change
33801         type of sa_flags to int.
33802
33803 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33804
33805         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33806         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33807
33808 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33809
33810         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33811         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33812
33813 2014-04-22  Will Newton  <will.newton@linaro.org>
33814             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33815
33816         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33817         (__longjmp): Add longjmp and longjmp_target SystemTap
33818         probes.
33819         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33820         (__sigsetjmp): Add setjmp SystemTap probe.
33821
33822 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33823
33824         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33825         match manual order.
33826
33827 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33828
33829         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33830
33831         * sysdeps/powerpc/fpu/fenv_private.h
33832         (libc_feholdexcept_setroundl_ctx): Define to
33833         libc_feholdexcept_setround_ppc_ctx.
33834         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33835         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33836         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33837         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33838
33839 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33840
33841         * sysdeps/aarch64/math-tests.h: New file.
33842
33843 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33844
33845         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33846         New.
33847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33848         Check and set bit_AVX2_Usable.
33849         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33850         macro.
33851         (bit_AVX2): Likewise.
33852         (index_AVX2_Usable): Likewise.
33853         (CPUID_AVX2): Likewise.
33854         (HAS_AVX2): Likewise.
33855
33856 2014-04-17  Will Newton  <will.newton@linaro.org>
33857
33858         * manual/setjmp.texi (System V contexts): Add note that
33859         calling setcontext on a context created by a call to a
33860         signal handler is undefined.  Update text to note that
33861         setcontext from a signal handler is possible but not
33862         recommended.
33863
33864         [BZ #16629]
33865         * stdlib/tst-setcontext.c: Include signal.h.
33866         (main): Check that the signal stack before and
33867         after swapcontext is the same.
33868
33869         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33870         Re-implement to restore registers in user code and avoid
33871         rt_sigreturn system call.
33872
33873 2014-04-17  Wilco  <wdijkstr@arm.com>
33874
33875         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33876         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33877         * math/test-fenv.c: Skip exception trap tests on targets which only
33878         support non-stop mode.
33879
33880 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33881             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33882
33883         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33884         (libc_feholdsetround_aarch64_ctx)
33885         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33886         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33887         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33888         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33889         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33890         (libc_feresetround_noexl_ctx): Define.
33891
33892 2014-04-16  Richard Henderson  <rth@redhat.com>
33893
33894         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33895
33896         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33897         unwind tables.
33898
33899         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33900         const from the non-libc, non-ldso copy.
33901
33902         * sysdeps/alpha/libm-test-ulps: Regenerate.
33903
33904 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33905             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33906
33907         * sysdeps/aarch64/fpu/math_private.h: New file.
33908
33909 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33910
33911         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33912
33913 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33914
33915         [BZ #16275]
33916         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33917         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33918         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33919         Intel MPX bound registers before _dl_profile_fixup.
33920         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33921         registers after _dl_profile_fixup.  Save and restore bound
33922         registers bnd0/bnd1 when calling _dl_call_pltexit.
33923         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33924         (LR_BND_OFFSET): Likewise.
33925         (LRV_BND0_OFFSET): Likewise.
33926         (LRV_BND1_OFFSET): Likewise.
33927
33928 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33929
33930         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33931         to...
33932         * sysdeps/mach/hurd/i386/tls.h: ... here.
33933         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33934         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33935         fields.
33936
33937 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33938
33939         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33940
33941 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33942
33943         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33944
33945 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33946
33947         [BZ #14770]
33948         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33949         * sysdeps/s390/configure: Regenerate.
33950
33951         [BZ #16824]
33952         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33953         Set round-to-nearest internally to reduce error accumulation.
33954
33955 2014-04-16  Alan Modra  <amodra@gmail.com>
33956
33957         [BZ #16740]
33958         [BZ #16619]
33959         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33960         * math/libm-test.inc (frexp_test_data): Add tests.
33961         * NEWS: Update fixed bug list.
33962
33963 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33964
33965         * benchtests/Makefile: Depend on libraries in build directory.
33966         (bench-math): Separate out math tests.
33967         (bench-pthread): Separate out pthread tests.
33968         (bench): Include math and pthread tests.
33969
33970 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33971
33972         [BZ #16831]
33973         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33974         _dl_debug_initialize.
33975
33976         * configure.ac: Remove SELinux header check.
33977         * configure: Regenerate.
33978         * nscd/selinux.c (perms): Array of const char* to permission names.
33979         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33980         default policy. Call string_to_security_class and string_to_av_perm to
33981         translate strings. Enforce default policy and call avs_has_perm with
33982         results of translated strings.
33983
33984 2014-04-13  David S. Miller  <davem@davemloft.net>
33985
33986         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33987
33988 2014-04-12  Allan McRae  <allan@archlinux.org>
33989
33990         [BZ #16838]
33991         * manual/string.texi (Collation Functions): Fix qsort argument
33992         order in example.
33993         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33994
33995 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33996
33997         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33998         Make the test a no-op if there are no exceptions defined.
33999
34000 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34001
34002         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34003         enable-hardcoded-path-in-tests
34004
34005 2014-04-11  Will Newton  <will.newton@linaro.org>
34006
34007         * benchtests/Makefile (extra-objs): Add json-lib.o.
34008         (bench-func): Tidy up JSON output.
34009         * benchtests/bench-skeleton.c: Include json-lib.h.
34010         (main): Use JSON library functions to do output of
34011         benchmark results.
34012         * benchtests/bench-timing-type.c (main): Output the
34013         timing type simply, leaving formatting to the user.
34014         * benchtests/json-lib.c: New file.
34015         * benchtests/json-lib.h: Likewise.
34016
34017 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34018
34019         [BZ #15215]
34020         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34021         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34022         memory barriers.  Add comments.
34023         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34024         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34025         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34026         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34027         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34028         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34029
34030 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34031
34032         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34033         * sysdeps/s390/s390-64/configure.ac: ... this ...
34034         * sysdeps/s390/configure.ac: ... to here.
34035         * sysdeps/s390/s390-32/configure: Delete file.
34036         * sysdeps/s390/s390-64/configure: Delete file.
34037         * sysdeps/s390/configure: Regenerate.
34038
34039 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34040
34041         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34042
34043 2014-04-11  Will Newton  <will.newton@linaro.org>
34044
34045         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34046         to zero if it is not defined elsewhere.  (mtrim): Test
34047         the value of MALLOC_DEBUG with #if rather than #ifdef.
34048
34049 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34050
34051         * benchtests/pthread_once-inputs: New file.
34052         * benchtests/pthread_once-source.c: New file.
34053         * benchtests/README: Update documentation.
34054
34055 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34056             H.J. Lu  <hongjiu.lu@intel.com>
34057
34058         [BZ #16275]
34059         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34060         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34061         * sysdeps/x86_64/configure: Regenerated.
34062         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34063         macro.
34064         (REGISTER_SAVE_RAX): Likewise.
34065         (REGISTER_SAVE_RCX): Likewise.
34066         (REGISTER_SAVE_RDX): Likewise.
34067         (REGISTER_SAVE_RSI): Likewise.
34068         (REGISTER_SAVE_RDI): Likewise.
34069         (REGISTER_SAVE_R8): Likewise.
34070         (REGISTER_SAVE_R9): Likewise.
34071         (REGISTER_SAVE_BND0): Likewise.
34072         (REGISTER_SAVE_BND1): Likewise.
34073         (REGISTER_SAVE_BND2): Likewise.
34074         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34075         bound registers when calling _dl_fixup.
34076
34077 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34078
34079         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34080         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34081         of its definition.
34082         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34083         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34084         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34085         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34086         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34087         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34088         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34089
34090 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34091
34092         [BZ #15514]
34093         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34094         pathconf(_PC_NAME_MAX).
34095
34096 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34097
34098         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34099         Remove macro usage.
34100         (__PTHREAD_SPINS): Move definition to ...
34101         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34102         (__PTHREAD_SPINS): ... here.
34103         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34104         (__PTHREAD_SPIN): Likewise.
34105         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34106         (__PTHREAD_SPIN): Likewise.
34107         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34108         (__PTHREAD_SPIN): Likewise.
34109         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34110         (__PTHREAD_SPIN): Likewise.
34111         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34112         (__PTHREAD_SPIN): Likewise.
34113         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34114         (__PTHREAD_SPIN): Likewise.
34115         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34116         (__PTHREAD_SPIN): Likewise.
34117         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34118         (__PTHREAD_SPIN): Likewise.
34119         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34120         (__PTHREAD_SPIN): Likewise.
34121         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34122         (__PTHREAD_SPIN): Likewise.
34123         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34124         (__PTHREAD_SPIN): Likewise.
34125         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34126         (__PTHREAD_SPIN): Likewise.
34127
34128         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34129         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34130         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34131         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34132         imply folder.
34133         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34134         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34135         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34136         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34137         correct imply path.
34138         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34139         strlen symbol for non multi-arch builds.
34140         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34141         missing hidden_def and weak_alias.
34142
34143 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34144
34145         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34146
34147 2014-04-07  Will Newton  <will.newton@linaro.org>
34148
34149         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34150         and contents.  [!_LIBC] Remove #ifndef and contents.
34151         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34152         * string/memccpy.c (__memccpy): Use ANSI prototype.
34153         * string/memfrob.c (memfrob): Likewise.
34154         * string/strcoll.c (STRCOLL): Likewise.
34155         * string/strlen.c (strlen): Likewise.
34156         * string/strtok.c (STRTOK): Likewise.
34157         * string/strcat.c: Remove unused #include of memcopy.h.
34158         (strcat): Use ANSI prototype.
34159         * string/strchr.c: Remove unused #include of memcopy.h.
34160         (strchr): Use ANSI prototype.
34161         * string/strcmp.c: Remove unused #include of memcopy.h.
34162         (strcmp): Use ANSI prototype.
34163         * string/strcpy.c: Remove unused #include of memcopy.h.
34164         (strcpy): Use ANSI prototype.
34165
34166 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34167
34168         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34169         * config.make.in (config-extra-cppflags): Set it from
34170         libc_extra_cppflags.
34171         * configure.ac (libc_extra_cflags): Make it accumulate over
34172         configure fragments.
34173         (libc_extra_cppflags): New flag.
34174         * configure. Regenerate.
34175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34176         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34177         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34179
34180         [BZ #16815]
34181         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34182         result for FE_DOWNWARD rounding mode.
34183         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34184         Likewise.
34185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34186
34187 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34188
34189         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34190         in function argument name.
34191
34192 2014-04-03  David Svoboda  <svoboda@cert.org>
34193
34194         [BZ #5666]
34195         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34196         explicitly.
34197
34198 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34199
34200         * elf/dl-unmap-segments.h: New file.
34201         * sysdeps/generic/ldsodefs.h
34202         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34203         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34204         * elf/dl-fptr.c: Likewise.
34205         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34206         * sysdeps/aarch64/tlsdesc.c: Likewise.
34207         * sysdeps/arm/tlsdesc.c: Likewise.
34208         * sysdeps/i386/tlsdesc.c: Likewise.
34209         * sysdeps/tile/dl-runtime.c: Likewise.
34210         * sysdeps/x86_64/tlsdesc.c: Likewise.
34211         * elf/dl-load.h: New file.
34212         * elf/dl-load.c: Include it.
34213         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34214         Macros moved to dl-load.h.
34215         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34216         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34217         Use _dl_unmap_segments in place of __munmap.
34218         Break out segment-mapping loop into ...
34219         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34220
34221 2014-04-03  Will Newton  <will.newton@linaro.org>
34222
34223         * elf/dl-lookup.c (do_lookup_x): Remove comment
34224         referring to nested function and move variable
34225         declarations down to before first use.
34226
34227 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34228
34229         [BZ #16799]
34230         [BZ #16800]
34231         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34232         with 0 numerator.
34233         * math/s_catanf.c (__catanf): Likewise.
34234         * math/s_catanh.c (__catanh): Likewise.
34235         * math/s_catanhf.c (__catanhf): Likewise.
34236         * math/s_catanhl.c (__catanhl): Likewise.
34237         * math/s_catanl.c (__catanl): Likewise.
34238         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34239         by positive zero when computing -Inf result.
34240         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34241         (catanh_test): Likewise.
34242         * sysdeps/i386/fpu/libm-test-ulps: Update.
34243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34244
34245         [BZ #16789]
34246         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34247         instead of using underflowing value in computing result.
34248         * math/s_clog10.c (__clog10): Likewise.
34249         * math/s_clog10f.c (__clog10f): Likewise.
34250         * math/s_clog10l.c (__clog10l): Likewise.
34251         * math/s_clogf.c (__clogf): Likewise.
34252         * math/s_clogl.c (__clogl): Likewise.
34253         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34254         (clog10_test): Likewise.
34255         * sysdeps/i386/fpu/libm-test-ulps: Update.
34256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34257
34258 2014-04-02  Alan Modra  <amodra@gmail.com>
34259
34260         [BZ #16739]
34261         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34262         output when value is near a power of two.  Use int64_t for lx and
34263         remove casts.  Use decimal rather than hex exponent constants.
34264         Don't use long double multiplication when double will suffice.
34265         * math/libm-test.inc (nextafter_test_data): Add tests.
34266         * NEWS: Add 16739 and 16786 to bug list.
34267
34268         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34269
34270         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34271
34272 2014-04-01  Will Newton  <will.newton@linaro.org>
34273
34274         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34275         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34276
34277 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34278
34279         [BZ #13347]
34280         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34281         * nptl/tst-setuid2.c: New file.
34282         * nptl/Makefile (xtests): Add tst-setuid2.
34283
34284 2014-04-01  Alan Modra  <amodra@gmail.com>
34285
34286         [BZ #16786]
34287         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34288
34289 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34290
34291         [BZ #6803]
34292         [BZ #6804]
34293         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34294         set errno as appropriate.
34295         * math/w_scalbf.c (__scalbf): Likewise.
34296         * math/w_scalbl.c (__scalbl): Likewise.
34297         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34298         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34299         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34300         Add more NaN tests.
34301
34302         [BZ #16349]
34303         * math/w_atan2.c: Include <errno.h>.
34304         (__atan2): Set errno for result underflowing to zero.
34305         * math/w_atan2f.c: Include <errno.h>.
34306         (__atan2f): Set errno for result underflowing to zero.
34307         * math/w_atan2l.c: Include <errno.h>.
34308         (__atan2l): Set errno for result underflowing to zero.
34309         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34310         tests.
34311         * math/auto-libm-test-out: Regenerated.
34312
34313 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34314
34315         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34316         Encode instruction correctly in little endian.
34317         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34318         Likewise.
34319         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34320         Likewise.
34321         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34322         Likewise.
34323         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34324         Likewise.
34325
34326 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34327
34328         [BZ #9894]
34329         * sysdeps/unix/sysv/linux/kernel-features.h
34330         [__sparc__ && !__arch64__ && !__sparc_v9__]
34331         (__ASSUME_SET_ROBUST_LIST): Do not define.
34332         [__sparc__ && !__arch64__ && !__sparc_v9__]
34333         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34334         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34335         Likewise.
34336         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34337         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34338         (__ASSUME_REQUEUE_PI): Likewise.
34339         (__ASSUME_SET_ROBUST_LIST): Likewise.
34340         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34341         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34342         Undefine.
34343         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34344         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34345         Likewise.
34346         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34347         Likewise.
34348         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34349         Likewise.
34350         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34351         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34352         Undefine.
34353         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34354         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34355         Likewise.
34356
34357         [BZ #16648]
34358         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34359         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34360         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34361
34362 2014-03-31  Will Newton  <will.newton@linaro.org>
34363
34364         * benchtests/Makefile (bench): Add ffs and ffsll to list
34365         of tests.
34366         * benchtests/ffs-inputs: New file.
34367         * benchtests/ffsll-inputs: Likewise.
34368
34369 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34370
34371         [BZ #16770]
34372         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34373         too large before casting to int.
34374         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34375         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34376         * math/libm-test.inc (scalb_test_data): Add more tests.
34377
34378 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34379
34380         * benchtests/Makefile (DETAILED_OPT): New make option.
34381         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34382         set.
34383         * benchtests/bench-skeleton.c: Include stdbool.h.
34384         (main): Store and print timings per input.
34385         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34386         member to each argument value.
34387         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34388         (_print_arg_data): Initialize per-input timing to 0.
34389
34390         * benchtests/Makefile (timing-type): New binary.
34391         (bench-clean): Also remove bench-timing-type.
34392         (bench): New target for timing-type.
34393         (bench-func): Print output in JSON format.
34394         * benchtests/bench-skeleton.c (main): Print output in JSON
34395         format.
34396         * benchtests/bench-timing-type.c: New file.
34397         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34398         (TIMING_PRINT_STATS): Remove.
34399         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34400         name separately.
34401
34402         * benchtests/bench-modf.c: Remove.
34403         * benchtests/modf-inputs: New inputs file.
34404
34405 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34406
34407         [BZ #16362]
34408         * math/s_clog10.c (M_PI_LOG10E): New macro.
34409         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34410         imaginary parts are 0.
34411         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34412         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34413         imaginary parts are 0.
34414         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34415         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34416         imaginary parts are 0.
34417         * math/libm-test.inc (clog10_test_data): Update expected results
34418         for when real and imaginary parts are 0.
34419
34420 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34421
34422         * elf/dl-load.c: Finish conversion of __builtin_expect into
34423         __glibc_{un}likely.
34424
34425 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34426
34427         [BZ #16348]
34428         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34429         1+x for argument with exponent below -67.
34430         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34431         Likewise.
34432         * math/auto-libm-test-in: Add more tests of exp.
34433         * math/auto-libm-test-out: Regenerated.
34434
34435 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34436
34437         [BZ #16759]
34438         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34439         (nscd_getnetgrent): Use it.
34440
34441         [BZ #16760]
34442         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34443         of stpcpy.
34444
34445 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34446
34447         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34448         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34449         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34450         (lll_robust_unlock): Remove out of line section. Use cfi
34451         intrinsics.
34452         (LLL_STUB_UNWIND_INFO*): Remove.
34453         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34454         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34455         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34456         (lll_robust_unlock): Remove out of line section. Use cfi
34457         intrinsics.
34458         (LLL_STUB_UNWIND_INFO*): Remove.
34459
34460 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34461
34462         [BZ #16758]
34463         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34464         blank values.
34465
34466 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34467
34468         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34469
34470 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34471
34472         [BZ #16198]
34473         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34474         fnstenv.
34475         * math/test-fenv-preserve.c: New file.
34476         * math/Makefile (tests): Add test-fenv-preserve.
34477
34478 2014-03-26  Will Newton <will.newton@linaro.org>
34479
34480         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34481
34482 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34483
34484         * scripts/versionlist.awk: Partition the version sets and emit all
34485         GLIBC_* (sorted) before all others (sorted).
34486
34487 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34488
34489         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34490         GLIBC_2.2.5 version.
34491
34492 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34493
34494         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34495         calls.
34496
34497         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34498         previous change.
34499
34500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34501
34502 2014-03-25  Andreas Schwab  <schwab@suse.de>
34503
34504         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34505         label to be used after in6ailist is initialized.
34506
34507 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34508
34509         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34510         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34511
34512 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34513
34514         [BZ #16357]
34515         [BZ #16599]
34516         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34517         min_plus_half.
34518         (fp_formats): Update initializers.
34519         (init_fp_formats): Initialize new field.
34520         (output_for_one_input_case): Allow underflow for results up to
34521         min_plus_half.
34522         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34523         * math/auto-libm-test-in: Don't mark some underflows from asin and
34524         atanh as spurious.
34525         * math/auto-libm-test-out: Regenerated.
34526         * sysdeps/i386/fpu/libm-test-ulps: Update.
34527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34528
34529 2014-03-25  Andreas Schwab  <schwab@suse.de>
34530
34531         * libio/Makefile (tst-ftell-partial-wide-ENV)
34532         (tst-ftell-active-handler-ENV): Define.
34533
34534 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34535
34536         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34537
34538 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34539
34540         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34541
34542 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34543
34544         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34545         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34546         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34547
34548 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34549
34550         [BZ #16634]
34551         * elf/dl-load.c (open_verify): Add mode parameter.
34552         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34553         (open_path): Change from boolean 'secure' to complete flag 'mode'
34554         (_dl_map_object): Adjust.
34555         * elf/Makefile (tests): Add tst-dlopen-aout.
34556         * elf/tst-dlopen-aout.c: New test.
34557
34558 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34559
34560         [BZ #16714]
34561         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34562         (struct stat): Rename member pad0 to __glibc_reserved0.
34563
34564         [BZ #16712]
34565         * sysdeps/s390/s390-32/bits/wordsize.h
34566         (__WORDSIZE32_SIZE_ULONG): New define.
34567         * sysdeps/s390/s390-64/bits/wordsize.h
34568         (__WORDSIZE32_SIZE_ULONG): Likewise.
34569         * sysdeps/generic/stdint.h (SIZE_MAX):
34570         Define as UL if __WORDSIZE32_SIZE_ULONG.
34571
34572         [BZ #16713]
34573         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34574         (__glibc_reserved0): New variable.
34575         (sa_flags): Change type to int.
34576
34577         * posix/Makefile (before-compile): Use += before-compile instead
34578         of a :=.
34579
34580         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34581         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34582
34583 2014-03-20  Andreas Schwab  <schwab@suse.de>
34584
34585         [BZ #16743]
34586         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34587         non-matching result from nscd.
34588
34589 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34590
34591         * scripts/bench.py: Moved to ...
34592         * benchtests/scripts/bench.py: ... here.
34593         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34594
34595 2014-03-24  Andreas Schwab  <schwab@suse.de>
34596
34597         [BZ #16002]
34598         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34599         alloca_account and account alloca use for struct in6ailist.
34600
34601 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34602
34603         [BZ #16284]
34604         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34605         rounding mode to recompute results that overflow to infinity or
34606         underflow to zero.
34607         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34608         bug 16284.
34609         * math/auto-libm-test-out: Regenerated.
34610         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34611         (ccosh_test): Likewise.
34612         (csin_test_data): Use plus_oflow.
34613         (csin_test): Use ALL_RM_TEST.
34614         (csinh_test_data): Use plus_oflow.
34615         (csinh_test): Use ALL_RM_TEST.
34616         * sysdeps/i386/fpu/libm-test-ulps: Update.
34617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34618
34619 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34620
34621         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34622         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34623         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34624
34625         [BZ #16731]
34626         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34627         when x - 1 is zero.
34628         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34629         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34630         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34631         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34632         argument is 1.
34633         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34634         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34635         zero.
34636         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34637         * sysdeps/i386/fpu/libm-test-ulps: Update.
34638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34639
34640 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34641
34642         * scripts/bench.pl: Remove file.
34643         * scripts/bench.py: New benchmark script.
34644         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34645         * benchtests/README: Mention python dependency.
34646         * scripts/pylintrc: New file.
34647         * scripts/pylint: New file.
34648
34649         * bits/mathdef.h: Use #ifdef instead of #if.
34650         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34651         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34652         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34653         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34654         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34655         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34656
34657 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34658             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34659
34660         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34661         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34662         and strpbrk-ppc64 objects.
34663         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34664         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34665         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34666         multiarch strpbrk for POWER7.
34667         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34668         multiarch strpbrk for PPC64.
34669         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34670         ifunc selector.
34671         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34672         strpbrk for POWER7.
34673
34674 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34675
34676         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34677         (atan_test): Likewise.
34678         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34679         (atanh_test): Use ALL_RM_TEST.
34680         (atan2_test_data): Likewise.
34681         (cabs_test): Likewise.
34682         (cacosh_test): Likewise.
34683         (carg_test): Likewise.
34684         (casin_test): Likewise.
34685         (casinh_test): Likewise.
34686         (cbrt_test): Likewise.
34687         (csqrt_test): Likewise.
34688         (erf_test): Likewise.
34689         (erfc_test): Likewise.
34690         (pow10_test): Likewise.
34691         (exp2_test): Likewise.
34692         (hypot_test): Likewise.
34693         (j0_test): Likewise.
34694         (j1_test): Likewise.
34695         (lgamma_test): Likewise.
34696         (gamma_test): Likewise.
34697         (sincos_test): Likewise.
34698         (tanh_test): Likewise.
34699         (y0_test): Likewise.
34700         (y1_test): Likewise.
34701         * sysdeps/i386/fpu/libm-test-ulps: Update.
34702         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34703
34704 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34705
34706         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34707         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34708         and strcspn-ppc64 objects.
34709         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34710         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34711         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34712         multiarch strcspn for POWER7.
34713         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34714         multiarch strcspn for PPC64.
34715         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34716         ifunc selector.
34717         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34718         strcspn for POWER7.
34719
34720 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34721
34722         * math/gen-libm-test.pl (generate_testfile): Expect only function
34723         name as argument to AUTO_TESTS_* and pass results for all rounding
34724         modes to parse_args.
34725         (parse_auto_input): Separate inputs of automatic tests from
34726         outputs before storing in %auto_tests.
34727         * math/libm-test.inc (acos_test_data): Update call to
34728         AUTO_TESTS_f_f.
34729         (acos_test): Use ALL_RM_TEST.
34730         (acos_tonearest_test_data): Remove.
34731         (acos_test_tonearest): Likewise.
34732         (acos_towardzero_test_data): Likewise.
34733         (acos_test_towardzero): Likewise.
34734         (acos_downward_test_data): Likewise.
34735         (acos_test_downward): Likewise.
34736         (acos_upward_test_data): Likewise.
34737         (acos_test_upward): Likewise.
34738         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34739         (asin_test_data): Likewise.
34740         (asin_test): Use ALL_RM_TEST.
34741         (asin_tonearest_test_data): Remove.
34742         (asin_test_tonearest): Likewise.
34743         (asin_towardzero_test_data): Likewise.
34744         (asin_test_towardzero): Likewise.
34745         (asin_downward_test_data): Likewise.
34746         (asin_test_downward): Likewise.
34747         (asin_upward_test_data): Likewise.
34748         (asin_test_upward): Likewise.
34749         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34750         (atan_test_data): Likewise.
34751         (atanh_test_data): Likewise.
34752         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34753         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34754         (carg_test_data): Likewise.
34755         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34756         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34757         (ccosh_test_data): Likewise.
34758         (cexp_test_data): Likewise.
34759         (clog_test_data): Likewise.
34760         (clog10_test_data): Likewise.
34761         (cos_test_data): Update call to AUTO_TESTS_f_f.
34762         (cos_test): Use ALL_RM_TEST.
34763         (cos_tonearest_test_data): Remove.
34764         (cos_test_tonearest): Likewise.
34765         (cos_towardzero_test_data): Likewise.
34766         (cos_test_towardzero): Likewise.
34767         (cos_downward_test_data): Likewise.
34768         (cos_test_downward): Likewise.
34769         (cos_upward_test_data): Likewise.
34770         (cos_test_upward): Likewise.
34771         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34772         (cosh_test): Use ALL_RM_TEST.
34773         (cosh_tonearest_test_data): Remove.
34774         (cosh_test_tonearest): Likewise.
34775         (cosh_towardzero_test_data): Likewise.
34776         (cosh_test_towardzero): Likewise.
34777         (cosh_downward_test_data): Likewise.
34778         (cosh_test_downward): Likewise.
34779         (cosh_upward_test_data): Likewise.
34780         (cosh_test_upward): Likewise.
34781         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34782         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34783         (ctan_test_data): Likewise.
34784         (ctan_test): Use ALL_RM_TEST.
34785         (ctan_tonearest_test_data): Remove.
34786         (ctan_test_tonearest): Likewise.
34787         (ctan_towardzero_test_data): Likewise.
34788         (ctan_test_towardzero): Likewise.
34789         (ctan_downward_test_data): Likewise.
34790         (ctan_test_downward): Likewise.
34791         (ctan_upward_test_data): Likewise.
34792         (ctan_test_upward): Likewise.
34793         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34794         (ctanh_test): Use ALL_RM_TEST.
34795         (ctanh_tonearest_test_data): Remove.
34796         (ctanh_test_tonearest): Likewise.
34797         (ctanh_towardzero_test_data): Likewise.
34798         (ctanh_test_towardzero): Likewise.
34799         (ctanh_downward_test_data): Likewise.
34800         (ctanh_test_downward): Likewise.
34801         (ctanh_upward_test_data): Likewise.
34802         (ctanh_test_upward): Likewise.
34803         (erf_test_data): Update call to AUTO_TESTS_f_f.
34804         (erfc_test_data): Likewise.
34805         (exp_test_data): Likewise.
34806         (exp_test): Use ALL_RM_TEST.
34807         (exp_tonearest_test_data): Remove.
34808         (exp_test_tonearest): Likewise.
34809         (exp_towardzero_test_data): Likewise.
34810         (exp_test_towardzero): Likewise.
34811         (exp_downward_test_data): Likewise.
34812         (exp_test_downward): Likewise.
34813         (exp_upward_test_data): Likewise.
34814         (exp_test_upward): Likewise.
34815         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34816         (exp10_test): Use ALL_RM_TEST.
34817         (exp10_tonearest_test_data): Remove.
34818         (exp10_test_tonearest): Likewise.
34819         (exp10_towardzero_test_data): Likewise.
34820         (exp10_test_towardzero): Likewise.
34821         (exp10_downward_test_data): Likewise.
34822         (exp10_test_downward): Likewise.
34823         (exp10_upward_test_data): Likewise.
34824         (exp10_test_upward): Likewise.
34825         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34826         (expm1_test_data): Likewise.
34827         (expm1_test): Use ALL_RM_TEST.
34828         (expm1_tonearest_test_data): Remove.
34829         (expm1_test_tonearest): Likewise.
34830         (expm1_towardzero_test_data): Likewise.
34831         (expm1_test_towardzero): Likewise.
34832         (expm1_downward_test_data): Likewise.
34833         (expm1_test_downward): Likewise.
34834         (expm1_upward_test_data): Likewise.
34835         (expm1_test_upward): Likewise.
34836         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34837         (fma_test): Use ALL_RM_TEST.
34838         (fma_towardzero_test_data): Remove.
34839         (fma_test_towardzero): Likewise.
34840         (fma_downward_test_data): Likewise.
34841         (fma_test_downward): Likewise.
34842         (fma_upward_test_data): Likewise.
34843         (fma_test_upward): Likewise.
34844         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34845         (j0_test_data): Update call to AUTO_TESTS_f_f.
34846         (j1_test_data): Likewise.
34847         (jn_test_data): Update call to AUTO_TESTS_if_f.
34848         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34849         (log_test_data): Update call to AUTO_TESTS_f_f.
34850         (log10_test_data): Likewise.
34851         (log1p_test_data): Likewise.
34852         (log2_test_data): Likewise.
34853         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34854         (pow_tonearest_test_data): Likewise.
34855         (sin_test_data): Update call to AUTO_TESTS_f_f.
34856         (sin_test): Use ALL_RM_TEST.
34857         (sin_tonearest_test_data): Remove.
34858         (sin_test_tonearest): Likewise.
34859         (sin_towardzero_test_data): Likewise.
34860         (sin_test_towardzero): Likewise.
34861         (sin_downward_test_data): Likewise.
34862         (sin_test_downward): Likewise.
34863         (sin_upward_test_data): Likewise.
34864         (sin_test_upward): Likewise.
34865         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34866         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34867         (sinh_test): Use ALL_RM_TEST.
34868         (sinh_tonearest_test_data): Remove.
34869         (sinh_test_tonearest): Likewise.
34870         (sinh_towardzero_test_data): Likewise.
34871         (sinh_test_towardzero): Likewise.
34872         (sinh_downward_test_data): Likewise.
34873         (sinh_test_downward): Likewise.
34874         (sinh_upward_test_data): Likewise.
34875         (sinh_test_upward): Likewise.
34876         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34877         (sqrt_test): Use ALL_RM_TEST.
34878         (sqrt_tonearest_test_data): Remove.
34879         (sqrt_test_tonearest): Likewise.
34880         (sqrt_towardzero_test_data): Likewise.
34881         (sqrt_test_towardzero): Likewise.
34882         (sqrt_downward_test_data): Likewise.
34883         (sqrt_test_downward): Likewise.
34884         (sqrt_upward_test_data): Likewise.
34885         (sqrt_test_upward): Likewise.
34886         (tan_test_data): Update call to AUTO_TESTS_f_f.
34887         (tan_test): Use ALL_RM_TEST.
34888         (tan_tonearest_test_data): Remove.
34889         (tan_test_tonearest): Likewise.
34890         (tan_towardzero_test_data): Likewise.
34891         (tan_test_towardzero): Likewise.
34892         (tan_downward_test_data): Likewise.
34893         (tan_test_downward): Likewise.
34894         (tan_upward_test_data): Likewise.
34895         (tan_test_upward): Likewise.
34896         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34897         (tgamma_test_data): Likewise.
34898         (y0_test_data): Likewise.
34899         (y1_test_data): Likewise.
34900         (yn_test_data): Update call to AUTO_TESTS_if_f.
34901         (main): Do not call removed functions.
34902
34903 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34904
34905         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34906         (ldexp_test_data): Remove.
34907         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34908         scalbn_test_data.
34909         (scalb_test): Use ALL_RM_TEST.
34910
34911 2014-03-19  Andreas Schwab  <schwab@suse.de>
34912
34913         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34914
34915 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34916
34917         [BZ #16649]
34918         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34919         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34920         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34921         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34922         (__ASSUME_PREADV): Undefine.
34923         (__ASSUME_PWRITEV): Likewise.
34924
34925 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34926
34927         * bits/mman-linux.h: Add comment about non-Linux use.
34928         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34929         bits/mman-linux.h resting place.
34930
34931         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34932         * bits/mman-linux.h: ... here.
34933
34934 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34935
34936         * conform/conformtest.pl: Add standard definition when calling C
34937         preprocessor on data files.
34938         (checknamespace): Remove unused variable.
34939
34940 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34941
34942         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34943         minus_oflow, plus_uflow and minus_uflow in expected results.
34944         * math/libm-test.inc (scalbn_test_data): Add more tests of
34945         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34946         minus_uflow.
34947         (scalbn_test): Use ALL_RM_TEST.
34948         (scalbln_test_data): Add more tests of negative arguments.  Use
34949         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34950         (scalbln_test): Use ALL_RM_TEST.
34951
34952 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34953
34954         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34955
34956 2014-03-18  Will Newton  <will.newton@linaro.org>
34957
34958         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34959         inaccurate comment.
34960
34961 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34962
34963         * Makerules [!subdir] (check-abi): Exit with error status if a
34964         test failed.
34965
34966 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34967
34968         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34969         for rint.  Include results for all rounding modes.
34970         (nearbyint_test): Use ALL_RM_TEST.
34971         (rint_test_data): Include all tests used for nearbyint.
34972
34973 2014-03-17  Will Newton  <will.newton@linaro.org>
34974
34975         * nptl/sysdeps/pthread/pthread.h: Revert previous
34976         change.
34977
34978         * sysdeps/generic/ldsodefs.h: Revert previous
34979         change.
34980
34981         * libio/genops.c: Revert previous change.
34982         * libio/libioP.h: Likewise.
34983         * stdio-common/vfprintf.c: Likewise.
34984
34985         * sysdeps/generic/math_private.h: Revert previous
34986         change.
34987
34988         * sysdeps/generic/math_private.h: Check whether
34989         HAVE_RM_CTX is defined with #ifdef rather
34990         than #if.
34991
34992         * argp/argp-fmtstream.h: Check whether
34993         __STRICT_ANSI__ is defined with #ifdef rather
34994         than #if.
34995         * argp/argp.h: Likewise.
34996
34997         * libio/genops.c: Check whether
34998         _IO_JUMPS_OFFSET is defined with #ifdef rather
34999         than #if.
35000         * libio/libioP.h: Likewise.
35001         * stdio-common/vfprintf.c: Likewise.
35002
35003         * sysdeps/generic/ldsodefs.h: Check whether
35004         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35005         than #if.
35006
35007         * nptl/sysdeps/pthread/pthread.h: Check
35008         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35009         its value.
35010
35011 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35012
35013         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35014         setting O_APPEND.
35015         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35016         test case.
35017
35018         [BZ #16680]
35019         * libio/fileops.c (_IO_file_open): Seek to end of file but
35020         don't cache the offset.
35021         (get_file_offset): Remove function.
35022         (do_ftell): Use cached offset when available.
35023         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35024         don't cache the offset.
35025         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35026         case.
35027         (do_one_test): Call it.
35028         (do_ftell_test): Fix up expected old offset for a+ mode.
35029         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35030         available.
35031
35032         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35033         up test status with function return status.
35034         (do_write_test): Likewise.
35035         (do_append_test): Likewise.
35036
35037         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35038         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35039         Remove.
35040
35041 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35042
35043         * math/gen-libm-test.pl (parse_args): Handle results specified for
35044         each rounding mode separately.
35045         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35046         tests and results from lrint_tonearest_test_data,
35047         lrint_towardzero_test_data, lrint_downward_test_data and
35048         lrint_upward_test_data.
35049         (lrint_test): Use ALL_RM_TEST.
35050         (lrint_tonearest_test_data): Remove.
35051         (lrint_test_tonearest): Likewise.
35052         (lrint_towardzero_test_data): Likewise.
35053         (lrint_test_towardzero): Likewise.
35054         (lrint_downward_test_data): Likewise.
35055         (lrint_test_downward): Likewise.
35056         (lrint_upward_test_data): Likewise.
35057         (lrint_test_upward): Likewise.
35058         (llrint_test_data): Merge in per-rounding-mode tests and results
35059         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35060         llrint_downward_test_data and llrint_upward_test_data.
35061         (llrint_test): Use ALL_RM_TEST.
35062         (llrint_tonearest_test_data): Remove.
35063         (llrint_test_tonearest): Likewise.
35064         (llrint_towardzero_test_data): Likewise.
35065         (llrint_test_towardzero): Likewise.
35066         (llrint_downward_test_data): Likewise.
35067         (llrint_test_downward): Likewise.
35068         (llrint_upward_test_data): Likewise.
35069         (llrint_test_upward): Likewise.
35070         (rint_test_data): Merge in per-rounding-mode tests and results
35071         from rint_tonearest_test_data, rint_towardzero_test_data,
35072         rint_downward_test_data and rint_upward_test_data.  Add
35073         per-rounding-mode results for tests not in those arrays.
35074         (rint_test): Use ALL_RM_TEST.
35075         (rint_tonearest_test_data): Remove.
35076         (rint_test_tonearest): Likewise.
35077         (rint_towardzero_test_data): Likewise.
35078         (rint_test_towardzero): Likewise.
35079         (rint_downward_test_data): Likewise.
35080         (rint_test_downward): Likewise.
35081         (rint_upward_test_data): Likewise.
35082         (rint_test_upward): Likewise.
35083         (main): Don't call removed functions.
35084
35085 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35086
35087         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35088         "Compiled on ..." crapola.  It is anti-useful.
35089
35090 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35091
35092         * scripts/evaluate-test.sh: Handle fourth argument to determine
35093         whether test run should stop on failure.
35094         * Makeconfig (stop-on-test-failure): New variable.
35095         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35096         $(stop-on-test-failure).
35097         * Makefile (tests): Give a summary of results from testing and
35098         exit with failure status if they include an ERROR or FAIL.
35099         (xtests): Likewise.
35100         * manual/install.texi (Configuring and compiling): Mention
35101         stop-on-test-failure=y.
35102         * INSTALL: Regenerated.
35103
35104 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35105
35106         * scripts/versionlist.awk: New file.
35107         * Makerules [$(build-shared) = yes]
35108         (postclean-generated): Add Versions.def, not Versions.def.v and
35109         Versions.def.v.i.
35110         ($(common-objpfx)Versions.def.v.i): Target removed.
35111         ($(common-objpfx)Versions.def): New target.
35112         ($(common-objpfx)Versions.all): Depend on that rather that
35113         $(common-objpfx)Versions.def.v.
35114         * Versions.def: File removed.
35115
35116         * Makeconfig (+gccwarn): Add -Wundef.
35117         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35118         a dl-sysdep.h breaking its contract.
35119         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35120         * include/stackinfo.h: New file.
35121         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35122         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35123         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35124         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35125         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35126         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35127         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35128         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35129         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35130         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35131         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35132         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35133         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35134         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35135         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35136
35137 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35138
35139         [BZ #16707]
35140         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35141         implementation.
35142         * math/libm-test.inc (round_test_data): Add more tests.
35143
35144         [BZ #16706]
35145         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35146         implementation.
35147         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35148
35149         [BZ #16701]
35150         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35151         implementation.
35152         * math/libm-test.inc (ceil_test_data): Add more tests.
35153
35154         * math/libm-test.inc (trunc_test_data): Add more tests related to
35155         BZ#16414.
35156
35157 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35158
35159         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35160         with #if rather than #ifdef.
35161         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35162
35163 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35164
35165         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35166         first.  Disable AVX-512 GCC support if assembler doesn't support
35167         it.
35168         * sysdeps/x86_64/configure: Regenerated.
35169
35170 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35171
35172         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35173         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35174         (__old_pthread_attr_setstack): Likewise.
35175         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35176         [!_STACK_GROWS_DOWN]: Likewise.
35177
35178 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35179
35180         * config.make.in (have-bash2): Delete.
35181         * configure.ac (libc_cv_have_bash2): Delete.
35182         * configure: Regenerate.
35183         * elf/Makefile (common-ldd-rewrite): Rename to ...
35184         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35185         (sh-ldd-rewrite): Delete.
35186         (bash-ldd-rewrite): Delete.
35187         (have-bash2): Delete checks.
35188         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35189         ldd-rewrite.
35190
35191         * config.make.in (have-ksh): Delete.
35192         (KSH): Delete.
35193         * configure.ac (libc_cv_have_ksh): Delete.
35194         * configure: Regenerate.
35195
35196         * elf/Makefile: Delete $(have-ksh) check.
35197         ($(objpfx)sotruss): Change KSH to BASH.
35198         * elf/sotruss.ksh: Rename to ...
35199         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35200         function style to match POSIX.  Drop ksh vim mode setting.
35201
35202         * manual/time.texi (Specifying the Time Zone with TZ): Change
35203         Tuesday to Thursday.
35204
35205         * debug/tst-longjmp_chk2.c: Update header comment.
35206         (stackoverflow_handler): Add comment.  Call assert on pass value.
35207
35208 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35209
35210         [BZ #16194]
35211         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35212         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35213         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35214         (La_x86_64_vector): Add zmm.
35215         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35216         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35217         ($(objpfx)tst-audit10): New target.
35218         ($(objpfx)tst-audit10.out): Likewise.
35219         (tst-audit10-ENV): New.
35220         (AVX512-CFLAGS): Likewise.
35221         (CFLAGS-tst-audit10.c): Likewise.
35222         (CFLAGS-tst-auditmod10a.c): Likewise.
35223         (CFLAGS-tst-auditmod10b.c): Likewise.
35224         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35225         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35226         * sysdeps/x86_64/configure: Regenerated.
35227         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35228         AVX-512 zmm register support.
35229         (_dl_x86_64_save_sse): Likewise.
35230         (_dl_x86_64_restore_sse): Likewise.
35231         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35232         size vector registers.
35233         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35234         (ZMM_SIZE): Likewise.
35235         * sysdeps/x86_64/tst-audit10.c: New file.
35236         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35237         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35238
35239 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35240
35241         * configure.ac (HAVE_EHDR_START): New check.
35242         * configure: Regenerated.
35243         * config.h.in (HAVE_EHDR_START): New #undef.
35244         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35245         assuming the lowest-addressed segment maps the start of the file.
35246
35247 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35248
35249         * INSTALL: Regenerated.
35250
35251 2014-03-13  Will Newton  <will.newton@linaro.org>
35252
35253         * manual/setjmp.texi (System V contexts): Improve
35254         clarity and grammar of documentation.
35255
35256 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35257
35258         [BZ #16381]
35259         * elf/Makefile (tests): Add tst-pie2.
35260         (tests-pie): Add tst-pie2.
35261         * elf/tst-pie2.c: New file.
35262         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35263         for ET_EXEC.
35264         * elf/rtld.c (map_doit): Load executable as lt_executable.
35265         (dl_main): Likewise.
35266
35267 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35268
35269         [BZ #16642]
35270         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35271         (__ASSUME_PSELECT): Undefine.
35272
35273 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35274
35275         [BZ #16689]
35276         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35277         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35278         static build.
35279         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35280         selector for static builds.
35281
35282 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35283
35284         [BZ #16695]
35285         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35286         key in the buffer.
35287
35288 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35289
35290         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35291         IFUNC selector for static builds.
35292
35293 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35294
35295         * sysdeps/mips/math_private.h [__mips_hard_float]
35296         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35297         libc_feresetround_mips_ctx.
35298         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35299         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35300         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35301
35302         [BZ #16677]
35303         * math/s_nextafter.c (__nextafter): Do not return value from
35304         overflowing computation.
35305         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35306         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35307         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35308         Likewise.
35309         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35310         Likewise.
35311         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35312         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35313
35314 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35315
35316         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35317         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35318         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35319         the new mov targetting sp.
35320
35321 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35322
35323         [BZ #16683]
35324         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35325         Define it for static builds as well.
35326         (NO_BZERO_IMPL): Likewise.
35327
35328 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35329
35330         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35331         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35332         multiarch strspn for PPC64.
35333         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35334         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35335         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35336         (__libc_ifunc_impl_list): Likewise.
35337         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35338         multiarch optimizations
35339         * string/strspn.c (strspn): Using macro to redefine symbol name.
35340
35341 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35342             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35343
35344         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35345         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35346         multiarch strncat for PPC64.
35347         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35348         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35349         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35350         (__libc_ifunc_impl_list): Likewise.
35351         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35352         multiarch optimizations
35353
35354 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35355
35356         [BZ #16639]
35357         * nscd/nscd.service: Make service type forking.
35358
35359 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35360
35361         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35362         sign in non default rounding modes.
35363         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35364
35365 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35366
35367         * math/libm-test.inc (ALL_RM_TEST): New macro.
35368         (ceil_test): Use ALL_RM_TEST.
35369         (cimag_test): Likewise.
35370         (conj_test): Likewise.
35371         (copysign_test): Likewise.
35372         (cproj_test): Likewise.
35373         (creal_test): Likewise.
35374         (fabs_test): Likewise.
35375         (floor_test): Likewise.
35376         (fmax_test): Likewise.
35377         (fmin_test): Likewise.
35378         (fmod_test): Likewise.
35379         (fpclassify_test): Likewise.
35380         (frexp_test): Likewise.
35381         (ilogb_test): Likewise.
35382         (isfinite_test): Likewise.
35383         (finite_test): Likewise.
35384         (isgreater_test): Likewise.
35385         (isgreaterequal_test): Likewise.
35386         (isinf_test): Likewise.
35387         (isless_test): Likewise.
35388         (islessequal_test): Likewise.
35389         (islessgreater_test): Likewise.
35390         (isnan_test): Likewise.
35391         (isnormal_test): Likewise.
35392         (issignaling_test): Likewise.
35393         (isunordered_test): Likewise.
35394         (logb_test): Likewise.
35395         (logb_downward_test_data): Remove.
35396         (logb_test_downward): Likewise.
35397         (lround_test): Use ALL_RM_TEST.
35398         (llround_test): Likewise.
35399         (modf_test): Likewise.
35400         (nexttoward_test): Likewise.
35401         (remainder_test): Likewise.
35402         (drem_test): Likewise.
35403         (remainder_tonearest_test_data): Likewise.
35404         (remainder_test_tonearest): Likewise.
35405         (drem_test_tonearest): Likewise.
35406         (remainder_towardzero_test_data): Likewise.
35407         (remainder_test_towardzero): Likewise.
35408         (drem_test_towardzero): Likewise.
35409         (remainder_downward_test_data): Likewise.
35410         (remainder_test_downward): Likewise.
35411         (drem_test_downward): Likewise.
35412         (remainder_upward_test_data): Likewise.
35413         (remainder_test_upward): Likewise.
35414         (drem_test_upward): Likewise.
35415         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35416         (round_test): Use ALL_RM_TEST.
35417         (signbit_test): Likewise.
35418         (trunc_test): Likewise.
35419         (significand_test): Likewise.
35420         (main): Don't call removed functions.
35421
35422 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35423
35424         [BZ #16674]
35425         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35426         || __USE_XOPEN2K8].
35427         (ILL_ILLOPN): Likewise.
35428         (ILL_ILLADR): Likewise.
35429         (ILL_ILLTRP): Likewise.
35430         (ILL_PRVOPC): Likewise.
35431         (ILL_PRVREG): Likewise.
35432         (ILL_COPROC): Likewise.
35433         (ILL_BADSTK): Likewise.
35434         (FPE_INTDIV): Likewise.
35435         (FPE_INTOVF): Likewise.
35436         (FPE_FLTDIV): Likewise.
35437         (FPE_FLTOVF): Likewise.
35438         (FPE_FLTUND): Likewise.
35439         (FPE_FLTRES): Likewise.
35440         (FPE_FLTINV): Likewise.
35441         (FPE_FLTSUB): Likewise.
35442         (SEGV_MAPERR): Likewise.
35443         (SEGV_ACCERR): Likewise.
35444         (BUS_ADRALN): Likewise.
35445         (BUS_ADRERR): Likewise.
35446         (BUS_OBJERR): Likewise.
35447         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35448         (TRAP_TRACE): Likewise.
35449         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35450         __USE_XOPEN2K8].
35451         (CLD_KILLED): Likewise.
35452         (CLD_DUMPED): Likewise.
35453         (CLD_TRAPPED): Likewise.
35454         (CLD_STOPPED): Likewise.
35455         (CLD_CONTINUED): Likewise.
35456         (POLL_IN): Likewise.
35457         (POLL_OUT): Likewise.
35458         (POLL_MSG): Likewise.
35459         (POLL_ERR): Likewise.
35460         (POLL_PRI): Likewise.
35461         (POLL_HUP): Likewise.
35462         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35463         Likewise.
35464         (ILL_ILLOPN): Likewise.
35465         (ILL_ILLADR): Likewise.
35466         (ILL_ILLTRP): Likewise.
35467         (ILL_PRVOPC): Likewise.
35468         (ILL_PRVREG): Likewise.
35469         (ILL_COPROC): Likewise.
35470         (ILL_BADSTK): Likewise.
35471         (FPE_INTDIV): Likewise.
35472         (FPE_INTOVF): Likewise.
35473         (FPE_FLTDIV): Likewise.
35474         (FPE_FLTOVF): Likewise.
35475         (FPE_FLTUND): Likewise.
35476         (FPE_FLTRES): Likewise.
35477         (FPE_FLTINV): Likewise.
35478         (FPE_FLTSUB): Likewise.
35479         (SEGV_MAPERR): Likewise.
35480         (SEGV_ACCERR): Likewise.
35481         (BUS_ADRALN): Likewise.
35482         (BUS_ADRERR): Likewise.
35483         (BUS_OBJERR): Likewise.
35484         (BUS_MCEERR_AR): Likewise.
35485         (BUS_MCEERR_AO): Likewise.
35486         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35487         (TRAP_TRACE): Likewise.
35488         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35489         __USE_XOPEN2K8].
35490         (CLD_KILLED): Likewise.
35491         (CLD_DUMPED): Likewise.
35492         (CLD_TRAPPED): Likewise.
35493         (CLD_STOPPED): Likewise.
35494         (CLD_CONTINUED): Likewise.
35495         (POLL_IN): Likewise.
35496         (POLL_OUT): Likewise.
35497         (POLL_MSG): Likewise.
35498         (POLL_ERR): Likewise.
35499         (POLL_PRI): Likewise.
35500         (POLL_HUP): Likewise.
35501         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35502         (ILL_ILLOPN): Likewise.
35503         (ILL_ILLADR): Likewise.
35504         (ILL_ILLTRP): Likewise.
35505         (ILL_PRVOPC): Likewise.
35506         (ILL_PRVREG): Likewise.
35507         (ILL_COPROC): Likewise.
35508         (ILL_BADSTK): Likewise.
35509         (FPE_INTDIV): Likewise.
35510         (FPE_INTOVF): Likewise.
35511         (FPE_FLTDIV): Likewise.
35512         (FPE_FLTOVF): Likewise.
35513         (FPE_FLTUND): Likewise.
35514         (FPE_FLTRES): Likewise.
35515         (FPE_FLTINV): Likewise.
35516         (FPE_FLTSUB): Likewise.
35517         (SEGV_MAPERR): Likewise.
35518         (SEGV_ACCERR): Likewise.
35519         (BUS_ADRALN): Likewise.
35520         (BUS_ADRERR): Likewise.
35521         (BUS_OBJERR): Likewise.
35522         (BUS_MCEERR_AR): Likewise.
35523         (BUS_MCEERR_AO): Likewise.
35524         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35525         (TRAP_TRACE): Likewise.
35526         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35527         __USE_XOPEN2K8].
35528         (CLD_KILLED): Likewise.
35529         (CLD_DUMPED): Likewise.
35530         (CLD_TRAPPED): Likewise.
35531         (CLD_STOPPED): Likewise.
35532         (CLD_CONTINUED): Likewise.
35533         (POLL_IN): Likewise.
35534         (POLL_OUT): Likewise.
35535         (POLL_MSG): Likewise.
35536         (POLL_ERR): Likewise.
35537         (POLL_PRI): Likewise.
35538         (POLL_HUP): Likewise.
35539         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35540         Likewise.
35541         (ILL_ILLOPN): Likewise.
35542         (ILL_ILLADR): Likewise.
35543         (ILL_ILLTRP): Likewise.
35544         (ILL_PRVOPC): Likewise.
35545         (ILL_PRVREG): Likewise.
35546         (ILL_COPROC): Likewise.
35547         (ILL_BADSTK): Likewise.
35548         (ILL_BADIADDR): Likewise.
35549         (ILL_BREAK): Likewise.
35550         (FPE_INTDIV): Likewise.
35551         (FPE_INTOVF): Likewise.
35552         (FPE_FLTDIV): Likewise.
35553         (FPE_FLTOVF): Likewise.
35554         (FPE_FLTUND): Likewise.
35555         (FPE_FLTRES): Likewise.
35556         (FPE_FLTINV): Likewise.
35557         (FPE_FLTSUB): Likewise.
35558         (FPE_DECOVF): Likewise.
35559         (FPE_DECDIV): Likewise.
35560         (FPE_DECERR): Likewise.
35561         (FPE_INVASC): Likewise.
35562         (FPE_INVDEC): Likewise.
35563         (SEGV_MAPERR): Likewise.
35564         (SEGV_ACCERR): Likewise.
35565         (SEGV_PSTKOVF): Likewise.
35566         (BUS_ADRALN): Likewise.
35567         (BUS_ADRERR): Likewise.
35568         (BUS_OBJERR): Likewise.
35569         (BUS_MCEERR_AR): Likewise.
35570         (BUS_MCEERR_AO): Likewise.
35571         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35572         (TRAP_TRACE): Likewise.
35573         (TRAP_BRANCH): Likewise.
35574         (TRAP_HWBKPT): Likewise.
35575         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35576         __USE_XOPEN2K8].
35577         (CLD_KILLED): Likewise.
35578         (CLD_DUMPED): Likewise.
35579         (CLD_TRAPPED): Likewise.
35580         (CLD_STOPPED): Likewise.
35581         (CLD_CONTINUED): Likewise.
35582         (POLL_IN): Likewise.
35583         (POLL_OUT): Likewise.
35584         (POLL_MSG): Likewise.
35585         (POLL_ERR): Likewise.
35586         (POLL_PRI): Likewise.
35587         (POLL_HUP): Likewise.
35588         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35589         (ILL_ILLOPN): Likewise.
35590         (ILL_ILLADR): Likewise.
35591         (ILL_ILLTRP): Likewise.
35592         (ILL_PRVOPC): Likewise.
35593         (ILL_PRVREG): Likewise.
35594         (ILL_COPROC): Likewise.
35595         (ILL_BADSTK): Likewise.
35596         (FPE_INTDIV): Likewise.
35597         (FPE_INTOVF): Likewise.
35598         (FPE_FLTDIV): Likewise.
35599         (FPE_FLTOVF): Likewise.
35600         (FPE_FLTUND): Likewise.
35601         (FPE_FLTRES): Likewise.
35602         (FPE_FLTINV): Likewise.
35603         (FPE_FLTSUB): Likewise.
35604         (SEGV_MAPERR): Likewise.
35605         (SEGV_ACCERR): Likewise.
35606         (BUS_ADRALN): Likewise.
35607         (BUS_ADRERR): Likewise.
35608         (BUS_OBJERR): Likewise.
35609         (BUS_MCEERR_AR): Likewise.
35610         (BUS_MCEERR_AO): Likewise.
35611         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35612         (TRAP_TRACE): Likewise.
35613         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35614         __USE_XOPEN2K8].
35615         (CLD_KILLED): Likewise.
35616         (CLD_DUMPED): Likewise.
35617         (CLD_TRAPPED): Likewise.
35618         (CLD_STOPPED): Likewise.
35619         (CLD_CONTINUED): Likewise.
35620         (POLL_IN): Likewise.
35621         (POLL_OUT): Likewise.
35622         (POLL_MSG): Likewise.
35623         (POLL_ERR): Likewise.
35624         (POLL_PRI): Likewise.
35625         (POLL_HUP): Likewise.
35626         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35627         (ILL_ILLOPN): Likewise.
35628         (ILL_ILLADR): Likewise.
35629         (ILL_ILLTRP): Likewise.
35630         (ILL_PRVOPC): Likewise.
35631         (ILL_PRVREG): Likewise.
35632         (ILL_COPROC): Likewise.
35633         (ILL_BADSTK): Likewise.
35634         (FPE_INTDIV): Likewise.
35635         (FPE_INTOVF): Likewise.
35636         (FPE_FLTDIV): Likewise.
35637         (FPE_FLTOVF): Likewise.
35638         (FPE_FLTUND): Likewise.
35639         (FPE_FLTRES): Likewise.
35640         (FPE_FLTINV): Likewise.
35641         (FPE_FLTSUB): Likewise.
35642         (SEGV_MAPERR): Likewise.
35643         (SEGV_ACCERR): Likewise.
35644         (BUS_ADRALN): Likewise.
35645         (BUS_ADRERR): Likewise.
35646         (BUS_OBJERR): Likewise.
35647         (BUS_MCEERR_AR): Likewise.
35648         (BUS_MCEERR_AO): Likewise.
35649         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35650         (TRAP_TRACE): Likewise.
35651         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35652         __USE_XOPEN2K8].
35653         (CLD_KILLED): Likewise.
35654         (CLD_DUMPED): Likewise.
35655         (CLD_TRAPPED): Likewise.
35656         (CLD_STOPPED): Likewise.
35657         (CLD_CONTINUED): Likewise.
35658         (POLL_IN): Likewise.
35659         (POLL_OUT): Likewise.
35660         (POLL_MSG): Likewise.
35661         (POLL_ERR): Likewise.
35662         (POLL_PRI): Likewise.
35663         (POLL_HUP): Likewise.
35664         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35665         (ILL_ILLOPN): Likewise.
35666         (ILL_ILLADR): Likewise.
35667         (ILL_ILLTRP): Likewise.
35668         (ILL_PRVOPC): Likewise.
35669         (ILL_PRVREG): Likewise.
35670         (ILL_COPROC): Likewise.
35671         (ILL_BADSTK): Likewise.
35672         (FPE_INTDIV): Likewise.
35673         (FPE_INTOVF): Likewise.
35674         (FPE_FLTDIV): Likewise.
35675         (FPE_FLTOVF): Likewise.
35676         (FPE_FLTUND): Likewise.
35677         (FPE_FLTRES): Likewise.
35678         (FPE_FLTINV): Likewise.
35679         (FPE_FLTSUB): Likewise.
35680         (SEGV_MAPERR): Likewise.
35681         (SEGV_ACCERR): Likewise.
35682         (BUS_ADRALN): Likewise.
35683         (BUS_ADRERR): Likewise.
35684         (BUS_OBJERR): Likewise.
35685         (BUS_MCEERR_AR): Likewise.
35686         (BUS_MCEERR_AO): Likewise.
35687         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35688         (TRAP_TRACE): Likewise.
35689         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35690         __USE_XOPEN2K8].
35691         (CLD_KILLED): Likewise.
35692         (CLD_DUMPED): Likewise.
35693         (CLD_TRAPPED): Likewise.
35694         (CLD_STOPPED): Likewise.
35695         (CLD_CONTINUED): Likewise.
35696         (POLL_IN): Likewise.
35697         (POLL_OUT): Likewise.
35698         (POLL_MSG): Likewise.
35699         (POLL_ERR): Likewise.
35700         (POLL_PRI): Likewise.
35701         (POLL_HUP): Likewise.
35702         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35703         (ILL_ILLOPN): Likewise.
35704         (ILL_ILLADR): Likewise.
35705         (ILL_ILLTRP): Likewise.
35706         (ILL_PRVOPC): Likewise.
35707         (ILL_PRVREG): Likewise.
35708         (ILL_COPROC): Likewise.
35709         (ILL_BADSTK): Likewise.
35710         (ILL_DBLFLT): Likewise.
35711         (ILL_HARDWALL): Likewise.
35712         (FPE_INTDIV): Likewise.
35713         (FPE_INTOVF): Likewise.
35714         (FPE_FLTDIV): Likewise.
35715         (FPE_FLTOVF): Likewise.
35716         (FPE_FLTUND): Likewise.
35717         (FPE_FLTRES): Likewise.
35718         (FPE_FLTINV): Likewise.
35719         (FPE_FLTSUB): Likewise.
35720         (SEGV_MAPERR): Likewise.
35721         (SEGV_ACCERR): Likewise.
35722         (BUS_ADRALN): Likewise.
35723         (BUS_ADRERR): Likewise.
35724         (BUS_OBJERR): Likewise.
35725         (BUS_MCEERR_AR): Likewise.
35726         (BUS_MCEERR_AO): Likewise.
35727         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35728         (TRAP_TRACE): Likewise.
35729         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35730         __USE_XOPEN2K8].
35731         (CLD_KILLED): Likewise.
35732         (CLD_DUMPED): Likewise.
35733         (CLD_TRAPPED): Likewise.
35734         (CLD_STOPPED): Likewise.
35735         (CLD_CONTINUED): Likewise.
35736         (POLL_IN): Likewise.
35737         (POLL_OUT): Likewise.
35738         (POLL_MSG): Likewise.
35739         (POLL_ERR): Likewise.
35740         (POLL_PRI): Likewise.
35741         (POLL_HUP): Likewise.
35742         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35743         (ILL_ILLOPN): Likewise.
35744         (ILL_ILLADR): Likewise.
35745         (ILL_ILLTRP): Likewise.
35746         (ILL_PRVOPC): Likewise.
35747         (ILL_PRVREG): Likewise.
35748         (ILL_COPROC): Likewise.
35749         (ILL_BADSTK): Likewise.
35750         (FPE_INTDIV): Likewise.
35751         (FPE_INTOVF): Likewise.
35752         (FPE_FLTDIV): Likewise.
35753         (FPE_FLTOVF): Likewise.
35754         (FPE_FLTUND): Likewise.
35755         (FPE_FLTRES): Likewise.
35756         (FPE_FLTINV): Likewise.
35757         (FPE_FLTSUB): Likewise.
35758         (SEGV_MAPERR): Likewise.
35759         (SEGV_ACCERR): Likewise.
35760         (BUS_ADRALN): Likewise.
35761         (BUS_ADRERR): Likewise.
35762         (BUS_OBJERR): Likewise.
35763         (BUS_MCEERR_AR): Likewise.
35764         (BUS_MCEERR_AO): Likewise.
35765         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35766         (TRAP_TRACE): Likewise.
35767         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35768         __USE_XOPEN2K8].
35769         (CLD_KILLED): Likewise.
35770         (CLD_DUMPED): Likewise.
35771         (CLD_TRAPPED): Likewise.
35772         (CLD_STOPPED): Likewise.
35773         (CLD_CONTINUED): Likewise.
35774         (POLL_IN): Likewise.
35775         (POLL_OUT): Likewise.
35776         (POLL_MSG): Likewise.
35777         (POLL_ERR): Likewise.
35778         (POLL_PRI): Likewise.
35779         (POLL_HUP): Likewise.
35780         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35781         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35782
35783         [BZ #16670]
35784         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35785         before #include of <time.h>.
35786         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35787         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35788         (test-xfail-UNIX98/sched.h/conform): Likewise.
35789
35790 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35791
35792         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35793         error absence of trapping exception support.
35794         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35795
35796 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35797
35798         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35799         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35800         * timezone/Makefile (testdata): Move definition above include of
35801         Rules.
35802         (test-zones): New variable.
35803         (tests-special): Add zone files.
35804         (build-testdata): Use $(evaluate-test).
35805
35806         * elf/Makefile (tests-special): Rename tests to end with .out.
35807         ($(objpfx)noload-mem): Likewise.
35808         ($(objpfx)tst-leaks1-mem): Likewise.
35809         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35810         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35811         $(objpfx)test-iconvconfig.out.
35812         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35813         set -e inside subshell and redirect output to file.
35814         * iconvdata/Makefile (generated): Rename tests to end with .out.
35815         Correct type.
35816         (tests-special): Rename tests to end with .out.
35817         ($(objpfx)mtrace-tst-loading): Likewise.
35818         * intl/Makefile (generated): Likewise.
35819         (tests-special): Likewise.
35820         ($(objpfx)mtrace-tst-gettext): Likewise.
35821         * misc/Makefile (generated): Likewise.
35822         (tests-special): Likewise.
35823         ($(objpfx)tst-error1-mem): Likewise.
35824         * nptl/Makefile (tests-special): Likewise.
35825         ($(objpfx)tst-stack3-mem): Likewise.
35826         (generated): Likewise.
35827         * posix/Makefile (generated): Likewise.
35828         (tests-special): Likewise.
35829         (xtests-special): Likewise.
35830         ($(objpfx)tst-fnmatch-mem): Likewise.
35831         ($(objpfx)bug-regex2-mem): Likewise.
35832         ($(objpfx)bug-regex14-mem): Likewise.
35833         ($(objpfx)bug-regex21-mem): Likewise.
35834         ($(objpfx)bug-regex31-mem): Likewise.
35835         ($(objpfx)tst-vfork3-mem): Likewise.
35836         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35837         ($(objpfx)tst-pcre-mem): Likewise.
35838         ($(objpfx)tst-boost-mem): Likewise.
35839         ($(objpfx)bug-ga2-mem): Likewise.
35840         ($(objpfx)bug-glob2-mem): Likewise.
35841         * resolv/Makefile (generate): Likewise.
35842         (tests-special): Likewise.
35843         (xtests-special): Likewise.
35844         (generated): Likewise.
35845         ($(objpfx)mtrace-tst-leaks): Likewise.
35846         ($(objpfx)mtrace-tst-leaks2): Likewise.
35847
35848         * scripts/merge-test-results.sh: New file.
35849         * Makefile (tests-special-notdir): New variable.
35850         (tests): Run merge-test-results.sh.
35851         (xtests): Likewise.
35852         * Rules (tests-special-notdir): New variable.
35853         (xtests-special-notdir): Likewise.
35854         (tests): Run merge-test-results.sh
35855         (xtests): Likewise.
35856
35857         * Makeconfig (test-xfail-name): New variable.
35858         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35859         compute variable name for expected failures.
35860         * conform/Makefile (conformtest-headers-data): New variable.
35861         (conformtest-standards): Likewise.
35862         (conformtest-headers-ISO): Likewise.
35863         (conformtest-headers-ISO99): Likewise.
35864         (conformtest-headers-ISO11): Likewise.
35865         (conformtest-headers-POSIX): Likewise.
35866         (conformtest-headers-XPG3): Likewise.
35867         (conformtest-headers-XPG4): Likewise.
35868         (conformtest-headers-UNIX98): Likewise.
35869         (conformtest-headers-XOPEN2K): Likewise.
35870         (conformtest-headers-POSIX2008): Likewise.
35871         (conformtest-headers-XOPEN2K8): Likewise.
35872         (conformtest-header-list-base): Likewise.
35873         (conformtest-header-list-tests): Likewise.
35874         (conformtest-header-base): Likewise.
35875         (conformtest-header-tests): Likewise.
35876         (tests-special): Add $(conformtest-header-list-tests).  If
35877         [$(fast-check) && !$(cross-compiling)], add
35878         $(conformtest-header-tests) instead of
35879         $(objpfx)run-conformtest.out.
35880         (generated): Add $(conformtest-header-list-base).  If
35881         [$(fast-check) && !$(cross-compiling)], add
35882         $(conformtest-header-base).  Remove previous setting.
35883         ($(conformtest-header-list-tests)): New target.
35884         (test-xfail-run-conformtest): Remove variable.
35885         ($(objpfx)run-conformtest.out): Remove target.
35886         (test-xfail-ISO11/complex.h/conform): New variable.
35887         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35888         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35889         (test-xfail-XPG3/varargs.h/conform): Likewise.
35890         (test-xfail-XPG4/varargs.h/conform): Likewise.
35891         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35892         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35893         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35894         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35895         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35896         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35897         (test-xfail-XPG3/ftw.h/conform): Likewise.
35898         (test-xfail-XPG3/grp.h/conform): Likewise.
35899         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35900         (test-xfail-XPG3/limits.h/conform): Likewise.
35901         (test-xfail-XPG3/pwd.h/conform): Likewise.
35902         (test-xfail-XPG3/search.h/conform): Likewise.
35903         (test-xfail-XPG3/signal.h/conform): Likewise.
35904         (test-xfail-XPG3/stdio.h/conform): Likewise.
35905         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35906         (test-xfail-XPG3/string.h/conform): Likewise.
35907         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35908         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35909         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35910         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35911         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35912         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35913         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35914         (test-xfail-XPG3/termios.h/conform): Likewise.
35915         (test-xfail-XPG3/time.h/conform): Likewise.
35916         (test-xfail-XPG3/unistd.h/conform): Likewise.
35917         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35918         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35919         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35920         (test-xfail-XPG4/netdb.h/conform): Likewise.
35921         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35922         (test-xfail-XPG4/signal.h/conform): Likewise.
35923         (test-xfail-XPG4/stdio.h/conform): Likewise.
35924         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35925         (test-xfail-XPG4/stropts.h/conform): Likewise.
35926         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35927         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35928         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35929         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35930         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35931         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35932         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35933         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35934         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35935         (test-xfail-XPG4/termios.h/conform): Likewise.
35936         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35937         (test-xfail-XPG4/unistd.h/conform): Likewise.
35938         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35939         (test-xfail-POSIX/sched.h/conform): Likewise.
35940         (test-xfail-POSIX/signal.h/conform): Likewise.
35941         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35942         (test-xfail-POSIX/tar.h/conform): Likewise.
35943         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35944         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35945         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35946         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35947         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35948         (test-xfail-UNIX98/sched.h/conform): Likewise.
35949         (test-xfail-UNIX98/signal.h/conform): Likewise.
35950         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35951         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35952         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35953         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35954         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35955         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35956         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35957         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35958         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35959         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35960         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35961         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35962         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35963         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35964         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35965         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35966         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35967         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35968         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35969         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35970         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35971         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35972         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35973         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35974         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35975         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35976         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35977         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35978         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35979         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35980         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35981         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35982         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35983         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35984         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35985         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35986         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35987         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35988         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35989         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35990         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35991         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35992         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35993         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35994         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35995         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35996         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35997         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35998         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35999         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36000         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36001         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36002         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36003         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36004         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36005         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36006         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36007         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36008         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36009         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36010         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36011         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36012         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36013         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36014         (conformtest-cc-flags): Likewise.
36015         ($(conformtest-header-tests): New target.
36016         * conform/check-header-lists.sh: New file.
36017         * conform/run-conformtest.sh: Remove.
36018
36019         * conform/conformtest.pl: Allow ' and \ in values given for
36020         constants.
36021         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36022         inclusion.
36023         [POSIX] (sys/types.h): Likewise.
36024         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36025         inclusion.
36026         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36027         inclusion.
36028         * conform/data/signal.h-data (SIGIO): Remove expectation.
36029         [XPG3] (SIGBUS): Do not expect.
36030         [POSIX || XPG3] (SIGPOLL): Likewise.
36031         [POSIX || XPG3] (SIGPROF): Likewise.
36032         [POSIX || XPG3] (SIGSYS): Likewise.
36033         [XPG3] (SIGTRAP): Likewise.
36034         [POSIX || XPG3] (SIGURG): Likewise.
36035         [POSIX || XPG3] (SIGVTALRM): Likewise.
36036         [POSIX || XPG3] (SIGXCPU): Likewise.
36037         [POSIX || XPG3] (SIGXFSZ): Likewise.
36038         [POSIX] (SA_SIGINFO): Expect.
36039         [XPG3] (siginfo_t): Do not expect type or contents.
36040         [POSIX] (si_pid): Do not expect element.
36041         [POSIX] (si_uid): Likewise.
36042         [POSIX] (si_addr): Likewise.
36043         [POSIX] (si_status): Likewise.
36044         [POSIX] (si_band): Likewise.
36045         [XPG4] (si_value): Likewise.
36046         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36047         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36048         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36049         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36050         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36051         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36052         [POSIX || XPG3] (ILL_COPROC): Likewise.
36053         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36054         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36055         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36056         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36057         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36058         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36059         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36060         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36061         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36062         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36063         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36064         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36065         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36066         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36067         [POSIX || XPG3] (CLD_EXITED): Likewise.
36068         [POSIX || XPG3] (CLD_KILLED): Likewise.
36069         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36070         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36071         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36072         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36073         [POSIX || XPG3] (POLL_IN): Likewise.
36074         [POSIX || XPG3] (POLL_OUT): Likewise.
36075         [POSIX || XPG3] (POLL_MSG): Likewise.
36076         [POSIX || XPG3] (POLL_ERR): Likewise.
36077         [POSIX || XPG3] (POLL_PRI): Likewise.
36078         [POSIX || XPG3] (POLL_HUP): Likewise.
36079         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36080         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36081         (SIG*): Do not allow.
36082         [XPG3] (si_*): Likewise.
36083         [XPG3] (SI_*): Likewise.
36084         [XPG3 || XPG4] (sigev_*): Likewise.
36085         [XPG3 || XPG4] (SIGEV_*): Likewise.
36086         [XPG3 || XPG4] (sival_*): Likewise.
36087         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36088         [POSIX || XPG3] (BUS_*): Likewise.
36089         [POSIX || XPG3] (CLD_*): Likewise.
36090         [POSIX || XPG3] (FPE_*): Likewise.
36091         [POSIX || XPG3] (ILL_*): Likewise.
36092         [POSIX || XPG3] (POLL_*): Likewise.
36093         [POSIX || XPG3] (SEGV_*): Likewise.
36094         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36095         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36096         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36097         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36098         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36099         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36100         Specify type and value.
36101         (TVERSLEN): Likewise.
36102         (REGTYPE): Likewise.
36103         (AREGTYPE): Likewise.
36104         (LNKTYPE): Likewise.
36105         (SYMTYPE): Likewise.
36106         (CHRTYPE): Likewise.
36107         (BLKTYPE): Likewise.
36108         (DIRTYPE): Likewise.
36109         (FIFOTYPE): Likewise.
36110         (CONTTYPE): Likewise.
36111         (TSUID): Likewise.
36112         (TSGID): Likewise.
36113         (TSVTX): Likewise.
36114         (TUREAD): Likewise.
36115         (TUWRITE): Likewise.
36116         (TUEXEC): Likewise.
36117         (TGREAD): Likewise.
36118         (TGWRITE): Likewise.
36119         (TGEXEC): Likewise.
36120         (TOREAD): Likewise.
36121         (TOWRITE): Likewise.
36122         (TOEXEC): Likewise.
36123         [POSIX] (TSVTX): Expect constant.
36124
36125 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36126
36127         * Makefile (tests): Change dependencies to ....
36128         (tests-special): ... additions to this variable.
36129         (tests): Depend on $(tests-special).
36130         * Makerules (check-abi-list): New variable.
36131         (check-abi): Depend on $(check-abi-list).
36132         [$(subdir) = elf] (tests-special): Add
36133         $(objpfx)check-abi-libc.out.
36134         [$(build-shared) = yes && subdir] (tests-special): Add
36135         $(check-abi-list).
36136         [$(build-shared) = yes && subdir] (tests): Do not depend on
36137         check-abi.
36138         * Rules (tests): Depend on $(tests-special).
36139         (xtests): Depend on $(xtests-special).
36140         * catgets/Makefile (tests): Change dependencies to ....
36141         (tests-special): ... additions to this variable.
36142         * conform/Makefile (tests): Change dependencies to ....
36143         (tests-special): ... additions to this variable.
36144         * elf/Makefile (tests): Change dependencies to ....
36145         (tests-special): ... additions to this variable.
36146         * grp/Makefile (tests): Change dependencies to ....
36147         (tests-special): ... additions to this variable.
36148         * iconv/Makefile (xtests): Change dependencies to ....
36149         (xtests-special): ... additions to this variable.
36150         * iconvdata/Makefile (tests): Change dependencies to ....
36151         (tests-special): ... additions to this variable.
36152         * intl/Makefile (tests): Change dependencies to ....
36153         (tests-special): ... additions to this variable.  Also add
36154         $(objpfx)tst-gettext.out.
36155         * io/Makefile (tests): Change dependencies to ....
36156         (tests-special): ... additions to this variable.
36157         * libio/Makefile (tests): Change dependencies to ....
36158         (tests-special): ... additions to this variable.
36159         * malloc/Makefile (tests): Change dependencies to ....
36160         (tests-special): ... additions to this variable.
36161         * misc/Makefile (tests): Change dependencies to ....
36162         (tests-special): ... additions to this variable.
36163         * nptl/Makefile (tests): Change dependencies to ....
36164         (tests-special): ... additions to this variable.
36165         * nptl_db/Makefile (tests): Change dependencies to ....
36166         (tests-special): ... additions to this variable.
36167         * posix/Makefile (tests): Change dependencies to ....
36168         (tests-special): ... additions to this variable.
36169         (xtests): Change dependencies to ....
36170         (xtests-special): ... additions to this variable.
36171         * resolv/Makefile (tests): Change dependencies to ....
36172         (tests-special): ... additions to this variable.
36173         (xtests): Change dependencies to ....
36174         (xtests-special): ... additions to this variable.
36175         * stdio-common/Makefile (tests): Change dependencies to ....
36176         (tests-special): ... additions to this variable.
36177         (do-tst-unbputc): Remove target.
36178         (do-tst-printf): Likewise.
36179         * stdlib/Makefile (tests): Change dependencies to ....
36180         (tests-special): ... additions to this variable.
36181         * string/Makefile (tests): Change dependencies to ....
36182         (tests-special): ... additions to this variable.
36183         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36184         (tests-special): ... additions to this variable.
36185
36186         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36187         whole file.
36188         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36189         whole file.
36190         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36191         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36192
36193         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36194         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36195         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36196         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36197         * conform/data/libgen.h-data [XPG3]: Likewise.
36198         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36199         * conform/data/ndbm.h-data [XPG3]: Likewise.
36200         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36201         * conform/data/netdb.h-data [XPG3]: Likewise.
36202         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36203         * conform/data/poll.h-data [XPG3]: Likewise.
36204         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36205         * conform/data/strings.h-data [XPG3]: Likewise.
36206         * conform/data/stropts.h-data [XPG3]: Likewise.
36207         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36208         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36209         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36210         Likewise.
36211         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36212         * conform/data/sys/time.h-data [XPG3]: Likewise.
36213         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36214         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36215         * conform/data/sys/un.h-data [XPG3]: Likewise.
36216         * conform/data/syslog.h-data [XPG3]: Likewise.
36217         * conform/data/ucontext.h-data [XPG3]: Likewise.
36218         * conform/data/utmpx.h-data [XPG3]: Likewise.
36219         * conform/data/varargs.h-data [UNIX98]: Enable file.
36220
36221         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36222
36223         * math/libm-test.inc (struct test_f_f_data): Move expected results
36224         into structure for each rounding mode.
36225         (struct test_ff_f_data): Likewise.
36226         (struct test_ff_f_data_nexttoward): Likewise.
36227         (struct test_fi_f_data): Likewise.
36228         (struct test_fl_f_data): Likewise.
36229         (struct test_if_f_data): Likewise.
36230         (struct test_fff_f_data): Likewise.
36231         (struct test_c_f_data): Likewise.
36232         (struct test_f_f1_data): Likewise.
36233         (struct test_fF_f1_data): Likewise.
36234         (struct test_ffI_f1_data): Likewise.
36235         (struct test_c_c_data): Likewise.
36236         (struct test_cc_c_data): Likewise.
36237         (struct test_f_i_data): Likewise.
36238         (struct test_ff_i_data): Likewise.
36239         (struct test_f_l_data): Likewise.
36240         (struct test_f_L_data): Likewise.
36241         (struct test_fFF_11_data): Likewise.
36242         (RM_): New macro.
36243         (RM_FE_DOWNWARD): Likewise.
36244         (RM_FE_TONEAREST): Likewise.
36245         (RM_FE_TOWARDZERO): Likewise.
36246         (RM_FE_UPWARD): Likewise.
36247         (RUN_TEST_LOOP_f_f): Update references to expected results.
36248         (RUN_TEST_LOOP_2_f): Likewise.
36249         (RUN_TEST_LOOP_fff_f): Likewise.
36250         (RUN_TEST_LOOP_c_f): Likewise.
36251         (RUN_TEST_LOOP_f_f1): Likewise.
36252         (RUN_TEST_LOOP_fF_f1): Likewise.
36253         (RUN_TEST_LOOP_fI_f1): Likewise.
36254         (RUN_TEST_LOOP_ffI_f1): Likewise.
36255         (RUN_TEST_LOOP_c_c): Likewise.
36256         (RUN_TEST_LOOP_cc_c): Likewise.
36257         (RUN_TEST_LOOP_f_i): Likewise.
36258         (RUN_TEST_LOOP_f_i_tg): Likewise.
36259         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36260         (RUN_TEST_LOOP_f_b): Likewise.
36261         (RUN_TEST_LOOP_f_b_tg): Likewise.
36262         (RUN_TEST_LOOP_f_l): Likewise.
36263         (RUN_TEST_LOOP_f_L): Likewise.
36264         (RUN_TEST_LOOP_fFF_11): Likewise.
36265         * math/gen-libm-test.pl (parse_args): Output four copies of
36266         expected results for each test.
36267
36268         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36269         (__ASSUME_UTIMES): Remove.
36270         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36271         (__ASSUME_UTIMES): Likewise.
36272
36273         * math/gen-auto-libm-tests.c: Update comment on output format.
36274         (output_for_one_input_case): Generate before-rounding and
36275         after-rounding information as conditions on output flags not
36276         floating-point format.
36277         * math/auto-libm-test-out: Regenerated.
36278         * math/gen-libm-test.pl (cond_value): New function.
36279         (or_cond_value): Use cond_value.
36280         (generate_testfile): Handle conditional exceptions.
36281
36282 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36283
36284         * math/libm-test.inc (max_valid_error): New variable.
36285         (init_max_error): Take new argument specifying whether function
36286         results are exactly determined.  Set max_valid_error and bound
36287         other variables for errors based on this argument.
36288         (set_max_error): Do not record results above max_valid_error.
36289         (check_float_internal): Only accept errors of up to 0.5ulps if
36290         also at most max_valid_error.
36291         (START): Take new argument EXACT and pass it to init_max_error.
36292         (acos_test): Update call to START.
36293         (acos_test_tonearest): Likewise.
36294         (acos_test_towardzero): Likewise.
36295         (acos_test_downward): Likewise.
36296         (acos_test_upward): Likewise.
36297         (acosh_test): Likewise.
36298         (asin_test): Likewise.
36299         (asin_test_tonearest): Likewise.
36300         (asin_test_towardzero): Likewise.
36301         (asin_test_downward): Likewise.
36302         (asin_test_upward): Likewise.
36303         (asinh_test): Likewise.
36304         (atan_test): Likewise.
36305         (atanh_test): Likewise.
36306         (atan2_test): Likewise.
36307         (cabs_test): Likewise.
36308         (cacos_test): Likewise.
36309         (cacosh_test): Likewise.
36310         (carg_test): Likewise.
36311         (casin_test): Likewise.
36312         (casinh_test): Likewise.
36313         (catan_test): Likewise.
36314         (catanh_test): Likewise.
36315         (cbrt_test): Likewise.
36316         (ccos_test): Likewise.
36317         (ccosh_test): Likewise.
36318         (ceil_test): Likewise.
36319         (cexp_test): Likewise.
36320         (cimag_test): Likewise.
36321         (clog_test): Likewise.
36322         (clog10_test): Likewise.
36323         (conj_test): Likewise.
36324         (copysign_test): Likewise.
36325         (cos_test): Likewise.
36326         (cos_test_tonearest): Likewise.
36327         (cos_test_towardzero): Likewise.
36328         (cos_test_downward): Likewise.
36329         (cos_test_upward): Likewise.
36330         (cosh_test): Likewise.
36331         (cosh_test_tonearest): Likewise.
36332         (cosh_test_towardzero): Likewise.
36333         (cosh_test_downward): Likewise.
36334         (cosh_test_upward): Likewise.
36335         (cpow_test): Likewise.
36336         (cproj_test): Likewise.
36337         (creal_test): Likewise.
36338         (csin_test): Likewise.
36339         (csinh_test): Likewise.
36340         (csqrt_test): Likewise.
36341         (ctan_test): Likewise.
36342         (ctan_test_tonearest): Likewise.
36343         (ctan_test_towardzero): Likewise.
36344         (ctan_test_downward): Likewise.
36345         (ctan_test_upward): Likewise.
36346         (ctanh_test): Likewise.
36347         (ctanh_test_tonearest): Likewise.
36348         (ctanh_test_towardzero): Likewise.
36349         (ctanh_test_downward): Likewise.
36350         (ctanh_test_upward): Likewise.
36351         (erf_test): Likewise.
36352         (erfc_test): Likewise.
36353         (exp_test): Likewise.
36354         (exp_test_tonearest): Likewise.
36355         (exp_test_towardzero): Likewise.
36356         (exp_test_downward): Likewise.
36357         (exp_test_upward): Likewise.
36358         (exp10_test): Likewise.
36359         (exp10_test_tonearest): Likewise.
36360         (exp10_test_towardzero): Likewise.
36361         (exp10_test_downward): Likewise.
36362         (exp10_test_upward): Likewise.
36363         (pow10_test): Likewise.
36364         (exp2_test): Likewise.
36365         (expm1_test): Likewise.
36366         (expm1_test_tonearest): Likewise.
36367         (expm1_test_towardzero): Likewise.
36368         (expm1_test_downward): Likewise.
36369         (expm1_test_upward): Likewise.
36370         (fabs_test): Likewise.
36371         (fdim_test): Likewise.
36372         (floor_test): Likewise.
36373         (fma_test): Likewise.
36374         (fma_test_towardzero): Likewise.
36375         (fma_test_downward): Likewise.
36376         (fma_test_upward): Likewise.
36377         (fmax_test): Likewise.
36378         (fmin_test): Likewise.
36379         (fmod_test): Likewise.
36380         (fpclassify_test): Likewise.
36381         (frexp_test): Likewise.
36382         (hypot_test): Likewise.
36383         (ilogb_test): Likewise.
36384         (isfinite_test): Likewise.
36385         (finite_test): Likewise.
36386         (isgreater_test): Likewise.
36387         (isgreaterequal_test): Likewise.
36388         (isinf_test): Likewise.
36389         (isless_test): Likewise.
36390         (islessequal_test): Likewise.
36391         (islessgreater_test): Likewise.
36392         (isnan_test): Likewise.
36393         (isnormal_test): Likewise.
36394         (issignaling_test): Likewise.
36395         (isunordered_test): Likewise.
36396         (j0_test): Likewise.
36397         (j1_test): Likewise.
36398         (jn_test): Likewise.
36399         (ldexp_test): Likewise.
36400         (lgamma_test): Likewise.
36401         (gamma_test): Likewise.
36402         (lrint_test): Likewise.
36403         (lrint_test_tonearest): Likewise.
36404         (lrint_test_towardzero): Likewise.
36405         (lrint_test_downward): Likewise.
36406         (lrint_test_upward): Likewise.
36407         (llrint_test): Likewise.
36408         (llrint_test_tonearest): Likewise.
36409         (llrint_test_towardzero): Likewise.
36410         (llrint_test_downward): Likewise.
36411         (llrint_test_upward): Likewise.
36412         (log_test): Likewise.
36413         (log10_test): Likewise.
36414         (log1p_test): Likewise.
36415         (log2_test): Likewise.
36416         (logb_test): Likewise.
36417         (logb_test_downward): Likewise.
36418         (lround_test): Likewise.
36419         (llround_test): Likewise.
36420         (modf_test): Likewise.
36421         (nearbyint_test): Likewise.
36422         (nextafter_test): Likewise.
36423         (nexttoward_test): Likewise.
36424         (pow_test): Likewise.
36425         (pow_test_tonearest): Likewise.
36426         (pow_test_towardzero): Likewise.
36427         (pow_test_downward): Likewise.
36428         (pow_test_upward): Likewise.
36429         (remainder_test): Likewise.
36430         (drem_test): Likewise.
36431         (remainder_test_tonearest): Likewise.
36432         (drem_test_tonearest): Likewise.
36433         (remainder_test_towardzero): Likewise.
36434         (drem_test_towardzero): Likewise.
36435         (remainder_test_downward): Likewise.
36436         (drem_test_downward): Likewise.
36437         (remainder_test_upward): Likewise.
36438         (drem_test_upward): Likewise.
36439         (remquo_test): Likewise.
36440         (rint_test): Likewise.
36441         (rint_test_tonearest): Likewise.
36442         (rint_test_towardzero): Likewise.
36443         (rint_test_downward): Likewise.
36444         (rint_test_upward): Likewise.
36445         (round_test): Likewise.
36446         (scalb_test): Likewise.
36447         (scalbn_test): Likewise.
36448         (scalbln_test): Likewise.
36449         (signbit_test): Likewise.
36450         (sin_test): Likewise.
36451         (sin_test_tonearest): Likewise.
36452         (sin_test_towardzero): Likewise.
36453         (sin_test_downward): Likewise.
36454         (sin_test_upward): Likewise.
36455         (sincos_test): Likewise.
36456         (sinh_test): Likewise.
36457         (sinh_test_tonearest): Likewise.
36458         (sinh_test_towardzero): Likewise.
36459         (sinh_test_downward): Likewise.
36460         (sinh_test_upward): Likewise.
36461         (sqrt_test): Likewise.
36462         (sqrt_test_tonearest): Likewise.
36463         (sqrt_test_towardzero): Likewise.
36464         (sqrt_test_downward): Likewise.
36465         (sqrt_test_upward): Likewise.
36466         (tan_test): Likewise.
36467         (tan_test_tonearest): Likewise.
36468         (tan_test_towardzero): Likewise.
36469         (tan_test_downward): Likewise.
36470         (tan_test_upward): Likewise.
36471         (tanh_test): Likewise.
36472         (tgamma_test): Likewise.
36473         (trunc_test): Likewise.
36474         (y0_test): Likewise.
36475         (y1_test): Likewise.
36476         (yn_test): Likewise.
36477         (significand_test): Likewise.
36478
36479         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36480         individual tests in comment.
36481         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36482         (prev_max_error): New variable.
36483         (prev_real_max_error): Likewise.
36484         (prev_imag_max_error): Likewise.
36485         (compare_ulp_data): Don't refer to test names in comment.
36486         (find_test_ulps): Remove function.
36487         (find_function_ulps): Likewise.
36488         (find_complex_function_ulps): Likewise.
36489         (init_max_error): Take function name as argument.  Look up ulps
36490         for that function.
36491         (print_ulps): Remove function.
36492         (print_max_error): Use prev_max_error instead of calling
36493         find_function_ulps.
36494         (print_complex_max_error): Use prev_real_max_error and
36495         prev_imag_max_error instead of calling find_complex_function_ulps.
36496         (check_float_internal): Take max_ulp parameter instead of calling
36497         find_test_ulps.  Don't call print_ulps.
36498         (check_float): Update call to check_float_internal.
36499         (check_complex): Update calls to check_float_internal.
36500         (START): Pass argument to init_max_error.
36501         * math/gen-libm-test.pl (%results): Don't include "kind"
36502         information.
36503         (parse_ulps): Don't handle ulps of individual tests.
36504         (print_ulps_file): Likewise.
36505         (output_ulps): Likewise.
36506         * math/README.libm-test: Update.
36507         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36508         individual tests.
36509         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36510         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36511         * sysdeps/arm/libm-test-ulps: Likewise.
36512         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36513         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36514         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36515         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36516         * sysdeps/microblaze/libm-test-ulps: Likewise.
36517         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36518         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36519         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36520         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36521         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36522         * sysdeps/sh/libm-test-ulps: Likewise.
36523         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36524         * sysdeps/tile/libm-test-ulps: Likewise.
36525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36526
36527 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36528
36529         * math/libm-test.inc (print_complex_max_error): Check separately
36530         whether real and imaginary errors are within allowed range and
36531         pass 0 to print_complex_function_ulps instead of value within
36532         allowed range.
36533
36534 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36535
36536         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36537         formatting.
36538         (get_handles_fopen): Likewise.
36539         (do_write_test): Likewise.
36540
36541         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36542
36543         * libio/fileops.c (do_ftell): Use cached offset when
36544         available.
36545         * libio/iofwide.c (do_ftell_wide): Likewise.
36546         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36547         _IO_file_attach.
36548         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36549
36550         [BZ #16532]
36551         * libio/libioP.h (get_file_offset): New function.
36552         * libio/fileops.c (get_file_offset): Likewise.
36553         (do_ftell): Likewise.
36554         (_IO_new_file_seekoff): Split out ftell logic.
36555         * libio/wfileops.c (do_ftell_wide): Likewise.
36556         (_IO_wfile_seekoff): Split out ftell logic.
36557         * libio/tst-ftell-active-handler.c: New test case.
36558         * libio/Makefile (tests): Add it.
36559
36560 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36561
36562         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36563         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36564
36565 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36566
36567         [BZ #16639]
36568         * nscd/connections.c (nscd_init): Call do_exit.
36569         (start_threads): Call do_exit and notify_parent.
36570         (begin_drop_privileges): Call do_exit.
36571         (finish_drop_privileges): Likewise.
36572         * nscd/selinux.c (preserve_capabilities): Likewise.
36573         (install_real_capabilities): Likewise.
36574         (nscd_selinux_enabled): Likewise.
36575         (avc_create_thread): Likewise.
36576         (avc_alloc_lock): Likewise.
36577         (nscd_avc_init): Likewise.
36578         * nscd/nscd.c (parent_fd): New static variable.
36579         (main): Create a pipe between parent and child processes.
36580         Skip closing parent_fd.
36581         (monitor_child): New function.
36582         (do_exit): Likewise.
36583         (notify_parent): Likewise.
36584         * nscd/nscd.h (notify_parent): Likewise.
36585         (do_exit): Likewise.
36586
36587 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36588
36589         * malloc/malloc.c (__libc_calloc): Revert last change.
36590
36591 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36592
36593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36594
36595 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36596
36597         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36598         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36599         implementation.
36600         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36601         (__libc_ifunc_impl_list): Likewise.
36602         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36603         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36604         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36605         * string/strrchr.c: Define STRRCHR.
36606
36607 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36608
36609         * benchtest/bench-strtok.c (simple_strtok): Delete.
36610         (strtok_string): Use as benchmark.
36611         * string/strtok (STRTOK): New macro.
36612
36613 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36614
36615         * manual/threads.texi: Add header and standard comments to all
36616         functions.
36617
36618         * elf/dl-lookup.c (check_match): New function.
36619         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36620         (do_lookup_x): Remove nested function check_match. Use non-nested
36621         function check_match.
36622
36623 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36624
36625         * csu/Makefile (generated, before-compile): Use += rather than =.
36626         * catgets/Makefile (generated, generated-dirs): Likewise.
36627         * debug/Makefile (generated): Likewise.
36628         * dlfcn/Makefile (generated): Likewise.
36629         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36630         * iconvdata/Makefile (before-compile, generated): Likewise.
36631         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36632         * libio/Makefile (generated): Likewise.
36633         * malloc/Makefile (generated): Likewise.
36634         * manual/Makefile (generated, generated-dirs): Likewise.
36635         * misc/Makefile (generated): Likewise.
36636         * posix/Makefile (generated): Likewise.
36637         * resolv/Makefile (generated): Likewise.
36638         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36639         * timezone/Makefile (generated, generated-dirs): Likewise.
36640
36641         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36642
36643 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36644
36645         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36646         power8 implementation.
36647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36648         file: POWER8 llround ifunc implementation.
36649         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36650         (__lllround): Add POWER8 implementation.
36651         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36652         POWER8 llround implementation.
36653
36654         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36655         power8 implementation.
36656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36657         file: POWER8 llrint ifunc implementation.
36658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36659         Add POWER8 implementation.
36660         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36661         POWER8 llrint implementation.
36662
36663         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36664         power8 implementation.
36665         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36666         file: POWER8 finite ifunc implementation.
36667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36668         Add POWER8 implementation.
36669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36670         Likewise.
36671         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36672         POWER8 finite implementation.
36673         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36674
36675         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36676         power8 implementation.
36677         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36678         file: POWER8 isinf ifunc implementation.
36679         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36680         POWER8 implementation.
36681         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36682         Likewise.
36683         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36684         isinf implementation.
36685         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36686
36687         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36688         (INIT_ARCH): Add hwcap2 initialization.
36689         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36690         power8 implementation.
36691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36692         file: POWER8 isnan ifunc implementation.
36693         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36694         POWER8 implementation.
36695         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36696         Likewise.
36697         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36698         isnan implementation.
36699         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36700
36701 2014-02-27  Joey Ye  <joey.ye@arm.com>
36702
36703         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36704         (_FP_NANFRAC_Q): Set to zero.
36705
36706 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36707
36708         [BZ #16623]
36709         * math/auto-libm-test-in: New test inputs.
36710         * math/auto-libm-test-out: Regenerate.
36711         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36712         and DA.
36713         (__cos): Likewise.
36714         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36715
36716 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36717
36718         * scripts/evaluate-test.sh: Take new argument indicating whether
36719         failure is expected.
36720         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36721         indicating whether failure is expected.
36722         * conform/Makefile (test-xfail-run-conformtest): New variable.
36723         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36724         level.
36725         * posix/Makefile (test-xfail-annexc): New variable.
36726         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36727
36728 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36729
36730         * argp/Makefile: Include Makeconfig immediately after defining
36731         subdir.
36732         * assert/Makefile: Likewise.
36733         * benchtests/Makefile: Likewise.
36734         * catgets/Makefile: Likewise.
36735         * conform/Makefile: Likewise.
36736         * crypt/Makefile: Likewise.
36737         * csu/Makefile: Likewise.
36738         (all): Remove target.
36739         * ctype/Makefile: Include Makeconfig immediately after defining
36740         subdir.
36741         * debug/Makefile: Likewise.
36742         * dirent/Makefile: Likewise.
36743         * dlfcn/Makefile: Likewise.
36744         * gmon/Makefile: Likewise.
36745         * gnulib/Makefile: Likewise.
36746         * grp/Makefile: Likewise.
36747         * gshadow/Makefile: Likewise.
36748         * hesiod/Makefile: Likewise.
36749         * hurd/Makefile: Likewise.
36750         (all): Remove target.
36751         * iconvdata/Makefile: Include Makeconfig immediately after
36752         defining subdir.
36753         * inet/Makefile: Likewise.
36754         * intl/Makefile: Likewise.
36755         * io/Makefile: Likewise.
36756         * libio/Makefile: Likewise.
36757         (all): Remove target.
36758         * locale/Makefile: Include Makeconfig immediately after defining
36759         subdir.
36760         * login/Makefile: Likewise.
36761         * mach/Makefile: Likewise.
36762         (all): Remove target.
36763         * malloc/Makefile: Include Makeconfig immediately after defining
36764         subdir.
36765         (all): Remove target.
36766         * manual/Makefile: Include Makeconfig immediately after defining
36767         subdir.
36768         * math/Makefile: Likewise.
36769         * misc/Makefile: Likewise.
36770         * nis/Makefile: Likewise.
36771         * nss/Makefile: Likewise.
36772         * po/Makefile: Likewise.
36773         (all): Remove target.
36774         * posix/Makefile: Include Makeconfig immediately after defining
36775         subdir.
36776         * pwd/Makefile: Likewise.
36777         * resolv/Makefile: Likewise.
36778         * resource/Makefile: Likewise.
36779         * rt/Makefile: Likewise.
36780         * setjmp/Makefile: Likewise.
36781         * shadow/Makefile: Likewise.
36782         * signal/Makefile: Likewise.
36783         * socket/Makefile: Likewise.
36784         * soft-fp/Makefile: Likewise.
36785         * stdio-common/Makefile: Likewise.
36786         * stdlib/Makefile: Likewise.
36787         * streams/Makefile: Likewise.
36788         * string/Makefile: Likewise.
36789         * sunrpc/Makefile: Likewise.
36790         (all): Remove target.
36791         * sysvipc/Makefile: Include Makeconfig immediately after defining
36792         subdir.
36793         * termios/Makefile: Likewise.
36794         * time/Makefile: Likewise.
36795         * timezone/Makefile: Likewise.
36796         (all): Remove target.
36797         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36798         subdir.
36799         * wctype/Makefile: Likewise.
36800
36801 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36802
36803         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36804         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36805         (libc_feholdexcept_setround_mips): Ditto.
36806         (libc_feholdsetround): New.
36807         (libc_feholdsetroundf): New.
36808         (libc_feholdsetroundl): New.
36809         (libc_feupdateenv_test_mips): New.
36810         (libc_feupdateenv_test): New.
36811         (libc_feupdateenv_testf): New.
36812         (libc_feupdateenv_testl): New.
36813         (libc_feresetround): New.
36814         (libc_feresetroundf): New.
36815         (libc_feresetroundl): New.
36816         (libc_fetestexcept_mips): New.
36817         (libc_fetestexcept): New.
36818         (libc_fetestexceptf): New.
36819         (libc_fetestexceptl): New.
36820         (HAVE_RM_CTX): New.
36821         (libc_feholdexcept_setround_mips_ctx): New.
36822         (libc_feholdexcept_setround_ctx): New.
36823         (libc_feholdexcept_setroundf_ctx): New.
36824         (libc_feholdexcept_setroundl_ctx): New.
36825         (libc_fesetenv_mips_ctx): New.
36826         (libc_fesetenv_ctx): New.
36827         (libc_fesetenv_ctxf): New.
36828         (libc_fesetenv_ctxl): New.
36829         (libc_feupdateenv_mips_ctx): New.
36830         (libc_feupdateenv_ctx): New.
36831         (libc_feupdateenvf_ctx): New.
36832         (libc_feupdateenvl_ctx): New.
36833         (libc_feholdsetround_mips_ctx): New.
36834         (libc_feholdsetround_ctx): New.
36835         (libc_feholdsetroundf_ctx): New.
36836         (libc_feholdsetroundl_ctx): New.
36837         (libc_feresetround_mips_ctx): New.
36838         (libc_feresetround_ctx): New.
36839         (libc_feresetroundf_ctx): New.
36840         (libc_feresetroundl_ctx): New.
36841
36842 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36843
36844         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36845
36846         * manual/ipc.texi: New file.
36847         * manual/Makefile (chapters): Add ipc.
36848         * manual/job.texi: Add "Inter-Process Communication" to next.
36849         * manual/process.texi: Add "Inter-Process Communication" to prev.
36850
36851 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36852
36853         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36854
36855 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36856
36857         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36858
36859         * manual/arith.texi: Fix spaces after sentences.
36860         * manual/charset.texi: Likewise.
36861         * manual/errno.texi: Likewise.
36862         * manual/install.texi: Likewise.
36863         * manual/llio.texi: Likewise.
36864         * manual/locale.texi: Likewise.
36865         * manual/maint.texi: Likewise.
36866         * manual/math.texi: Likewise.
36867         * manual/memory.texi: Likewise.
36868         * manual/message.texi: Likewise.
36869         * manual/probes.texi: Likewise.
36870         * manual/resource.texi: Likewise.
36871         * manual/signal.texi: Likewise.
36872         * manual/socket.texi: Likewise.
36873         * manual/stdio.texi: Likewise.
36874         * manual/string.texi: Likewise.
36875         * manual/time.texi: Likewise.
36876         * manual/users.texi: Likewise.
36877
36878 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36879
36880         [BZ #16632]
36881         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36882         _DEFAULT_SOURCE is defined.
36883
36884 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36885             Carlos O'Donell  <carlos@redhat.com>
36886
36887         [BZ #16613]
36888         * elf/dl-tls.c (_dl_count_modids): New function.
36889         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36890         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36891         audit library and increment generation counter.
36892         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36893         * elf/tst-audit9.c: New file.
36894         * elf/tst-auditmod9a.c: New file.
36895         * elf/tst-auditmod9b.c: New file.
36896         * elf/Makefile: Add rules to build and run tst-audit9.
36897
36898 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36899
36900         [BZ #15347]
36901         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36902
36903 2014-02-25  Will Newton  <will.newton@linaro.org>
36904
36905         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36906         (__longjmp): Restore sp and lr before restoring callee
36907         saved registers.  Add longjmp and longjmp_target
36908         SystemTap probe point.
36909         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36910         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36911         Define to zero to match jmpbuf layout.
36912         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36913         (__sigsetjmp): Save sp and lr before saving callee
36914         saved registers.  Add setjmp SystemTap probe point.
36915
36916 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36917
36918         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36919
36920 2014-02-24  Andreas Schwab  <schwab@suse.de>
36921
36922         [BZ #15804]
36923         * elf/pldd.c (wait_for_ptrace_stop): New function.
36924         (main): Call it after attaching.
36925
36926 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36927
36928         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36929         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36930         Versions files is now verboten.
36931         * hurd/Versions (libc: GLIBC_2.0):
36932         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36933         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36934         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36935         * mach/Versions: Likewise.
36936
36937         * csu/Versions: Remove unused %include.
36938         * resolv/Versions: Likewise.
36939
36940 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36941
36942         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36943         ($(objpfx)check-local-headers.out): Likewise.
36944         ($(objpfx)begin-end-check.out): Likewise.
36945         * Makerules (check-abi-%.out): Likewise.
36946         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36947         ($(objpfx)test2.cat): Likewise.
36948         ($(objpfx)de/libc.cat): Likewise.
36949         ($(objpfx)test-gencat.out): Likewise.
36950         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36951         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36952         ($(objpfx)noload-mem): Likewise.
36953         ($(objpfx)tst-pathopt.out): Likewise.
36954         ($(objpfx)tst-rtld-load-self.out): Likewise.
36955         ($(objpfx)tst-array1-cmp.out): Likewise.
36956         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36957         ($(objpfx)tst-array2-cmp.out): Likewise.
36958         ($(objpfx)tst-array3-cmp.out): Likewise.
36959         ($(objpfx)tst-array4-cmp.out): Likewise.
36960         ($(objpfx)tst-array5-cmp.out): Likewise.
36961         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36962         ($(objpfx)check-textrel.out): Likewise.
36963         ($(objpfx)check-execstack.out): Likewise.
36964         ($(objpfx)check-localplt.out): Likewise.
36965         ($(objpfx)order2-cmp.out): Likewise.
36966         ($(objpfx)tst-leaks1-mem): Likewise.
36967         ($(objpfx)tst-leaks1-static-mem): Likewise.
36968         ($(objpfx)tst-initorder-cmp.out): Likewise.
36969         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36970         ($(objpfx)tst-unused-dep.out): Likewise.
36971         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36972         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36973         * iconv/Makefile (test-iconvconfig): Likewise.
36974         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36975         ($(objpfx)iconv-test.out): Likewise.
36976         ($(objpfx)tst-tables.out): Likewise.
36977         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36978         ($(objpfx)tst-gettext.out): Likewise.
36979         ($(objpfx)tst-translit.out): Likewise.
36980         ($(objpfx)tst-gettext2.out): Likewise.
36981         ($(objpfx)tst-gettext4.out): Likewise.
36982         ($(objpfx)tst-gettext6.out): Likewise.
36983         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36984         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36985         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36986         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36987         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36988         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36989         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36990         ($(objpfx)wordexp-tst.out): Likewise.
36991         ($(objpfx)annexc.out): Likewise.
36992         ($(objpfx)tst-fnmatch-mem): Likewise.
36993         ($(objpfx)bug-regex2-mem): Likewise.
36994         ($(objpfx)bug-regex14-mem): Likewise.
36995         ($(objpfx)bug-regex21-mem): Likewise.
36996         ($(objpfx)bug-regex31-mem): Likewise.
36997         ($(objpfx)tst-vfork3-mem): Likewise.
36998         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36999         ($(objpfx)tst-pcre-mem): Likewise.
37000         ($(objpfx)tst-boost-mem): Likewise.
37001         ($(objpfx)tst-getconf.out): Likewise.
37002         ($(objpfx)bug-ga2-mem): Likewise.
37003         ($(objpfx)bug-glob2-mem): Likewise.
37004         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37005         ($(objpfx)mtrace-tst-leaks2): Likewise.
37006         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37007         ($(objpfx)tst-printf.out): Likewise.
37008         ($(objpfx)tst-setvbuf1.out): Likewise.
37009         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37010         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37011         ($(objpfx)tst-fmtmsg.out): Likewise.
37012         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37013         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37014
37015         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37016         * bits/sigaction.h [__USE_MISC]: Likewise.
37017         * bits/waitstatus.h: Update #endif comments.
37018         * ctype/ctype.h: Likewise.
37019         * dirent/dirent.h: Likewise.
37020         [__USE_MISC]: Remove redundant conditionals.
37021         * grp/grp.h: Update #endif comments.
37022         [__USE_GNU]: Remove redundant conditionals.
37023         [__USE_MISC]: Likewise.
37024         * inet/netinet/in.h [__USE_GNU]: Likewise.
37025         * io/sys/stat.h [__USE_MISC]: Likewise.
37026         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37027         * libio/bits/stdio.h: Update #endif comments.
37028         [__USE_MISC]: Remove redundant conditionals.
37029         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37030         * libio/stdio.h: Update #endif comments.
37031         [__USE_MISC]: Remove redundant conditionals.
37032         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37033         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37034         * math/math.h: Update #else and #endif comments.
37035         [__USE_MISC]: Remove redundant conditionals.
37036         * misc/sys/uio.h: Update #endif comments.
37037         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37038         * posix/glob.h [__USE_MISC]: Likewise.
37039         * posix/sys/types.h: Update #endif comments.
37040         [__USE_MISC]: Remove redundant conditionals.
37041         * posix/sys/wait.h: Update #endif comments.
37042         [__USE_MISC]: Remove redundant conditionals.
37043         * posix/unistd.h: Update #endif comments.
37044         [__USE_MISC]: Remove redundant conditionals.
37045         * pwd/pwd.h [__USE_GNU]: Likewise.
37046         [__USE_MISC]: Likewise.
37047         * resolv/netdb.h [__USE_GNU]: Likewise.
37048         * signal/signal.h: Update #endif comments.
37049         [__USE_MISC]: Remove redundant conditionals.
37050         * stdlib/stdlib.h: Update #else and #endif comments.
37051         [__USE_MISC]: Remove redundant conditionals.
37052         [__USE_GNU]: Likewise.
37053         * string/bits/string2.h [__USE_MISC]: Likewise.
37054         * string/string.h: Update #endif comments.
37055         [__USE_MISC]: Remove redundant conditionals.
37056         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37057         Likewise.
37058         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37059         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37060         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37061         Likewise.
37062         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37063         Likewise.
37064         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37065         comments.
37066         [__USE_MISC]: Remove redundant conditionals.
37067         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37068         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37069         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37070         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37071         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37072         Likewise.
37073         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37074         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37075         Likewise.
37076         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37077         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37078         Likewise.
37079         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37080         Likewise.
37081         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37082         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37083         Likewise.
37084         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37085         Likewise.
37086         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37087         * sysdeps/x86/bits/string.h: Update #endif comments.
37088         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37089         conditionals.
37090         * time/sys/time.h: Update #endif comments.
37091         * time/time.h: Likewise.
37092         [__USE_MISC]: Remove redundant conditionals.
37093
37094 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37095
37096         [BZ #16600]
37097         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37098
37099 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37100
37101         * Versions.def (librt): Add GLIBC_2.17.
37102
37103 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37104
37105         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37106         synonym for _SYS_AUXV_H to allow direct inclusion.
37107         * sysdeps/sparc/bits/hwcap.h: Likewise.
37108         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37109         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37110         * sysdeps/sparc/sysdep.h: Likewise.
37111
37112 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37113
37114         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37115
37116 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37117
37118         * benchtests/bench-strrchr.c: Print length instead of position.
37119
37120 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37121
37122         [BZ #16611]
37123         * sysdeps/unix/sysv/linux/kernel-features.h
37124         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37125         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37126         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37127         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37128         Likewise.
37129         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37130         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37131         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37132         (__ASSUME_SENDMMSG): Define instead of using previous
37133         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37134         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37135         (__ASSUME_SENDMMSG_SYSCALL): Define.
37136         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37137         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37138         Likewise.
37139         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37140         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37141         Likewise.
37142         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37143         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37144         Likewise.
37145         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37146         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37147         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37148         [__ASSUME_SENDMMSG]: Change conditionals to
37149         [__ASSUME_SENDMMSG_SOCKETCALL].
37150         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37151         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37152         Define.
37153         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37154         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37155         Likewise.
37156         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37157         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37158         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37159         [!__ASSUME_SENDMMSG]: Change conditional to
37160         [!__ASSUME_SENDMMSG_SOCKETCALL].
37161         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37162         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37163         Define.
37164
37165         [BZ #16610]
37166         * sysdeps/unix/sysv/linux/kernel-features.h
37167         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37168         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37169         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37170         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37171         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37172         [__i386__ || __sparc__]
37173         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37174         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37175         (__ASSUME_RECVMMSG): Define instead of using previous
37176         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37177         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37178         (__ASSUME_RECVMMSG_SYSCALL): Define.
37179         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37180         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37181         Likewise.
37182         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37183         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37184         Likewise.
37185         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37186         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37187         Likewise.
37188         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37189         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37190         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37191         [__ASSUME_RECVMMSG]: Change condition to
37192         [__ASSUME_RECVMMSG_SOCKETCALL].
37193         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37194         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37195         Define.
37196         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37197         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37198         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37199         Likewise.
37200         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37201         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37202         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37203         [!__ASSUME_RECVMMSG]: Change condition to
37204         [!__ASSUME_RECVMMSG_SOCKETCALL].
37205         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37206         (__ASSUME_RECVMMSG_SYSCALL): Define.
37207
37208         [BZ #16609]
37209         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37210         __powerpc__ || __s390__ || __sh__ || __sparc__]
37211         (__ASSUME_SOCKETCALL): Define.
37212         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37213         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37214         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37215         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37216         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37217         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37218         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37219         (__ASSUME_ACCEPT4): Define instead of using previous
37220         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37221         __powerpc__ || __sparc__ || __s390__)] condition.
37222         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37223         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37224         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37225         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37226         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37227         [!__ASSUME_ACCEPT4]: Change condition to
37228         [!__ASSUME_ACCEPT4_SOCKETCALL].
37229         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37230         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37231         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37232         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37233         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37234         __ASSUME_ACCEPT4_SYSCALL.
37235         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37236         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37237         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37238         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37239         __ASSUME_ACCEPT4_SYSCALL.
37240         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37241         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37242         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37243         [__ASSUME_ACCEPT4]: Change condition to
37244         [__ASSUME_ACCEPT4_SOCKETCALL].
37245         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37246         (__ASSUME_SOCKETCALL): Define.
37247         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37248         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37249         (__ASSUME_SOCKETCALL): Define.
37250         (__ASSUME_ACCEPT4): Remove.
37251         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37252         Define.
37253         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37254         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37255         Likewise.
37256         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37257         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37258
37259         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37260         macro.
37261         (HWCAP_ARM_LPAE): Likewise.
37262         (HWCAP_ARM_EVTSTRM): Likewise.
37263         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37264         Add vpfd32, lpae and evtstrm.
37265         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37266         Increase to 22.
37267
37268 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37269
37270         * math/auto-libm-test-in: Add tests of clog10.
37271         * math/auto-libm-test-out: Regenerated.
37272         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37273         * sysdeps/i386/fpu/libm-test-ulps: Update.
37274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37275
37276 2014-02-18  Andreas Schwab  <schwab@suse.de>
37277
37278         [BZ #16574]
37279         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37280         Store non-zero if the second buffer was newly allocated.
37281         (send_dg): Likewise.
37282         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37283         to send_vc and send_dg.
37284         (res_nsend): Pass NULL for ansp2_malloced.
37285         * resolv/res_query.c (__libc_res_nquery): Add parameter
37286         answerp2_malloced and pass it down to __libc_res_nsend.
37287         (res_nquery): Pass additional NULL to __libc_res_nquery.
37288         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37289         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37290         second answer buffer if answerp2_malloced was set.
37291         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37292         (__libc_res_nquerydomain): Add parameter
37293         answerp2_malloced and pass it down to __libc_res_nquery.
37294         (res_nquerydomain): Pass additional NULL to
37295         __libc_res_nquerydomain.
37296         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37297         additional NULL to __libc_res_nsend and __libc_res_nquery.
37298         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37299         additional NULL to __libc_res_nsearch.
37300         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37301         parameter of __libc_res_nsearch to check for separately allocated
37302         second buffer.
37303         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37304         __libc_res_nquery.
37305         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37306         additional NULL to __libc_res_nquery.
37307         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37308         __libc_res_nsearch.
37309         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37310         * include/resolv.h: Update prototypes of __libc_res_nquery,
37311         __libc_res_nsearch, __libc_res_nsend.
37312
37313 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37314
37315         * math/auto-libm-test-in: Add tests of fma.
37316         * math/auto-libm-test-out: Regenerated.
37317         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37318         (fma_towardzero_test_data): Likewise.
37319         (fma_downward_test_data): Likewise.
37320         (fma_upward_test_data): Likewise.
37321         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37322         mpc_mode.
37323         (rounding_modes): Add values for new field.
37324         (func_calc_method): Add value mpfr_fff_f.
37325         (func_calc_desc): Add mpfr_fff_f union field.
37326         (test_function): Add field exact_args.
37327         (FUNC): Add macro argument EXACT_ARGS.
37328         (FUNC_mpfr_f_f): Update call to FUNC.
37329         (FUNC_mpfr_f_f): Likewise.
37330         (FUNC_mpfr_ff_f): Likewise.
37331         (FUNC_mpfr_if_f): Likewise.
37332         (FUNC_mpc_c_f): Likewise.
37333         (FUNC_mpc_c_c): Likewise.
37334         (test_functions): Add fma.  Update calls to FUNC.
37335         (handle_input_arg): Add argument exact_args.
37336         (add_test): Update call to handle_input_arg.
37337         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37338         (output_for_one_input_case): Update call to calc_generic_results.
37339         Recalculate exact zero results in each rounding mode.
37340
37341         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37342         non-negative before setting low bit.
37343         * math/auto-libm-test-in: Mark one asin test possibly having
37344         spurious underflow.
37345         * math/auto-libm-test-out: Regenerated.
37346         * sysdeps/i386/fpu/libm-test-ulps: Update.
37347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37348
37349 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37350
37351         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37352         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37353         ports/sysdeps/unix/sysv/linux/microblaze.
37354         * README: Add missing listing for microblaze*-*-linux-gnu.
37355
37356 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37357
37358         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37359         duplicate code
37360
37361 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37362
37363         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37364         * sysdeps/unix/sysv/linux/ia64: Move directory from
37365         ports/sysdeps/unix/sysv/linux/ia64.
37366         * README: Update listing for ia64-*-linux-gnu.
37367
37368 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37369             Joseph Myers  <joseph@codesourcery.com>
37370
37371         * Makeconfig (test-name): New variable.
37372         (evaluate-test): Likewise.
37373         * Makerules (do-test-clean): Remove .test-result files.
37374         (common-mostlyclean): Likewise.
37375         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37376         * scripts/evaluate-test.sh: New file.
37377
37378 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37379
37380         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37381         separate $(objpfx)tst-fopenloc-cmp.out and
37382         $(objpfx)tst-fopenloc-mem.out targets.
37383         (tests): Update dependencies.
37384         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37385         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37386         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37387         (tst-rxspencer-no-utf8-ARGS): New variable.
37388         (tst-rxspencer-no-utf8-ENV): Likewise.
37389         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37390         instead of $(objpfx)tst-rxspencer-mem.
37391         ($(objpfx)tst-rxspencer-mem): Change target to
37392         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37393         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37394         * posix/tst-rxspencer-no-utf8.c: New file.
37395
37396         * elf/Makefile ($(objpfx)order.out): Remove rule.
37397         [$(run-built-tests) = yes] (tests): Depend on
37398         $(objpfx)order-cmp.out.
37399         ($(objpfx)order-cmp.out): New rule.
37400         [$(run-built-tests) = yes] (tests): Depend on
37401         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37402         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37403         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37404         $(objpfx)tst-array5-static-cmp.out.
37405         ($(objpfx)tst-array1.out): Remove rule.
37406         ($(objpfx)tst-array1-cmp.out): New rule.
37407         ($(objpfx)tst-array1-static.out): Remove rule.
37408         ($(objpfx)tst-array1-static-cmp.out): New rule.
37409         ($(objpfx)tst-array2.out): Remove rule.
37410         ($(objpfx)tst-array2-cmp.out): New rule.
37411         ($(objpfx)tst-array3.out): Remove rule.
37412         ($(objpfx)tst-array3-cmp.out): New rule.
37413         ($(objpfx)tst-array4.out): Remove rule.
37414         ($(objpfx)tst-array4-cmp.out): New rule.
37415         ($(objpfx)tst-array5.out): Remove rule.
37416         ($(objpfx)tst-array5-cmp.out): New rule.
37417         ($(objpfx)tst-array5-static.out): Remove rule.
37418         ($(objpfx)tst-array5-static-cmp.out): New rule.
37419         [$(run-built-tests) = yes] (tests): Depend on
37420         $(objpfx)order2-cmp.out.
37421         ($(objpfx)order2.out): Remove rule.
37422         ($(objpfx)order2-cmp.out): New rule.
37423         ($(objpfx)tst-initorder.out): Remove rule.
37424         [$(run-built-tests) = yes] (tests): Depend on
37425         $(objpfx)tst-initorder-cmp.out.
37426         ($(objpfx)tst-initorder-cmp.out): New rule.
37427         ($(objpfx)tst-initorder2.out): Remove rule.
37428         [$(run-built-tests) = yes] (tests): Depend on
37429         $(objpfx)tst-initorder2-cmp.out.
37430         ($(objpfx)tst-initorder2-cmp.out): New rule.
37431         [$(run-built-tests) = yes] (tests): Depend on
37432         $(objpfx)tst-unused-dep-cmp.out.
37433         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37434         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37435         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37436         on $(objpfx)tst-setvbuf1-cmp.out.
37437         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37438         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37439         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37440         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37441         ($(objpfx)tst-svc.out): Remove rule.
37442         ($(objpfx)tst-svc-cmp.out): New rule.
37443
37444 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37445
37446         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37447         * ctype/ctype.h [__USE_MISC]: Likewise.
37448         * dirent/dirent.h [__USE_MISC]: Likewise.
37449         * grp/grp.h [__USE_MISC]: Likewise.
37450         * io/fcntl.h [__USE_MISC]: Likewise.
37451         * io/sys/stat.h [__USE_MISC]: Likewise.
37452         * libio/stdio.h [__USE_MISC]: Likewise.
37453         * posix/unistd.h [__USE_MISC]: Likewise.
37454         * pwd/pwd.h [__USE_MISC]: Likewise.
37455         * stdlib.h [__USE_MISC]: Likewise.
37456         * string/bits/string2.h [__USE_MISC]: Likewise.
37457         * string/string.h [__USE_MISC]: Likewise.
37458         * time/time.h [__USE_MISC]: Likewise.
37459
37460 2014-02-13  Andreas Schwab  <schwab@suse.de>
37461
37462         [BZ #16574]
37463         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37464         second answer buffer if it was separately allocated.
37465
37466 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37467
37468         * sysdeps/mips/math-tests.h: Include <features.h>.
37469         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37470         (ROUNDING_TESTS_long_double): Do not define.
37471         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37472         (EXCEPTION_TESTS_long_double): Likewise.
37473         * sysdeps/mips/mips64/libm-test-ulps: Update.
37474
37475         * include/features.h (__USE_BSD): Remove macro definitions.
37476         (__USE_SVID): Likewise.
37477         (_BSD_SOURCE): Likewise.
37478         (_SVID_SOURCE): Likewise.
37479         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37480         from definition of _DEFAULT_SOURCE.
37481         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37482         [_DEFAULT_SOURCE].
37483         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37484         * bits/mman.h [__USE_BSD]: Likewise.
37485         * bits/termios.h [__USE_BSD]: Likewise.
37486         * bits/waitstatus.h [__USE_BSD]: Likewise.
37487         * ctype/ctype.h [__USE_SVID]: Likewise.
37488         * dirent/dirent.h [__USE_BSD]: Likewise.
37489         * grp/grp.h [__USE_SVID]: Likewise.
37490         [__USE_BSD]: Likewise.
37491         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37492         * io/fcntl.h [__USE_BSD]: Likewise.
37493         * io/ftw.h [__USE_BSD]: Likewise.
37494         * io/sys/stat.h [__USE_BSD]: Likewise.
37495         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37496         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37497         * libio/stdio.h [__USE_SVID]: Likewise.
37498         [__USE_BSD]: Likewise.
37499         * math/math.h [__USE_SVID]: Likewise.
37500         [__USE_BSD]: Likewise.
37501         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37502         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37503         * misc/search.h [__USE_SVID]: Likewise.
37504         * misc/sys/mman.h [__USE_BSD]: Likewise.
37505         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37506         * misc/sys/uio.h [__USE_BSD]: Likewise.
37507         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37508         * posix/glob.h [__USE_BSD]: Likewise.
37509         * posix/regex.h [__USE_BSD]: Likewise.
37510         * posix/sys/types.h [__USE_BSD]: Likewise.
37511         [__USE_SVID]: Likewise.
37512         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37513         * posix/sys/wait.h [__USE_BSD]: Likewise.
37514         [__USE_SVID]: Likewise.
37515         * posix/unistd.h [__USE_BSD]: Likewise.
37516         [__USE_SVID]: Likewise.
37517         * pwd/pwd.h [__USE_SVID]: Likewise.
37518         * resolv/netdb.h [__USE_BSD]: Likewise.
37519         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37520         * signal/signal.h [__USE_BSD]: Likewise.
37521         [__USE_SVID]: Likewise.
37522         * socket/sys/socket.h [__USE_BSD]: Likewise.
37523         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37524         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37525         [__USE_SVID]: Likewise.
37526         * string/bits/string2.h [__USE_BSD]: Likewise.
37527         [__USE_SVID]: Likewise.
37528         * string/bits/string3.h [__USE_BSD]: Likewise.
37529         * string/endian.h [__USE_BSD]: Likewise.
37530         * string/string.h [__USE_SVID]: Likewise.
37531         [__USE_BSD]: Likewise.
37532         * string/strings.h [__USE_BSD]: Likewise.
37533         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37534         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37535         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37536         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37537         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37538         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37539         Likewise.
37540         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37541         Likewise.
37542         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37543         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37544         Likewise.
37545         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37546         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37547         Likewise.
37548         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37549         Likewise.
37550         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37551         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37552         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37553         Likewise.
37554         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37555         Likewise.
37556         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37557         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37558         * termios/termios.h [__USE_BSD]: Likewise.
37559         * time/sys/time.h [__USE_BSD]: Likewise.
37560         * time/time.h [__USE_BSD]: Likewise.
37561         [__USE_SVID]: Likewise.
37562
37563         * Makefile (subdir_targets): Remove subdir_lint.out.
37564
37565         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37566         (do-tst-printf): Likewise.
37567         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37568         $(objpfx)tst-printf.out.
37569
37570         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37571
37572         * Makerules (check-abi-%): Change target to
37573         $(objpfx)check-abi-%.out.
37574         (check-abi target): Update dependencies.
37575         (check-abi-pattern variable): Redirect output of diff to $@.
37576         (check-abi variable): Likewise.
37577         * elf/Makefile (check-abi): Update dependencies.
37578
37579         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37580         unused.
37581         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37582         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37583         subnormal range.
37584         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37585         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37586         value has largest subnormal exponent.
37587         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37588         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37589         * sysdeps/aarch64/soft-fp/sfp-machine.h
37590         (_FP_TININESS_AFTER_ROUNDING): New macro.
37591         * sysdeps/alpha/soft-fp/sfp-machine.h
37592         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37593         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37594         Likewise.
37595         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37596         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37597         * sysdeps/mips/soft-fp/sfp-machine.h
37598         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37599         * sysdeps/powerpc/soft-fp/sfp-machine.h
37600         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37601         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37602         Likewise.
37603         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37604         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37605         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37606         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37607         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37608         Likewise.
37609
37610 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37611
37612         [BZ #16545]
37613         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37614         model 1.
37615
37616 2014-02-12  Richard Henderson  <rth@redhat.com>
37617
37618         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37619         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37620         * sysdeps/unix/sysv/linux/alpha: Move directory from
37621         ports/sysdeps/unix/sysv/linux/alpha.
37622         * README: Update listing for alpha-*-linux-gnu.
37623
37624 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37625
37626         * include/features.h: Update comment documenting feature test
37627         macros.
37628         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37629         _DEFAULT_SOURCE.
37630         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37631         (_SVID_SOURCE): Likewise.
37632         (_DEFAULT_SOURCE): Update description of default features.
37633         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37634         with _GNU_SOURCE.
37635         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37636         (S_ISVTX): Likewise.
37637         * manual/math.texi (Mathematical Constants): Likewise.
37638         * manual/signal.texi (Interrupted Primitives): Likewise.
37639         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37640         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37641         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37642         Don't refer to _SVID_SOURCE in warning text.
37643
37644         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37645
37646         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37647         already defined.
37648         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37649         * sysdeps/mips/dl-lookup.c: Remove.
37650         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37651
37652 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37653
37654         [BZ #16447]
37655         * math/auto-libm-test-in: Add testcase for expl.
37656         * math/auto-libm-test-out: Regenerate.
37657         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37658         calculation of unsafe.
37659         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37660
37661 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37662
37663         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37664         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37665         ports/sysdeps/unix/sysv/linux/aarch64.
37666         * README: Update listing for aarch64*-*-linux-gnu.
37667
37668 2014-02-11  Will Newton  <will.newton@linaro.org>
37669
37670         * manual/probes.texi (Mathematical Function Probes): Use
37671         "triggered" instead of "hit".
37672
37673         * manual/probes.texi (Internal Probes): Add documentation
37674         of setjmp, longjmp and longjmp_target probes.
37675
37676         * include/stap-probe.h: Add comment about probe argument
37677         format.
37678
37679         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37680         definition.  (tr_where, tr_freehook, tr_mallochook,
37681         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37682
37683 2014-02-11  David S. Miller  <davem@davemloft.net>
37684
37685         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37686         processing int_tests.
37687
37688 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37689
37690         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37691         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37692         * sysdeps/unix/sysv/linux/mips: Move directory from
37693         ports/sysdeps/unix/sysv/linux/mips.
37694         * README: Update listing for mips-*-linux-gnu and
37695         mips64-*-linux-gnu.
37696
37697 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37698
37699         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37700         * sysdeps/unix/sysv/linux/m68k: Move directory from
37701         ports/sysdeps/unix/sysv/linux/m68k.
37702         * README: Update listing for m68k-*-linux-gnu.
37703
37704 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37705
37706         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37707         * sysdeps/unix/sysv/linux/generic: Move directory from
37708         ports/sysdeps/unix/sysv/linux/generic.
37709         * sysdeps/unix/sysv/linux/tile: Move directory from
37710         ports/sysdeps/unix/sysv/linux/tile.
37711         * README: Update listing for tile*-*-linux-gnu.
37712
37713 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37714
37715         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37716         __builtin_expect.
37717         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37718         * catgets/open_catalog.c (__open_catalog): Likewise.
37719         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37720         * debug/confstr_chk.c: Likewise.
37721         * debug/fread_chk.c (__fread_chk): Likewise.
37722         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37723         * debug/getgroups_chk.c: Likewise.
37724         * debug/mbsnrtowcs_chk.c: Likewise.
37725         * debug/mbsrtowcs_chk.c: Likewise.
37726         * debug/mbstowcs_chk.c: Likewise.
37727         * debug/memcpy_chk.c: Likewise.
37728         * debug/memmove_chk.c: Likewise.
37729         * debug/mempcpy_chk.c: Likewise.
37730         * debug/memset_chk.c: Likewise.
37731         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37732         * debug/strcat_chk.c (__strcat_chk): Likewise.
37733         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37734         * debug/strncat_chk.c (__strncat_chk): Likewise.
37735         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37736         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37737         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37738         * debug/wcpncpy_chk.c: Likewise.
37739         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37740         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37741         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37742         * debug/wcsncpy_chk.c: Likewise.
37743         * debug/wcsnrtombs_chk.c: Likewise.
37744         * debug/wcsrtombs_chk.c: Likewise.
37745         * debug/wcstombs_chk.c: Likewise.
37746         * debug/wmemcpy_chk.c: Likewise.
37747         * debug/wmemmove_chk.c: Likewise.
37748         * debug/wmempcpy_chk.c: Likewise.
37749         * debug/wmemset_chk.c: Likewise.
37750         * dirent/scandirat.c (SCANDIRAT): Likewise.
37751         * dlfcn/dladdr1.c (dladdr1): Likewise.
37752         * dlfcn/dladdr.c (dladdr): Likewise.
37753         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37754         * dlfcn/dlerror.c (__dlerror): Likewise.
37755         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37756         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37757         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37758         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37759         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37760         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37761         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37762         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37763         Likewise.
37764         * elf/dl-conflict.c: Likewise.
37765         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37766         * elf/dl-dst.h: Likewise.
37767         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37768         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37769         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37770         * elf/dl-init.c (call_init, _dl_init): Likewise.
37771         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37772         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37773         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37774         Likewise.
37775         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37776         Likewise.
37777         * elf/dl-minimal.c (__libc_memalign): Likewise.
37778         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37779         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37780         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37781         * elf/dl-sym.c (do_sym): Likewise.
37782         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37783         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37784         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37785         * elf/dl-writev.h (_dl_writev): Likewise.
37786         * elf/ldconfig.c (search_dir): Likewise.
37787         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37788         (dl_main): Likewise.
37789         * elf/setup-vdso.h (setup_vdso): Likewise.
37790         * grp/compat-initgroups.c (compat_call): Likewise.
37791         * grp/fgetgrent.c (fgetgrent): Likewise.
37792         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37793         * grp/putgrent.c (putgrent): Likewise.
37794         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37795         Likewise.
37796         * hurd/hurdinit.c: Likewise.
37797         * iconvdata/8bit-gap.c (struct): Likewise.
37798         * iconvdata/ansi_x3.110.c : Likewise.
37799         * iconvdata/big5.c : Likewise.
37800         * iconvdata/big5hkscs.c : Likewise.
37801         * iconvdata/cp1255.c: Likewise.
37802         * iconvdata/cp1258.c : Likewise.
37803         * iconvdata/cp932.c : Likewise.
37804         * iconvdata/euc-cn.c: Likewise.
37805         * iconvdata/euc-jisx0213.c : Likewise.
37806         * iconvdata/euc-jp.c: Likewise.
37807         * iconvdata/euc-jp-ms.c : Likewise.
37808         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37809         * iconvdata/gb18030.c : Likewise.
37810         * iconvdata/gbbig5.c (const): Likewise.
37811         * iconvdata/gbgbk.c: Likewise.
37812         * iconvdata/gbk.c : Likewise.
37813         * iconvdata/ibm1364.c : Likewise.
37814         * iconvdata/ibm930.c : Likewise.
37815         * iconvdata/ibm932.c: Likewise.
37816         * iconvdata/ibm933.c : Likewise.
37817         * iconvdata/ibm935.c : Likewise.
37818         * iconvdata/ibm937.c : Likewise.
37819         * iconvdata/ibm939.c : Likewise.
37820         * iconvdata/ibm943.c: Likewise.
37821         * iconvdata/iso_11548-1.c: Likewise.
37822         * iconvdata/iso-2022-cn.c : Likewise.
37823         * iconvdata/iso-2022-cn-ext.c : Likewise.
37824         * iconvdata/iso-2022-jp-3.c: Likewise.
37825         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37826         * iconvdata/iso-2022-kr.c : Likewise.
37827         * iconvdata/iso646.c (gconv_end): Likewise.
37828         * iconvdata/iso_6937-2.c : Likewise.
37829         * iconvdata/iso_6937.c : Likewise.
37830         * iconvdata/iso8859-1.c: Likewise.
37831         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37832         * iconvdata/shift_jisx0213.c : Likewise.
37833         * iconvdata/sjis.c : Likewise.
37834         * iconvdata/t.61.c : Likewise.
37835         * iconvdata/tcvn5712-1.c : Likewise.
37836         * iconvdata/tscii.c: Likewise.
37837         * iconvdata/uhc.c : Likewise.
37838         * iconvdata/unicode.c (gconv_end): Likewise.
37839         * iconvdata/utf-16.c (gconv_end): Likewise.
37840         * iconvdata/utf-32.c (gconv_end): Likewise.
37841         * iconvdata/utf-7.c (base64): Likewise.
37842         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37843         * iconv/gconv_close.c (__gconv_close): Likewise.
37844         * iconv/gconv_open.c (__gconv_open): Likewise.
37845         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37846         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37847         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37848         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37849         (ucs4le_internal_loop_single): Likewise.
37850         * iconv/iconv.c (iconv): Likewise.
37851         * iconv/iconv_close.c: Likewise.
37852         * iconv/loop.c (SINGLE): Likewise.
37853         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37854         * include/atomic.h: Likewise.
37855         * inet/inet6_option.c (option_alloc): Likewise.
37856         * intl/bindtextdom.c (set_binding_values): Likewise.
37857         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37858         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37859         * intl/localealias.c (read_alias_file): Likewise.
37860         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37861         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37862         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37863         * libio/fmemopen.c (fmemopen): Likewise.
37864         * libio/iofgets.c (_IO_fgets): Likewise.
37865         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37866         * libio/iofgetws.c (fgetws): Likewise.
37867         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37868         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37869         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37870         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37871         * locale/findlocale.c (_nl_find_locale): Likewise.
37872         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37873         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37874         Likewise.
37875         * locale/setlocale.c (setlocale): Likewise.
37876         * login/programs/pt_chown.c (main): Likewise.
37877         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37878         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37879         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37880         (mmap, mmap64, mremap, munmap): Likewise.
37881         * math/e_exp2l.c: Likewise.
37882         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37883         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37884         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37885         * math/s_catan.c (__catan): Likewise.
37886         * math/s_catanf.c (__catanf): Likewise.
37887         * math/s_catanh.c (__catanh): Likewise.
37888         * math/s_catanhf.c (__catanhf): Likewise.
37889         * math/s_catanhl.c (__catanhl): Likewise.
37890         * math/s_catanl.c (__catanl): Likewise.
37891         * math/s_ccosh.c (__ccosh): Likewise.
37892         * math/s_ccoshf.c (__ccoshf): Likewise.
37893         * math/s_ccoshl.c (__ccoshl): Likewise.
37894         * math/s_cexp.c (__cexp): Likewise.
37895         * math/s_cexpf.c (__cexpf): Likewise.
37896         * math/s_cexpl.c (__cexpl): Likewise.
37897         * math/s_clog10.c (__clog10): Likewise.
37898         * math/s_clog10f.c (__clog10f): Likewise.
37899         * math/s_clog10l.c (__clog10l): Likewise.
37900         * math/s_clog.c (__clog): Likewise.
37901         * math/s_clogf.c (__clogf): Likewise.
37902         * math/s_clogl.c (__clogl): Likewise.
37903         * math/s_csin.c (__csin): Likewise.
37904         * math/s_csinf.c (__csinf): Likewise.
37905         * math/s_csinh.c (__csinh): Likewise.
37906         * math/s_csinhf.c (__csinhf): Likewise.
37907         * math/s_csinhl.c (__csinhl): Likewise.
37908         * math/s_csinl.c (__csinl): Likewise.
37909         * math/s_csqrt.c (__csqrt): Likewise.
37910         * math/s_csqrtf.c (__csqrtf): Likewise.
37911         * math/s_csqrtl.c (__csqrtl): Likewise.
37912         * math/s_ctan.c (__ctan): Likewise.
37913         * math/s_ctanf.c (__ctanf): Likewise.
37914         * math/s_ctanh.c (__ctanh): Likewise.
37915         * math/s_ctanhf.c (__ctanhf): Likewise.
37916         * math/s_ctanhl.c (__ctanhl): Likewise.
37917         * math/s_ctanl.c (__ctanl): Likewise.
37918         * math/w_pow.c: Likewise.
37919         * math/w_powf.c: Likewise.
37920         * math/w_powl.c: Likewise.
37921         * math/w_scalb.c (sysv_scalb): Likewise.
37922         * math/w_scalbf.c (sysv_scalbf): Likewise.
37923         * math/w_scalbl.c (sysv_scalbl): Likewise.
37924         * misc/error.c (error_tail): Likewise.
37925         * misc/pselect.c (__pselect): Likewise.
37926         * nis/nis_callback.c (__nis_create_callback): Likewise.
37927         * nis/nis_call.c (__nisfind_server): Likewise.
37928         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37929         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37930         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37931         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37932         * nis/nis_lookup.c (nis_lookup): Likewise.
37933         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37934         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37935         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37936         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37937         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37938         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37939         * nis/nss_compat/compat-initgroups.c (add_group)
37940         (internal_getgrent_r): Likewise.
37941         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37942         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37943         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37944         (internal_getspnam_r): Likewise.
37945         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37946         (_nss_nis_getaliasbyname_r): Likewise.
37947         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37948         (_nss_nis_getntohost_r): Likewise.
37949         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37950         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37951         (_nss_nis_getgrgid_r): Likewise.
37952         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37953         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37954         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37955         (_nss_nis_gethostbyname4_r): Likewise.
37956         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37957         (initgroups_netid): Likewise.
37958         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37959         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37960         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37961         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37962         (_nss_nis_getprotobynumber_r): Likewise.
37963         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37964         (_nss_nis_getsecretkey): Likewise.
37965         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37966         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37967         (_nss_nis_getpwuid_r): Likewise.
37968         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37969         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37970         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37971         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37972         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37973         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37974         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37975         Likewise.
37976         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37977         (_nss_nisplus_getntohost_r): Likewise.
37978         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37979         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37980         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37981         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37982         Likewise.
37983         * nis/nss_nisplus/nisplus-initgroups.c
37984         (_nss_nisplus_initgroups_dyn): Likewise.
37985         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37986         (_nss_nisplus_getnetbyaddr_r): Likewise.
37987         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37988         (_nss_nisplus_getprotobynumber_r): Likewise.
37989         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37990         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37991         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37992         Likewise.
37993         * nis/nss_nisplus/nisplus-service.c
37994         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37995         (_nss_nisplus_getservbyport_r): Likewise.
37996         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37997         (_nss_nisplus_getspnam_r): Likewise.
37998         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37999         Likewise.
38000         * nscd/aicache.c (addhstaiX): Likewise.
38001         * nscd/cache.c (cache_search, prune_cache): Likewise.
38002         * nscd/connections.c (register_traced_file, send_ro_fd)
38003         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38004         (main_loop_epoll): Likewise.
38005         * nscd/grpcache.c (addgrbyX): Likewise.
38006         * nscd/hstcache.c (addhstbyX): Likewise.
38007         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38008         * nscd/mem.c (gc, mempool_alloc): Likewise.
38009         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38010         (addinnetgrX): Likewise.
38011         * nscd/nscd-client.h (__nscd_acquire_maplock)
38012         (__nscd_drop_map_ref): Likewise.
38013         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38014         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38015         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38016         Likewise.
38017         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38018         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38019         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38020         (__nscd_get_map_ref): Likewise.
38021         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38022         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38023         Likewise.
38024         * nscd/pwdcache.c (addpwbyX): Likewise.
38025         * nscd/selinux.c (preserve_capabilities): Likewise.
38026         * nscd/servicescache.c (addservbyX): Likewise.
38027         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38028         * posix/fnmatch.c (fnmatch): Likewise.
38029         * posix/getopt.c (_getopt_internal_r): Likewise.
38030         * posix/glob.c (glob, glob_in_dir): Likewise.
38031         * posix/wordexp.c (exec_comm_child): Likewise.
38032         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38033         (getanswer_r, gaih_getanswer_slice): Likewise.
38034         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38035         * resolv/res_init.c: Likewise.
38036         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38037         * resolv/res_query.c (__libc_res_nquery): Likewise.
38038         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38039         Likewise.
38040         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38041         * stdio-common/perror.c (perror): Likewise.
38042         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38043         * stdio-common/tmpnam.c (tmpnam): Likewise.
38044         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38045         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38046         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38047         Likewise.
38048         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38049         * stdlib/putenv.c (putenv): Likewise.
38050         * stdlib/setenv.c (__add_to_environ): Likewise.
38051         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38052         * stdlib/strtol_l.c (INTERNAL): Likewise.
38053         * string/memmem.c (memmem): Likewise.
38054         * string/strerror.c (strerror): Likewise.
38055         * string/strnlen.c (__strnlen): Likewise.
38056         * string/test-memmem.c (simple_memmem): Likewise.
38057         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38058         * sunrpc/pm_getport.c (__get_socket): Likewise.
38059         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38060         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38061         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38062         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38063         Likewise.
38064         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38065         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38066         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38067         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38068         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38069         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38070         Likewise.
38071         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38072         Likewise.
38073         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38074         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38075         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38076         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38077         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38078         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38079         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38080         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38081         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38082         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38083         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38084         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38085         Likewise.
38086         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38087         Likewise.
38088         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38089         Likewise.
38090         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38091         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38092         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38093         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38094         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38095         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38096         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38097         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38098         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38099         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38100         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38101         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38102         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38103         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38104         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38105         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38106         Likewise.
38107         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38108         Likewise.
38109         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38110         Likewise.
38111         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38112         Likewise.
38113         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38114         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38115         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38116         Likewise.
38117         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38118         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38119         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38120         * sysdeps/posix/sleep.c: Likewise.
38121         * sysdeps/posix/tempname.c: Likewise.
38122         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38123         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38124         Likewise.
38125         * sysdeps/powerpc/powerpc32/dl-machine.h
38126         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38127         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38128         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38129         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38130         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38131         Likewise.
38132         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38133         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38134         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38135         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38136         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38137         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38138         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38139         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38140         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38141         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38142         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38143         (elf_machine_lazy_rel): Likewise.
38144         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38145         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38146         (elf_machine_lazy_rel): Likewise.
38147         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38148         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38149         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38150         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38151         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38152         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38153         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38154         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38155         Likewise.
38156         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38157         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38158         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38159         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38160         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38161         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38162         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38163         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38164         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38165         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38166         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38167         Likewise.
38168         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38169         (__posix_fallocate64_l64): Likewise.
38170         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38171         (posix_fallocate): Likewise.
38172         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38173         Likewise.
38174         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38175         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38176         (getifaddrs_internal): Likewise.
38177         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38178         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38179         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38180         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38181         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38182         (__posix_fallocate64_l64): Likewise.
38183         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38184         Likewise.
38185         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38186         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38187         (__get_clockfreq): Likewise.
38188         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38189         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38190         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38191         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38192         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38193         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38194         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38195         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38196         Likewise.
38197         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38198         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38199         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38200         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38201         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38202         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38203         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38204         Likewise.
38205         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38206         (posix_fallocate): Likewise.
38207         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38208         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38209         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38210         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38211         (elf_machine_rela, elf_machine_rela_relative)
38212         (elf_machine_lazy_rel): Likewise.
38213         * time/asctime.c (asctime_internal): Likewise.
38214         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38215         * time/tzset.c (__tzset_parse_tz): Likewise.
38216         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38217         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38218         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38219         * wcsmbs/wcsmbsload.h: Likewise.
38220
38221         [BZ #15894]
38222         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38223
38224         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38225         (arena_get2): Remove THREAD_STATS conditionals.
38226         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38227         (__malloc_stats, int): Likewise.
38228
38229 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38230
38231         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38232         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38233
38234         * manual/setjmp.texi: Fix typos/grammar errors.
38235
38236         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38237         Only return early when n is <= 0.  Delete unused return statement.
38238
38239         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38240         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38241         * debug/tst-longjmp_chk3.c: New file.
38242
38243         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38244         (test_main): Replace code with set_fortify_handler call.
38245         * debug/test-strcpy_chk.c: Likewise.
38246         * debug/tst-chk1.c: Likewise.
38247         * debug/tst-longjmp_chk.c: Likewise.
38248         * test-skeleton.c: Include fcntl.h & paths.h
38249         (set_fortify_handler): Define.
38250
38251         * debug/tst-longjmp_chk.c: Add header comment and include
38252         ../test-skeleton.c.
38253         (do_test): Mark static.
38254         (TEST_FUNCTION): Define.
38255
38256         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38257         (IP_PMTUDISC_INTERFACE): Likewise.
38258         (IP_MULTICAST_IF): Likewise.
38259         (IP_MULTICAST_TTL): Likewise.
38260         (IP_MULTICAST_LOOP): Likewise.
38261         (IP_ADD_MEMBERSHIP): Likewise.
38262         (IP_DROP_MEMBERSHIP): Likewise.
38263         (IP_UNBLOCK_SOURCE): Likewise.
38264         (IP_BLOCK_SOURCE): Likewise.
38265         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38266         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38267         (IP_MSFILTER): Likewise.
38268         (MCAST_JOIN_GROUP): Likewise.
38269         (MCAST_BLOCK_SOURCE): Likewise.
38270         (MCAST_UNBLOCK_SOURCE): Likewise.
38271         (MCAST_LEAVE_GROUP): Likewise.
38272         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38273         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38274         (MCAST_MSFILTER): Likewise.
38275         (IP_MULTICAST_ALL): Likewise.
38276         (IP_UNICAST_IF): Likewise.
38277
38278         * timezone/Makefile: Delete $(have-ksh) check.
38279         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38280         * timezone/tzselect.ksh: Add +x mode bits.
38281
38282         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38283         (ANON_INODE_FS_MAGIC): Likewise.
38284         (BDEVFS_MAGIC): Likewise.
38285         (BINFMTFS_MAGIC): Likewise.
38286         (BTRFS_TEST_MAGIC): Likewise.
38287         (CRAMFS_MAGIC_WEND): Likewise.
38288         (DEBUGFS_MAGIC): Likewise.
38289         (ECRYPTFS_SUPER_MAGIC): Likewise.
38290         (EXT3_SUPER_MAGIC): Likewise.
38291         (EXT4_SUPER_MAGIC): Likewise.
38292         (FUTEXFS_SUPER_MAGIC): Likewise.
38293         (HOSTFS_SUPER_MAGIC): Likewise.
38294         (HUGETLBFS_MAGIC): Likewise.
38295         (MINIX3_SUPER_MAGIC): Likewise.
38296         (MTD_INODE_FS_MAGIC): Likewise.
38297         (NILFS_SUPER_MAGIC): Likewise.
38298         (OPENPROM_SUPER_MAGIC): Likewise.
38299         (PIPEFS_MAGIC): Likewise.
38300         (PSTOREFS_MAGIC): Likewise.
38301         (QNX6_SUPER_MAGIC): Likewise.
38302         (RAMFS_MAGIC): Likewise.
38303         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38304         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38305         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38306         (SECURITYFS_MAGIC): Likewise.
38307         (SELINUX_MAGIC): Likewise.
38308         (SMACK_MAGIC): Likewise.
38309         (SOCKFS_MAGIC): Likewise.
38310         (SQUASHFS_MAGIC): Likewise.
38311         (STACK_END_MAGIC): Likewise.
38312         (TMPFS_MAGIC): Likewise.
38313         (USBDEVICE_SUPER_MAGIC): Likewise.
38314         (V9FS_MAGIC): Likewise.
38315         (XENFS_SUPER_MAGIC): Likewise.
38316         (CRAMFS_MAGIC): Fix typo in comment.
38317         (EXT2_SUPER_MAGIC): Update comment.
38318         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38319
38320 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38321
38322         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38323         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38324         * sysdeps/unix/sysv/linux/arm: Move directory from
38325         ports/sysdeps/unix/sysv/linux/arm.
38326         * README: Update listing for arm-*-linux-gnueabi.
38327
38328         * README: Remove mention of am33.
38329
38330 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38331
38332         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38333         than the comma operator, to avoid "rhs of comma has no effect"
38334         compiler warnings.
38335         (__sigfillset, __sigandset, __sigorset): Likewise.
38336         * include/signal.h (__sigemptyset): Likewise.
38337         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38338
38339 2014-02-07  Allan McRae  <allan@archlinux.org>
38340
38341         * version.h (RELEASE): Set to "development".
38342         (VERSION): Set to "2.19.90"
38343         * NEWS: Add 2.20 section.
38344
38345 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38346
38347         [BZ #16529]
38348         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38349
38350 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38351
38352         * manual/contrib.texi: Update entry for Carlos O'Donell,
38353         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38354
38355 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38356
38357         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38358
38359         * sysdeps/unix/sysv/linux/kernel-features.h
38360         [__LINUX_KERNEL_VERSION >= 0x020621]
38361         (__ASSUME_PROC_PID_TASK_COMM): Define.
38362
38363 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38364
38365         [BZ #16398]
38366         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38367         conversion when destination buffer does not have enough space.
38368         * libio/tst-ftell-partial-wide.c: New test case.
38369         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38370
38371         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38372         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38373         Leonard and Allan McRae.
38374
38375 2014-02-04  David S. Miller  <davem@davemloft.net>
38376
38377         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38378         32-bit.
38379
38380 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38381
38382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38383         New file
38384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38385         New file
38386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38387         New file.
38388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38389         New file.
38390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38391         New file.
38392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38393         New file.
38394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38395         New file.
38396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38397         New file.
38398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38399         New file.
38400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38401         New file.
38402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38403         New file.
38404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38405         New file.
38406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38407         New file.
38408
38409 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38410
38411         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38412         * shlib-versions: Likewise.
38413
38414 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38415             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38416
38417         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38418         (abilist-pattern): New variable, set to %-le.abilist.
38419
38420         * Makerules (abilist-pattern): New variable.
38421         (vpath): Use $(abilist-pattern) in place of %.abilist.
38422         (check-abi-% pattern rule): Likewise.
38423         (check-abi, update-abi): Likewise.
38424
38425 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38426
38427         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38428
38429 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38430
38431         * manual/startup.texi: Add next, previous, and top entries for
38432         the `Program Arguments' and `Environment Variables' nodes.
38433
38434 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38435
38436         * manual/macros.texi: Add comments before MTASC-safety macros.
38437
38438         * manual/users.texi: Document MTASC-safety properties.
38439
38440         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38441         (pthread_getspecific, pthread_setspecific): Format with
38442         @deftypefun, and add @safety note.
38443         * manual/signal.texi: Move comments that analyze the above
38444         functions to their home place.
38445
38446 2014-02-03  Allan McRae  <allan@archlinux.org>
38447
38448         * po/sl.po: Update Slovenian translation from translation project.
38449
38450 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38451
38452         * manual/time.texi (timegm): Add missing blank after @c.
38453         Reported by Joseph Myers <joseph@codesourcery.com>.
38454
38455 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38456
38457         * manual/check-safety.sh: New.
38458         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38459
38460         * manual/terminal.texi: Document MTASC-safety properties.
38461
38462         * manual/filesys.texi: Document MTASC-safety properties.
38463
38464         * manual/errno.texi: Document MTASC-safety properties.
38465
38466         * manual/intro.texi: Document safety identifiers and
38467         conditionals.
38468
38469         * manual/string.texi (wcstok): Fix prototype.
38470         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38471
38472         * manual/time.texi: Document MTASC-safety properties.
38473
38474         * manual/string.texi: Document MTASC-safety properties.
38475
38476         * manual/threads.texi: Document MTASC-safety properties.
38477
38478         * manual/stdio.texi: Document MTASC-safety properties.
38479
38480         * manual/syslog.texi: Document MTASC-safety properties.
38481
38482         * manual/sysinfo.texi: Document MTASC-safety properties.
38483
38484         * manual/startup.texi: Document MTASC-safety properties.
38485
38486         * manual/socket.texi: Document MTASC-safety properties.
38487
38488         * manual/signal.texi: Document MTASC-safety properties.
38489
38490 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38491
38492         * manual/setjmp.texi: Document MTASC-safety properties.
38493
38494         * manual/search.texi: Document MTASC-safety properties.
38495
38496         * manual/resource.texi: Document MTASC-safety properties.
38497
38498         * manual/process.texi: Document MTASC-safety properties.
38499
38500         * manual/platform.texi: Document MTASC-safety properties.
38501
38502         * manual/pipe.texi: Document MTASC-safety properties.
38503
38504         * manual/pattern.texi: Document MTASC-safety properties.
38505
38506         * manual/message.texi: Document MTASC-safety properties.
38507
38508         [BZ #12751]
38509         * manual/memory.texi: Document MTASC-safety properties.
38510
38511         * manual/math.texi: Document MTASC-safety properties.
38512
38513         * manual/locale.texi: Document MTASC-safety properties.
38514
38515         * manual/llio.texi: Document MTASC-safety properties.
38516
38517         * manual/libdl.texi: New.
38518
38519         * manual/lang.texi: Document MTASC-safety properties.
38520
38521         * manual/job.texi: Document MTASC-safety properties.
38522
38523         * manual/getopt.texi: Document MTASC-safety properties.
38524
38525         * manual/ctype.texi: Document MTASC-safety properties.
38526
38527 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38528
38529         [BZ #16046]
38530         * csu/libc-tls.c (static_map): Remove variable.
38531         (__libc_setup_tls): Use main executable's link map for TLS data.
38532         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38533         casing for LM_ID_BASE and GL(dl_nns).
38534         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38535         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38536         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38537         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38538         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38539         member.
38540         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38541         l_phnum members.
38542
38543 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38544
38545         * manual/debug.texi: Document MTASC-safety properties.
38546
38547 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38548
38549         [BZ #16510]
38550         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38551         of __x86_64__ when disabling x87 inline functions.
38552
38553 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38554
38555         * manual/charset.texi: Document MTASC-safety properties.
38556
38557         * manual/crypt.texi: Document MTASC-safety properties.
38558
38559         * manual/conf.texi: Document MTASC-safety properties.
38560
38561         * manual/arith.texi: Document MTASC-safety properties.
38562
38563         * manual/argp.texi: Document MTASC-safety properties.
38564
38565         * manual/macros.texi: Introduce macros to document multi
38566         thread, asynchronous signal and asynchronous cancellation
38567         safety properties.
38568         * manual/intro.texi: Introduce the properties themselves.
38569
38570 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38571
38572         * sysdeps/sh/sh4/Makefile: New file.
38573
38574 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38575
38576         * math/gen-libm-test.pl ($srcdir): New variable.
38577         ($auto_input): Use it.
38578
38579 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38580
38581         [BZ #16506]
38582         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38583         access beyond array bounds when parsing netgroups file.
38584
38585         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38586         the old buffer before realloc.
38587
38588 2014-01-27  Allan McRae  <allan@archlinux.org>
38589
38590         * po/fr.po: Update French translation from translation project.
38591
38592 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38593
38594         * sysdeps/sh/libm-test-ulps: Regenerate.
38595
38596 2014-01-24  David S. Miller  <davem@davemloft.net>
38597
38598         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38599
38600 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38601
38602         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38603         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38604
38605 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38606
38607         [BZ #16474]
38608         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38609         string pointers after reallocation.
38610
38611 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38612
38613         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38614         __SH4A__ instead of __SH_FPU_ANY__.
38615
38616 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38617
38618         * sysdeps/sh/fpu_control.h: New file.
38619         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38620         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38621         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38622         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38623         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38624         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38625         * sysdeps/sh/sys/ucontext.h: Remove.
38626         * sysdeps/sh/sys: Remove directory.
38627
38628 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38629
38630         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38631         s390/sys/ucontext.h.
38632         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38633         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38634
38635 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38636
38637         [BZ #15605]
38638         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38639
38640 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38641
38642         [BZ#16431]
38643         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38644         Adjust the vDSO correctly for internal calls.
38645         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38646
38647 2014-01-20  Allan McRae  <allan@archlinux.org>
38648
38649         * po/ca.po: Update Catalan translation from translation project.
38650
38651 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38652
38653         * sysdeps/s390/sotruss-lib.c: New file.
38654
38655 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38656
38657         [BZ#16430]
38658         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38659         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38660         local calls issues by not having a PLT stub required for IFUNC calls.
38661         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38662
38663 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38664
38665         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38666         * math/test-fpucw-static.c: Likewise.
38667
38668 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38669
38670         [BZ #16453]
38671         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38672
38673 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38674
38675         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38676         implementation for powerpc.
38677
38678 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38679
38680         [BZ #14782]
38681         * sysdeps/posix/system.c (__libc_system): Do not enable
38682         asynchronous cancellation.
38683
38684 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38685
38686         [BZ #16427]
38687         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38688         handling only for numbers special also in the IEEE case.
38689
38690 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38691
38692         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38693
38694 2014-01-11  Allan McRae  <allan@archlinux.org>
38695
38696         * po/bg.po: Update Bulgarian translation from translation project.
38697
38698         * po/de.po: Update German translation from translation project.
38699
38700 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38701
38702         * sysdeps/generic/gcc-compat.h: New file.
38703
38704 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38705
38706         * benchtests/asin-inputs: Correct slow inputs.
38707         * benchtests/acos-inputs: Likewise.
38708
38709 2014-01-10  Allan McRae  <allan@archlinux.org>
38710
38711         * po:sv.po: Update Swedish translation from translation project.
38712
38713         * po/vi.po: Update Vietnamese translation from translation project.
38714
38715         * po/eo.po: Update Esperanto translation from translation project.
38716
38717         * po/cs.po: Update Czech translation from translation project.
38718
38719         * po/nl.po: Update Dutch translation from translation project.
38720
38721         * po/pl.po: Update Polish translation from translation project.
38722
38723         * po/ru.po: Update Russian translation from translation project.
38724
38725         * po/uk.po: Update Ukrainian translation from translation project.
38726
38727 2014-01-08  Brooks Moses  <bmoses@google.com>
38728
38729         * elf/dl-load.c: Fix comment typo.
38730
38731 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38732
38733         * po/header.pot: Rename to...
38734         * po/pot.header: ... this.
38735         * po/Makefile: Use pot.header.
38736
38737 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38738             Maxim Kuvyrkov  <maxim@kugelworks.com>
38739
38740         [BZ #16394]
38741         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38742         SRC and DEST against LEN.
38743
38744 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38745
38746         [BZ #16414]
38747         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38748         implementation.
38749         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38750
38751 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38752
38753         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38754
38755 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38756
38757         [BZ #16408]
38758         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38759         for large positive arguments.
38760
38761 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38762
38763         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38764
38765         * math/auto-libm-test-in: Mark various tests with
38766         xfail-rounding:ldbl-128ibm.
38767         * math/auto-libm-test-out: Regenerated.
38768
38769         [BZ #16407]
38770         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38771         Increase overflow threshold.
38772
38773 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38774
38775         [BZ #14286]
38776         * stdio-common/vfprintf.c: Check for integer overflow.
38777
38778 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38779
38780         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38781         the first argument and return value of __tls_get_addr_internal.
38782
38783 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38784
38785         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38786         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38787
38788 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38789
38790         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38791         * sysdeps/s390/rtld-global-offsets.sym: New file.
38792         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38793         GLIBC_2.19 symbol.
38794         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38795         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38796         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38797         ... this.
38798         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38799         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38800         ... this.
38801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38802         Regenerate.
38803         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38804         Regenerate.
38805         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38806         halfs of GPRs for high_gprs contexts.
38807         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38808         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38809         field.
38810         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38811         uc_flags field.
38812         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38813         64 bit versions:
38814         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38815         for high GPRs (uc_high_gprs) and for future extensions
38816         (__reserved).
38817         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38818         for future extensions (__reserved).
38819         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38820         64 bit versions:
38821         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38822         SC_HIGHGPRS offset definition.
38823         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38824         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38825
38826         * Versions.def: Add GLIBC_2.19 for libpthread.
38827         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38828         siglongjmp for libpthread with GLIBC_2.19 symver.
38829         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38830         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38831         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38832         * sysdeps/s390/__longjmp.c: New file.
38833         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38834         * sysdeps/s390/longjmp.c: New file.
38835         * sysdeps/s390/setjmp.S: New file.
38836         * sysdeps/s390/sigjmp.S: New file.
38837         * sysdeps/s390/v1-longjmp.c: New file.
38838         * sysdeps/s390/v1-setjmp.h: New file.
38839         * sysdeps/s390/v1-sigjmp.c: New file.
38840         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38841         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38842         GLIBC_2.19 version.
38843         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38844         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38845         versioned symbols for ____longjmp_chk.
38846         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38847         Likewise.
38848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38849         Regenerate.
38850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38851         Regenerate.
38852         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38853         Regenerate.
38854         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38855         Regenerate.
38856         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38857         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38858         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38859         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38860         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38861         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38862         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38863         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38864         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38865         * sysdeps/s390/rtld-__longjmp.c: New file.
38866         * sysdeps/s390/rtld-setjmp.S: New file.
38867
38868 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38869
38870         [BZ #16400]
38871         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38872         Return -__logl (x) for small positive arguments without evaluating
38873         a polynomial.
38874
38875 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38876
38877         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38878         Rename to ...
38879         (__ptrace_peeksiginfo_args): ... this.
38880         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38881         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38882         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38883
38884 2014-01-06  Allan McRae  <allan@archlinux.org>
38885
38886         * inet/netinet/in.h: Fix typo in comment.
38887
38888 2014-01-05  Andreas Jaeger  <aj@suse.de>
38889
38890         * sysdeps/i386/fpu/libm-test-ulps: Update.
38891
38892 2014-01-05  Allan McRae  <allan@archlinux.org>
38893
38894         * po/libc.pot: Regenerated.
38895
38896         * malloc/memusagestat.c: Fix gettext call formatting.
38897
38898 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38899
38900         * nscd/nscd.c: Improve usage() output.
38901
38902 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38903
38904         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38905         * sysdeps/unix/sysv/linux/configure: Regenerated.
38906         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38907         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38908
38909 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38910
38911         [BZ #16390]
38912         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38913         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38914
38915 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38916
38917         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38918         extra tokens at end of #undef directive.
38919         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38920         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38921         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38922
38923 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38924
38925         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38926
38927         * math/auto-libm-test-in: Mark various tests with
38928         xfail-rounding:ldbl-128ibm.
38929         * math/auto-libm-test-out: Regenerated.
38930
38931 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38932
38933         [BZ #16386]
38934         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38935         numbers with subnormal high part when calculating exponent.
38936
38937         [BZ #16385]
38938         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38939         fabs.
38940
38941         [BZ #16384]
38942         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38943         M_LN2l.
38944         (__ieee754_acoshl): Use __log1pl not __log1p.
38945
38946 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38947
38948         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38949         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38950         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38951         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38952         (reused_arena, arena_get2): Convert to GNU style.
38953         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38954         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38955         (memalign_check, __malloc_set_state): Likewise.
38956         * malloc/mallocbug.c (main): Likewise.
38957         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38958         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38959         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38960         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38961         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38962         (__posix_memalign, malloc_info): Likewise.
38963         * malloc/malloc.h: Likewise.
38964         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38965         (mallochook, memalignhook, reallochook, mabort): Likewise.
38966         * malloc/mcheck.h: Likewise.
38967         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38968         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38969         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38970         * malloc/morecore.c (__default_morecore): Likewise.
38971         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38972         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38973         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38974         (print_and_abort): Likewise.
38975         * malloc/obstack.h: Likewise.
38976         * malloc/set-freeres.c (__libc_freeres): Likewise.
38977         * malloc/tst-mallocstate.c (main): Likewise.
38978         * malloc/tst-mtrace.c (main): Likewise.
38979         * malloc/tst-realloc.c (do_test): Likewise.
38980
38981 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38982
38983         [BZ #16366]
38984         * nscd/netgroupcache.c (do_notfound): New function.
38985         (addgetnetgrentX): Use it.
38986
38987         [BZ # 16365]
38988         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38989         NSS_STATUS_NOTFOUND.
38990
38991 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38992
38993         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38995
38996 2014-01-01  Allan McRae  <allan@archlinux.org>
38997
38998         * scripts/update-copyrights: Update configure input file suffix.
38999
39000         * NEWS: Update copyright year.
39001         * catgets/gencat.c: Likewise.
39002         * csu/version.c: Likewise.
39003         * debug/catchsegv.sh: Likewise.
39004         * debug/pcprofiledump.c: Likewise.
39005         * debug/xtrace.sh: Likewise.
39006         * elf/ldconfig.c: Likewise.
39007         * elf/ldd.bash.in: Likewise.
39008         * elf/pldd.c: Likewise.
39009         * elf/sotruss.ksh: Likewise.
39010         * elf/sprof.c: Likewise.
39011         * iconv/iconv_prog.c: Likewise.
39012         * iconv/iconvconfig.c: Likewise.
39013         * locale/programs/locale.c: Likewise.
39014         * locale/programs/localedef.c: Likewise.
39015         * login/programs/pt_chown.c: Likewise.
39016         * malloc/memusage.sh: Likewise.
39017         * malloc/memusagestat.c: Likewise.
39018         * malloc/mtrace.pl: Likewise.
39019         * manual/libc.texinfo: Likewise.
39020         * nscd/nscd.c: Likewise.
39021         * nss/getent.c: Likewise.
39022         * nss/makedb.c: Likewise.
39023         * posix/getconf.c: Likewise.
39024         * scripts/test-installation.pl: Likewise.
39025
39026         * All files with FSF copyright notices: Update copyright dates
39027         using scripts/update-copyrights.
39028         * intl/plural.c: Regenerated.
39029         * locale/programs/charmap-kw.h: Likewise.
39030         * locale/programs/locfile-kw.h: Likewise.
39031
39032 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39033
39034         * sysdeps/unix/sysv/linux/configure: Regenerated.
39035         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39036         the linux/fanotify.h header.
39037         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39038         HAVE_LINUX_FANOTIFY_H is defined.
39039
39040 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39041
39042         * benchtests/cos-inputs: New inputs.
39043         * benchtests/sin-inputs: Likewise.
39044
39045         * benchtests/atan-inputs: New inputs. Fix name of multiple
39046         precision fallback inputs.
39047
39048         * benchtests/atanh-inputs: New inputs.
39049         * benchtests/tanh-inputs: Likewise.
39050
39051         * benchtests/acosh-inputs: New inputs.
39052         * benchtests/asinh-inputs: Likewise.
39053
39054         * benchtests/cosh-inputs: New inputs.
39055         * benchtests/sinh-inputs: Likewise.
39056
39057         * benchtests/acos-inputs: Add more inputs.
39058         * benchtests/asin-inputs: Likewise.
39059
39060 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39061
39062         [BZ #16375]
39063         * manual/arith.texi: Fix spelling.
39064         * manual/charset.texi: Likewise.
39065         * manual/errno.texi: Likewise.
39066         * manual/filesys.texi: Likewise.
39067         * manual/lang.texi: Likewise.
39068         * manual/llio.texi: Likewise.
39069         * manual/locale.texi: Likewise.
39070         * manual/message.texi: Likewise.
39071         * manual/resource.texi: Likewise.
39072         * manual/search.texi: Likewise.
39073         * manual/setjmp.texi: Likewise.
39074         * manual/stdio.texi: Likewise.
39075         * manual/string.texi: Likewise.
39076         * manual/sysinfo.texi: Likewise.
39077         * manual/time.texi: Likewise.
39078
39079 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39080
39081         * po/sl.po: New file.
39082
39083 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39084
39085         * .gitignore: Add core/.gdbinit/.gdb_history.
39086
39087 2013-12-27  Allan McRae  <allan@archlinux.org>
39088
39089         [BZ #16369]
39090         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39091         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39092
39093 2013-12-24  Brooks Moses  <bmoses@google.com>
39094
39095         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39096         all compilers that claim C++98 compliance, not just GCC.
39097         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39098         Likewise.
39099
39100 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39101
39102         * NEWS: Restore accidentally deleted bug-fix entries.
39103
39104 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39105             Ondřej Bílka  <neleai@seznam.cz>
39106
39107         [BZ #15073]
39108         * malloc/malloc.c (_int_free): Perform sanity check only if we
39109         have_lock.
39110
39111 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39112
39113         [BZ #12986]
39114         * manual/stdio.texi (String Input Conversions): Clarify that character
39115         classes are not supported.
39116
39117 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39118
39119         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39120
39121 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39122
39123         [BZ #16337]
39124         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39125         Calculate results for small negative arguments directly rather
39126         than using reflection formula with special underflow handling.
39127
39128         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39129         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39130         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39131         (fchflags): Likewise.
39132         (revoke): Likewise.
39133         (setlogin): Likewise.
39134         (sigaltstack): Likewise.
39135         (wait4): Likewise.
39136         (sigblock): Remove.
39137         (sigsetmask): Likewise.
39138         (wait3): Likewise.
39139         (waitpid): Likewise.
39140         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39141         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39142         file.
39143         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39144         * sysdeps/unix/bsd/Makefile: ... here.
39145         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39146         * sysdeps/unix/bsd/Versions: ... here.
39147         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39148         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39149         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39150         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39151         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39152         * sysdeps/unix/bsd/sigblock.c: ... here.
39153         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39154         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39155         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39156         * sysdeps/unix/bsd/sigvec.c: ... here.
39157         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39158         * sysdeps/unix/bsd/tcdrain.c: ... here.
39159         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39160         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39161         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39162         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39163         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39164         * sysdeps/unix/bsd/wait.c: ... here.
39165         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39166         * sysdeps/unix/bsd/wait3.c: ... here.
39167         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39168         * sysdeps/unix/bsd/waitpid.c: ... here.
39169
39170 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39171
39172         [BZ #16356]
39173         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39174         round-to-nearest for [!USE_AS_EXPM1L].
39175         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39176         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39177         more tests of exp and exp10.  Expect some exp10 tests to miss
39178         exceptions or fail in directed rounding modes.
39179         * math/auto-libm-test-out: Regenerated.
39180         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39181         (exp10_test_tonearest): New function.
39182         (exp10_towardzero_test_data): New array.
39183         (exp10_test_towardzero): New function.
39184         (exp10_downward_test_data): New array.
39185         (exp10_test_downward): New function.
39186         (exp10_upward_test_data): New array.
39187         (exp10_test_upward): New function.
39188         (main): Call the new functions.
39189         * sysdeps/i386/fpu/libm-test-ulps: Update.
39190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39191
39192 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39193
39194         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39195         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39196         * math/auto-libm-test-out: Regenerated.
39197         * math/libm-test.inc (acosh_test_data): Add more tests.
39198         (atanh_test_data): Likewise.
39199         (ceil_test_data): Likewise.
39200         (copysign_test_data): Likewise.
39201         * sysdeps/i386/fpu/libm-test-ulps: Update.
39202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39203
39204         * timezone/checktab.awk: Update from tzcode 2013i.
39205         * timezone/private.h: Likewise.
39206         * timezone/scheck.c: Likewise.
39207         * timezone/tzfile.h: Likewise.
39208         * timezone/tzselect.ksh: Likewise.
39209         * timezone/zdump.c: Likewise.
39210         * timezone/zic.c: Likewise.
39211
39212         * math/auto-libm-test-in: Add tests of cpow.
39213         * math/auto-libm-test-out: Regenerated.
39214         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39215         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39216         mpc_cc_c.
39217         (func_calc_desc): Add mpc_cc_c union field.
39218         (test_functions): Add cpow.
39219         (special_fill_2pi): New function.
39220         (special_real_inputs): Add 2pi.
39221         (calc_generic_results): Handle mpc_cc_c.
39222         * sysdeps/i386/fpu/libm-test-ulps: Update.
39223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39224
39225         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39226         csqrt, ctan and ctanh.
39227         * math/auto-libm-test-out: Regenerated.
39228         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39229         (TEST_COND_x86): Likewise.
39230         (ccos_test_data): Use AUTO_TESTS_c_c.
39231         (ccosh_test_data): Likewise.
39232         (cexp_test_data): Likewise.
39233         (clog_test_data): Likewise.
39234         (csqrt_test_data): Likewise.
39235         (ctan_test_data): Likewise.
39236         (ctan_tonearest_test_data): Likewise.
39237         (ctan_towardzero_test_data): Likewise.
39238         (ctan_downward_test_data): Likewise.
39239         (ctan_upward_test_data): Likewise.
39240         (ctanh_test_data): Likewise.
39241         (ctanh_tonearest_test_data): Likewise.
39242         (ctanh_towardzero_test_data): Likewise.
39243         (ctanh_downward_test_data): Likewise.
39244         (ctanh_upward_test_data): Likewise.
39245         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39246         mpc_c_c.
39247         (func_calc_desc): Add mpc_c_c union field.
39248         (FUNC_mpc_c_c): New macro.
39249         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39250         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39251         ctanh.
39252         (special_fill_min_subnorm_p120): New function.
39253         (special_real_inputs): Add min_subnorm_p120.
39254         (calc_generic_results): Handle mpc_c_c.
39255         * sysdeps/i386/fpu/libm-test-ulps: Update.
39256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39257
39258 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39259
39260         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39261         (do_sin_slow): New functions.
39262         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39263         (cslow2, csloww1, csloww2): Use the new functions.
39264
39265         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39266         Use M to change sign of result instead of X.  Assume X is
39267         positive.
39268         (csloww1): Likewise.
39269         (__sin): Adjust.
39270         (__cos): Adjust.
39271
39272         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39273         arguments A and DA.
39274         (__sin): Adjust.
39275         (__cos): Likewise.
39276
39277         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39278         (__cos): Likewise.
39279         (sloww1): Don't adjust sign of DX.
39280         (csloww1): Likewise.
39281         (sloww2): Use X directly and don't adjust sign of DX.
39282         (csloww2): Likewise.
39283
39284 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39285
39286         * math/auto-libm-test-in: Add tests of cabs and carg.
39287         * math/auto-libm-test-out: Regenerated.
39288         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39289         (carg_test_data): Likewise.
39290         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39291         mpc_c_f.
39292         (func_calc_desc): Add mpc_c_f union field.
39293         (test_functions): Add cabs and carg.
39294         (calc_generic_results): Handle mpc_c_f.
39295
39296         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39297         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39298         as a macro and a compat symbol.
39299         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39300         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39301         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39302         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39303         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39304         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39305         not use .hidden.
39306         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39307         Likewise.
39308         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39309         Likewise.
39310         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39311         Likewise.
39312         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39313         Likewise.
39314         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39315         Likewise.
39316         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39317         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39318         from GLIBC_2.3.2.
39319
39320 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39321
39322         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39323
39324 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39325
39326         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39327         trailing whitespace removed.
39328         * scripts/config.guess: Update to version 2013-11-29.
39329         * scripts/config.sub: Update to version 2013-10-01.
39330
39331         * math/auto-libm-test-in: Add tests of sincos.
39332         * math/auto-libm-test-out: Regenerated.
39333         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39334         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39335         mpfr_f_11.
39336         (func_calc_desc): Add mpfr_f_11 union field.
39337         (test_functions): Add sincos.
39338         (calc_generic_results): Handle mpfr_f_11.
39339         * sysdeps/i386/fpu/libm-test-ulps: Update.
39340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39341
39342 2013-12-19  Andreas Schwab  <schwab@suse.de>
39343
39344         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39345         CALL_MCOUNT.
39346         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39347         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39348         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39349
39350 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39351
39352         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39353         * sysdeps/i386/fpu/libm-test-ulps: Update.
39354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39355
39356         [BZ #16293]
39357         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39358         round-to-nearest mode when using frndint.
39359         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39360         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39361         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39362         Likewise.
39363         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39364         sinh test to fail.
39365         * math/auto-libm-test-out: Regenerated.
39366         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39367         (TEST_COND_x86): Likewise.
39368         (expm1_tonearest_test_data): New array.
39369         (expm1_test_tonearest): New function.
39370         (expm1_towardzero_test_data): New array.
39371         (expm1_test_towardzero): New function.
39372         (expm1_downward_test_data): New array.
39373         (expm1_test_downward): New function.
39374         (expm1_upward_test_data): New array.
39375         (expm1_test_upward): New function.
39376         (main): Run the new test functions.
39377         * sysdeps/i386/fpu/libm-test-ulps: Update.
39378         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39379
39380         * include/features.h: Update comment documenting feature test
39381         macros.  Mention _DEFAULT_SOURCE in comment.
39382         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39383         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39384         _BSD_SOURCE and _SVID_SOURCE.
39385         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39386         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39387         !_SVID_SOURCE]: Likewise.
39388         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39389         (__USE_POSIX_IMPLICITLY): Define.
39390         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39391         (_POSIX_SOURCE): Undefine and redefine.
39392         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39393         (_POSIX_C_SOURCE): Likewise.
39394         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39395         (Feature Test Macros): Update documentation of default features.
39396
39397 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39398
39399         * benchtests/Makefile: Add bench-strtok.
39400         * benchtests/bench-strtok.c: New file: strtok benchtest.
39401
39402 2013-12-19  Allan McRae  <allan@archlinux.org>
39403
39404         * manual/install.texi: Suppress menu for plain text output.
39405         * INSTALL: Regenerated.
39406
39407 2013-12-18  Brooks Moses  <bmoses@google.com>
39408
39409         [BZ #15846]
39410         * misc/getauxval.c: Include errno.h.
39411         (__getauxval): Set errno to ENOENT if the requested type is not
39412         found.
39413         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39414         don't declare with __attribute_const__.
39415         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39416         * manual/startup.texi: Document that getauxval sets errno.
39417
39418 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39419
39420         * math/auto-libm-test-in: Add tests of jn and yn.
39421         * math/auto-libm-test-out: Regenerated.
39422         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39423         (yn_test_data): Likewise.
39424         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39425         mpfr_if_f.
39426         (func_calc_desc): Add mpfr_if_f union field.
39427         (FUNC_mpfr_if_f): New macro.
39428         (test_functions): Add jn and yn.
39429         (calc_generic_results): Assert type of second input for
39430         mpfr_ff_f.  Handle mpfr_if_f.
39431         (output_for_one_input_case): Disable all checking for arguments
39432         fitting floating-point types in case of an integer argument.
39433         * sysdeps/i386/fpu/libm-test-ulps: Update.
39434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39435
39436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39437         Don't expect fegetround reference in libm.so.
39438
39439 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39440
39441         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39442         $(config-cflags-nofma).
39443
39444 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39445
39446         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39447         * math/auto-libm-test-out: Regenerated.
39448
39449         [BZ #16338]
39450         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39451         to determine exponent and adjust argument to have exponent of -1.
39452         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39453         log2.
39454         * math/auto-libm-test-out: Regenerated.
39455         * sysdeps/i386/fpu/libm-test-ulps: Update.
39456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39457
39458 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39459
39460         * manual/probes.texi: Remove cases when per-thread arenas are
39461         disabled.
39462
39463 2013-12-18  Andreas Schwab  <schwab@suse.de>
39464
39465         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39466         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39467         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39468         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39469         * sysdeps/i386/i686/multiarch/Makefile: Update.
39470         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39471
39472 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39473
39474         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39475         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39476
39477 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39478
39479         [BZ #15968]
39480         Support TZ transition times < 00:00:00.
39481         This is needed for version-3 tz-format files; it supports time
39482         stamps past 2037 for America/Godthab (the only entry in the tz
39483         database for which this change is relevant).
39484         * manual/time.texi (TZ Variable): Document transition times
39485         from -167:59:59 through -00:00:01.
39486         * time/tzset.c (tz_rule): Time of day is now signed.
39487         (__tzset_parse_tz): Parse negative time of day.
39488
39489         Document TZ transition times >= 25:00:00.
39490         * manual/time.texi (TZ Variable): Document transition times from
39491         25:00:00 through 167:59:59.  These are already supported, and this
39492         support will help with version-3 tz-format files.
39493
39494         * manual/time.texi (TZ Variable): Modernize North America example
39495         to reflect current (i.e., 2007-and-later) daylight saving rules.
39496
39497         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39498
39499 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39500
39501         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39502         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39503         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39504         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39505         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39506         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39507         * sysdeps/unix/bsd/clock.c: Likewise.
39508         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39509         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39510         * sysdeps/unix/bsd/init-posix.c: Likewise.
39511         * sysdeps/unix/bsd/poll.c: Likewise.
39512         * sysdeps/unix/bsd/ptsname.c: Likewise.
39513         * sysdeps/unix/bsd/seekdir.c: Likewise.
39514         * sysdeps/unix/bsd/setegid.c: Likewise.
39515         * sysdeps/unix/bsd/seteuid.c: Likewise.
39516         * sysdeps/unix/bsd/setgid.c: Likewise.
39517         * sysdeps/unix/bsd/setrgid.c: Likewise.
39518         * sysdeps/unix/bsd/setruid.c: Likewise.
39519         * sysdeps/unix/bsd/setsid.c: Likewise.
39520         * sysdeps/unix/bsd/setuid.c: Likewise.
39521         * sysdeps/unix/bsd/sigaction.c: Likewise.
39522         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39523         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39524         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39525         * sysdeps/unix/bsd/telldir.c: Likewise.
39526         * sysdeps/unix/bsd/times.c: Likewise.
39527         * sysdeps/unix/bsd/usleep.c: Likewise.
39528
39529         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39530         ($(objpfx)libbsd-compat.a): Remove rule.
39531
39532         * include/features.h (__FAVOR_BSD): Do not define.
39533         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39534         features conflicting with POSIX.
39535         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39536         (_BSD_SOURCE): Remove description of not being a subset of other
39537         feature test macros.
39538         * manual/job.texi (getpgrp): Do not document BSD version.
39539         (getpgid): Do not document by reference to BSD getpgrp.
39540         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39541         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39542         * signal/signal.h [__FAVOR_BSD]: Likewise.
39543         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39544         instead of making contents conditional on [__FAVOR_BSD].
39545         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39546
39547 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39548
39549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39550
39551 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39552
39553         [BZ #16314]
39554         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39555         values below 2**-450, not 2**-500.
39556         * math/auto-libm-test-in: Don't allow spurious underflow from
39557         hypot.
39558         * math/auto-libm-test-out: Regenerated.
39559
39560         [BZ #16316]
39561         [BZ #16330]
39562         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39563         values of ha and hb and sort them after adjusting subnormal
39564         arguments.
39565         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39566         Likewise.
39567         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39568         values of ea and eb and sort them after adjusting subnormal
39569         arguments.
39570         * math/auto-libm-test-in: Do not expect some hypot tests of
39571         subnormals to fail.  Add more hypot tests.
39572         * math/auto-libm-test-out: Regenerated.
39573
39574 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39575
39576         [BZ #13304]
39577         * sysdeps/sh/s_fma.c: New file.
39578         * sysdeps/sh/s_fmaf.c: New file.
39579         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39580         version.
39581         * sysdeps/sh/Implies: Add sh/soft-fp.
39582
39583 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39584
39585         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39586         level of indirection to members `objname', `errstring', `malloced'.
39587         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39588         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39589         it as the __longjmp argument (just pass 1 instead).
39590         (_dl_catch_error): Initialize C with argument pointers and address of
39591         volatile local ERRCODE rather than copying values out of C at return.
39592
39593 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39594
39595         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39596         * math/auto-libm-test-out: Regenerated.
39597         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39598         (hypot_test_data): Likewise.
39599         (pow_test_data): Likewise.
39600         (pow_tonearest_test_data): Likewise.
39601         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39602         mpfr_ff_f.
39603         (func_calc_desc): Add mpfr_ff_f union field.
39604         (FUNC_mpfr_ff_f): New macro.
39605         (test_functions): Add atan2, hypot and pow.
39606         (special_fill_min): New function.
39607         (special_fill_minus_min): Likewise.
39608         (special_fill_min_subnorm): Likewise.
39609         (special_fill_minus_min_subnorm): Likewise.
39610         (special_real_inputs): Add min, -min, min_subnorm and
39611         -min_subnorm.
39612         (calc_generic_results): Handle mpfr_ff_f.
39613         * sysdeps/i386/fpu/libm-test-ulps: Update.
39614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39615
39616 2013-12-16  Will Newton  <will.newton@linaro.org>
39617
39618         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39619         (Aligned Memory Blocks): Add documentation for aligned_alloc
39620         and suggest it as an alternative to posix_memalign.
39621         (Hooks for Malloc): Document __memalign_hook is also called
39622         for aligned_alloc.  (Summary of Malloc): Add summary for
39623         aligned alloc.  Document __memalign_hook is also called
39624         for aligned_alloc.
39625
39626 2013-12-16  Will Newton  <will.newton@linaro.org>
39627
39628         * manual/memory.texi (Malloc Examples): Clarify default
39629         alignment documentation.  Suggest posix_memalign rather
39630         than memalign or valloc.
39631         (Aligned Memory Blocks): Remove suggestion to use memalign
39632         or valloc.  Remove obsolete comment about BSD.
39633         Document memalign errno values and mark the function obsolete.
39634         Document posix_memalign returned error codes.  Mark valloc
39635         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39636         called for posix_memalign and valloc.
39637         (Summary of Malloc): Add posix_memalign to function summary.
39638         __memalign_hook is also called for posix_memalign and valloc.
39639
39640 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39641
39642         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39643         TAYLOR_SIN.
39644         (__sin): Adjust.
39645         (__cos): Likewise.
39646         (sloww): Use mynumber union.  Expand ternary operator into
39647         if-else statements.
39648         (cslow): use mynumber union.
39649
39650 2013-12-16  Allan McRae  <allan@archlinux.org>
39651
39652         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39653         * configure: Regenerated.
39654
39655         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39656
39657         [BZ #14120]
39658         * configure.ac: Added --enable-maintainer-mode. Check for
39659         autoconf when enabled.
39660         * configure: Regenerated.
39661
39662         * nscd/nscd.service: New file.
39663         * nscd/nscd.tmpfiles: New file.
39664
39665 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39666
39667         [BZ #12100]
39668         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39669         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39670         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39671         (strstr): Add __strstr_sse2_unaligned ifunc.
39672         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39673         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39674         (strcasestr): Remove __strcasestr_sse42 ifunc.
39675         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39676         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39677         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39678
39679 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39680
39681         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39682         * sysdeps/sh/bits/fenv.h: ... here.
39683         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39684
39685 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39686
39687         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39688
39689         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39690         hypotf multiarch implementations.
39691         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39692         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39693         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39694         multiarch hypot for PPC64.
39695         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39696         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39697         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39698         multiarch hypotf for PPC64.
39699
39700         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39701         modff multiarch implementations.
39702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39705         multiarch modf for PPC64.
39706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39707         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39709         multiarch modff for PPC64.
39710
39711         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39712         and logl multiarch implementations.
39713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39715         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39716         multiarch logb for PPC64.
39717         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39718         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39719         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39720         multiarch logb for PPC64.
39721         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39722         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39723         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39724         multiarch logb for PPC64.
39725
39726         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39727         isinff multiarch implementation.
39728         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39729         file.
39730         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39731         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39732         multiarch isinf for PPC64.
39733         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39734         file.
39735         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39736         multiarch isinff for PPC64.
39737
39738         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39739         finitef multiarch implementation.
39740         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39741         file.
39742         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39744         multiarch finite for PPC64.
39745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39746         file.
39747         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39748         multiarch finitef for PPC64.
39749
39750         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39751         lrint multiarch implementation.
39752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39753         file.
39754         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39756         multiarch llrint for PPC64.
39757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39758         multiarch lrint for PPC64.
39759
39760         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39761         copysignf multiarch implementation.
39762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39763         file.
39764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39765         file.
39766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39767         multiarch copysign for PPC64.
39768         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39769         multiarch copysignf for PPC64.
39770
39771         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39772         multiarch implementation.
39773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39774         file.
39775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39776         file.
39777         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39778         file.
39779         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39780         file.
39781         multiarch llround for PPC64.
39782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39783         multiarch trunc for PPC64.
39784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39785         multiarch truncf for PPC64.
39786
39787         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39788         multiarch implementation.
39789         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39790         file.
39791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39792         file.
39793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39794         file.
39795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39796         file.
39797         multiarch llround for PPC64.
39798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39799         multiarch round for PPC64.
39800         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39801         multiarch roundf for PPC64.
39802
39803         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39804         multiarch implementation.
39805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39806         file.
39807         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39808         file.
39809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39810         file.
39811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39812         file.
39813         multiarch llround for PPC64.
39814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39815         multiarch floor for PPC64.
39816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39817         multiarch floorf for PPC64.
39818
39819         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39820         multiarch implementation.
39821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39822         file.
39823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39824         file.
39825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39826         file.
39827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39828         file.
39829         multiarch llround for PPC64.
39830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39831         multiarch ceil for PPC64.
39832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39833         multiarch ceilf for PPC64.
39834
39835         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39836         multiarch implementation.
39837         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39838         file.
39839         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39840         file.
39841         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39842         file.
39843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39844         multiarch llround for PPC64.
39845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39846         multiarch lround for PPC64.
39847
39848         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39849         multiarch implementation.
39850         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39852         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39853         file.
39854         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39855         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39856         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39857         multiarch isnan for PPC64.
39858         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39859         multiarch isnanf for PPC64.
39860
39861         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39862         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39863         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39864         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39865         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39867
39868         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39869         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39870         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39871         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39872
39873         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39874         multiarch implementations.
39875         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39876         (__libc_ifunc_impl_list): Likewise.
39877         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39878         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39879         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39880         multiarch stpcpy for PPC64.
39881
39882         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39883         multiarch implementations.
39884         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39885         (__libc_ifunc_impl_list): Likewise.
39886         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39887         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39888         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39889         multiarch strcpy for PPC64.
39890
39891         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39892         redefine function name.
39893         (_wordcopy_fwd_dest_aligned): Likewise.
39894         (_wordcopy_bwd_aligned): Likewise.
39895         (_wordcopy_bwd_dest_aligned): Likewise.
39896         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39897         multiarch implementations.
39898         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39899         (__libc_ifunc_impl_list): Likewise.
39900         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39901         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39902         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39903         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39904         multiarch wcscpy for PPC64.
39905
39906         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39907         multiarch implementations.
39908         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39909         (__libc_ifunc_impl_list): Likewise.
39910         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39911         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39912         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39913         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39914         multiarch wcscpy for PPC64.
39915
39916         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39917         multiarch implementations.
39918         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39919         (__libc_ifunc_impl_list): Likewise.
39920         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39921         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39922         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39923         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39924         multiarch wcsrchr for PPC64.
39925
39926         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39927         multiarch implementations.
39928         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39929         (__libc_ifunc_impl_list): Likewise.
39930         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39931         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39932         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39933         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39934         multiarch wcschr for PPC64.
39935
39936         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39937         multiarch implementations.
39938         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39939         (__libc_ifunc_impl_list): Likewise.
39940         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39941         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39942         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39943         multiarch strchrnul for PPC64.
39944
39945         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39946         implementations.
39947         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39948         (__libc_ifunc_impl_list): Likewise.
39949         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39950         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39951         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39952         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39953         strchr for PPC64.
39954
39955         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39956         implementations.
39957         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39958         (__libc_ifunc_impl_list): Likewise.
39959         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39960         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39961         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39962         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39963         strncmp for PPC64.
39964
39965         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39966         multiarch implementations.
39967         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39968         (__libc_ifunc_impl_list): Likewise.
39969         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39970         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39971         strncasecmp for PPC64.
39972         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39973         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39974         multiarch strncasecmp_l for PPC64.
39975
39976         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39977         multiarch implementations.
39978         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39979         (__libc_ifunc_impl_list): Likewise.
39980         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39981         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39982         multiarch strcasecmp for PPC64.
39983         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39984         file.
39985         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39986         multiarch strcasecmp_l for PPC64.
39987
39988         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39989         implementations.
39990         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39991         (__libc_ifunc_impl_list): Likewise.
39992         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39993         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39994         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39995         strnlen for PPC64.
39996
39997         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39998         implementations.
39999         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40000         (__libc_ifunc_impl_list): Likewise.
40001         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40002         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40003         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40004         strlen for PPC64.
40005
40006         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40007         implementations.
40008         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40009         (__libc_ifunc_impl_list): Likewise.
40010         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40011         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40012         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40013         rawmemrchr for PPC64.
40014
40015         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40016         implementation.
40017         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40018         (__libc_ifunc_impl_list): Likewise.
40019         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40020         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40021         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40022         memrchr for PPC64.
40023
40024         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40025         implementation.
40026         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40027         (__libc_ifunc_impl_list): Likewise.
40028         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40029         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40030         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40031         memchr for PPC64.
40032
40033         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40034         implementation.
40035         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40036         (__libc_ifunc_impl_list): Likewise.
40037         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40038         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40039         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40040         mempcpy for PPC64.
40041
40042         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40043         avoid cretion of __bzero symbol.
40044         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40045         Likewise.
40046         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40047         Likewise.
40048         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40049         Likewise.
40050         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40051         multiarch implementations.
40052         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40053         (__libc_ifunc_impl_list): Likewise.
40054         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40055         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40056         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40057         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40058         bzero for PPC32.
40059         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40060         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40061         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40062         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40063         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40064         memset for PPC64.
40065         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40066
40067         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40068         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40069         implementations.
40070         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40071         (__libc_ifunc_impl_list): Likewise.
40072         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40073         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40074         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40075         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40076         memcmp for PPC64.
40077
40078         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40079         multiarch for POWER/PPC64.
40080         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40081         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40082         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40083         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40084         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40085         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40086         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40087         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40088         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40089         memcpy for PPC64.
40090
40091         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40092         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40093         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40094         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40095         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40096         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40097         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40098         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40099         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40100         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40101         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40102         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40103         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40104         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40105         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40113
40114 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40115
40116         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40117
40118 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40119
40120         * benchtests/Makefile (bench): Add exp2 and log2.
40121         (LDLIBS-bench-exp2): Add -lm.
40122         (LDLIBS-bench-log2): Likewise.
40123         * benchtests/exp2-inputs: New inputs file.
40124         * benchtests/log2-inputs: New inputs file.
40125         * benchtests/log-inputs: Add new inputs.
40126         * benchtests/tan-inputs: Likewise.
40127
40128 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40129
40130         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40131         definition...
40132         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40133         (csloww2): ... from here.
40134
40135         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40136         instead of structures.
40137         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40138         (POLYNOMIAL): Likewise.
40139         (TAYLOR_SLOW): Likewise.
40140         (__sin): Likewise.
40141         (__cos): Likewise.
40142         (slow1): Likewise.
40143         (slow2): Likewise.
40144         (sloww): Likewise.
40145         (sloww1); Likewise.
40146         (sloww2): Likewise.
40147         (bsloww1): Likewise.
40148         (bsloww2): Likewise.
40149         (cslow2): Likewise.
40150         (csloww): Likewise.
40151         (csloww1): Likewise.
40152         (csloww2): Likewise.
40153
40154 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40155
40156         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40157         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40158         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40159         * malloc/hooks.c (realloc_check): Likewise.
40160
40161         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40162         * malloc/arena.c: Remove PER_THREAD conditional.
40163         [!PER_THREAD]: Remove code.
40164         (ptmalloc_unlock_all2): Likewise.
40165         (ptmalloc_init): Likewise.
40166         (_int_new_arena): Likewise.
40167         (arena_get2): Likewise.
40168         * malloc/hooks.c (__malloc_get_state): Likewise.
40169         (__malloc_set_state): Likewise.
40170         * malloc/malloc.c: Likewise.
40171         (struct malloc_state): Likewise.
40172         (struct malloc_par): Likewise.
40173         (__libc_realloc): Likewise.
40174         (__libc_mallopt): Likewise.
40175
40176 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40177
40178         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40179
40180 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40181
40182         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40183         macro to a function.  Check for zero perturb_byte.
40184         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40185
40186         * malloc/malloc.c: (force_reg): Remove.
40187         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40188         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40189         force_reg by atomic_forced_read.
40190         * malloc/arena.c (ptmalloc_init): Likewise.
40191         * malloc/hooks.c (top_check): Likewise.
40192
40193 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40194
40195         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40196
40197 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40198
40199         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40200
40201 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40202
40203         * math/auto-libm-test-in: Add tests of lgamma.
40204         * math/auto-libm-test-out: Regenerated.
40205         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40206         (M_LOG_2_SQRT_PIl): Likewise.
40207         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40208         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40209         mpfr_f_f1.
40210         (func_calc_desc): Add mpfr_f_f1 union field.
40211         (ARGS1): New macro.
40212         (ARGS2): Likewise.
40213         (ARGS3): Likewise.
40214         (ARGS4): Likewise.
40215         (RET1): Likewise.
40216         (RET2): Likewise.
40217         (CALC): Likewise.
40218         (FUNC): Likewise.
40219         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40220         (test_functions): Add lgamma.
40221         (calc_generic_results): Handle mpfr_f_f1.
40222         * sysdeps/i386/fpu/libm-test-ulps: Update.
40223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40224
40225 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40226
40227         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40228         __mpn_add_n for PowerPC64/POWER7.
40229         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40230         __mpn_sub_n for PowerPC64/POWER7.
40231
40232         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40233         __mpn_addmul_1 for PowerPC64.
40234         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40235         __mpn_submul_1 for PowerPC64.
40236         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40237         for PowerPC64.
40238         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40239         for PowerPC64.
40240
40241 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40242
40243         [BZ #15089]
40244         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40245
40246 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40247
40248         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40249
40250         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40251         add multiarch folders.
40252         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40253         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40254         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40255         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40256         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40257         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40258         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40259         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40260         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40261         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40262         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40269
40270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40271         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40273         New file.
40274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40275         New file.
40276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40277         multiarch __ieee754_hypot for PowerPC32.
40278         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40279         New file.
40280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40281         New file.
40282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40283         multiarch __ieee754_hypotf for PowerPC32.
40284
40285         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40286         long_double_symbol only if __logbl is defined.
40287         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40288         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40289         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40290         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40291         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40292         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40293         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40294         path for implementation.
40295         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40296         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40297         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40298         logb, and logbl multiarch implementations for PowerPC32.
40299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40300         file.
40301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40302         file.
40303         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40304         multiarch logb for PowerPC32.
40305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40306         file.
40307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40308         file.
40309         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40310         multiarch logbf for PowerPC32.
40311         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40313         file.
40314         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40315         multiarch logbl implementation for PowerPC32.
40316
40317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40318         and modff multiarch implementations.
40319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40320         New file.
40321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40322         New file.
40323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40324         multiarch modf for PowerPC32.
40325         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40326         New file.
40327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40328         New file.
40329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40330         multiarch modff for PowerPC32.
40331
40332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40333         and lrintf multiarch implementations.
40334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40335         New file.
40336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40337         New file.
40338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40339         multiarch lrint for PowerPC32.
40340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40341         file: multiarch lrintf for PowerPC32.
40342
40343         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40344         and lroundf multiarch implementations.
40345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40346         New file.
40347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40348         New file.
40349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40350         New file.
40351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40352         multiarch lround for PowerPC32.
40353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40354         file: multiarch lroundf for PowerPC32.
40355
40356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40357         copysign and copysignf multiarch implementations.
40358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40359         New file.
40360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40361         New file.
40362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40363         file: multiarch copysign for PowerPC32.
40364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40365         file: multiarch copysignf for PowerPC32.
40366
40367         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40368         and truncf multiarch implementations.
40369         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40370         New file.
40371         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40372         file.
40373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40374         multiarch trunc for PowerPC32.
40375         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40376         New file.
40377         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40378         New file.
40379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40380         multiarch truncf for PowerPC32.
40381
40382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40383         and roundf multiarch implementations.
40384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40385         New file.
40386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40387         file.
40388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40389         multiarch round for PowerPC32.
40390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40391         New file.
40392         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40393         New file.
40394         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40395         multiarch roundf for PowerPC32.
40396
40397         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40398         and floorf multiarch implementations.
40399         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40400         New file.
40401         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40402         file.
40403         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40404         multiarch floor for PowerPC32.
40405         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40406         New file.
40407         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40408         New file.
40409         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40410         multiarch floorf for PowerPC32.
40411
40412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40413         and ceilf multiarch implementations.
40414         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40415         New file.
40416         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40417         file.
40418         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40419         multiarch ceil for PowerPC32.
40420         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40421         New file.
40422         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40423         file.
40424         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40425         multiarch ceilf for PowerPC32.
40426
40427         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40428         is defined.
40429         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40430         FINITEF is defined.
40431         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40432         and finitef multiarch implementations.
40433         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40434         New file.
40435         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40436         file.
40437         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40438         multiarch finite for PowerPC32.
40439         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40440         New file.
40441         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40442         file: multiarch finitef for PowerPC32.
40443
40444         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40445         and isinff multiarch implementations.
40446         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40447         file.
40448         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40449         file.
40450         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40451         multiarch isinf for PowerPC32.
40452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40453         New file.
40454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40455         multiarch isinff for PowerPC32.
40456
40457         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40458         alias when __isnan is defined.
40459         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40460         and isnanf multiarch implementations.
40461         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40462         file.
40463         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40464         file.
40465         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40466         file.
40467         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40468         file.
40469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40470         multiarch isnan for PowerPC32.
40471         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40472         New file.
40473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40474         New file.
40475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40476         multiarch isnanf for PowerPC32.
40477
40478         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40479         and sqrtf multiarch implementations.
40480         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40481         file.
40482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40483         file.
40484         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40485         multiarch sqrt for PowerPC32.
40486         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40487         file.
40488         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40489         file.
40490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40491         multiarch sqrtf for PowerPC32.
40492
40493         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40494         and llroundf multiarch implementations.
40495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40496         New file.
40497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40498         New file.
40499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40500         New file.
40501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40502         file: multiarch llround for PowerPC32.
40503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40504         file: multiarch llroundf for PowerPC32.
40505
40506         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40507         multiarch PowerPC32 fpu implementations.
40508         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40509         New file.
40510         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40511         New file.
40512         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40513         multiarch llrint for PowerPC32.
40514         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40515         New file.
40516         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40517         New file.
40518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40519         file.
40520
40521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40522
40523         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40524         file.
40525         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40526         file.
40527         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40528         file.
40529         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40530         multiarch wordcopy for PPC32.
40531         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40532         wordcopy objects.
40533         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40534         (__libc_ifunc_impl_list): Likewise.
40535         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40536         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40537         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40538         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40539         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40540         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40541
40542         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40543         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40544         file.
40545         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40546         file.
40547         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40548         file.
40549         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40550         multiarch wcscpy for PPC32.
40551         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40552         multiarch objects.
40553         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40554         (__libc_ifunc_impl_list): Likewise.
40555         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40556         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40557         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40558         sysdeps/powerpc/power6/wcscpy.c.
40559
40560         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40561         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40562         file.
40563         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40564         file.
40565         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40566         file.
40567         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40568         multiarch wcsrchr for PPC32.
40569         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40570         multiarch objects.
40571         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40572         (__libc_ifunc_impl_list): Likewise.
40573         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40574         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40575         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40576         sysdeps/powerpc/power6/wcsrchr.c.
40577
40578         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40579         file.
40580         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40581         file.
40582         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40583         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40584         multiarch wcschr for PPc32.
40585         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40586         multiarch objects.
40587         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40588         (__libc_ifunc_impl_list): Likewise.
40589         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40590         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40591         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40592         sysdeps/powerpc/power6/wcschr.c.
40593
40594         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40595         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40596         file.
40597         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40598         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40599         file: multiarch strchr for PPC32.
40600         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40601         multiarch objects.
40602         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40603         (__libc_ifunc_impl_list): Likewise.
40604
40605         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40606         name.
40607         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40608         file.
40609         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40610         file.
40611         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40612         multiarch strchrnul for PPC32.
40613         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40614         multiarch objects.
40615         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40616         (__libc_ifunc_impl_list): Likewise.
40617
40618         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40619         file.
40620         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40621         multiarch strncasecmp for PPC32.
40622         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40623         file.
40624         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40625         multiarch strncasecmp_l for PPC32.
40626         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40627         strncasecmp multiarch objects.
40628         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40629         (__libc_ifunc_impl_list): Likewise.
40630
40631         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40632         file.
40633         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40634         multiarch strncasecmp for PPC32.
40635         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40636         New file.
40637         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40638         multiarch strcasecmp_l for PPC32.
40639         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40640         multiarch objects.
40641         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40642         (__libc_ifunc_impl_list): Likewise.
40643
40644         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40645         file.
40646         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40647         file.
40648         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40649         multiarch strncmp for PPC32.
40650         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40651         multiarch objects.
40652         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40653         (__libc_ifunc_impl_list): Likewise.
40654
40655         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40656         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40657         file.
40658         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40659         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40660         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40661         multiarch objects.
40662         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40663         (__libc_ifunc_impl_list): Likewise.
40664
40665         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40666         file.
40667         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40668         file.
40669         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40670         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40671         multiarch objects.
40672         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40673         (__libc_ifunc_impl_list): Likewise.
40674
40675         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40676         file.
40677         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40678         file.
40679         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40680         multiarch rawmemchr for PPC32.
40681         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40682         multiarch objects.
40683         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40684         (__libc_ifunc_impl_list): Likewise.
40685
40686         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40687         file.
40688         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40689         file.
40690         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40691         file: memrchr multiarch for PPC32.
40692         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40693         multiarch objects.
40694         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40695         (__libc_ifunc_impl_list): Likewise.
40696
40697         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40698         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40699         file.
40700         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40701         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40702         multiarch memchr for PPC32.
40703         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40704         multiarch objects.
40705         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40706         (__libc_ifunc_impl_list): Likewise.
40707
40708         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40709         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40710         file.
40711         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40712         file.
40713         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40714         file: multiarch mempcpy for PPC32.
40715         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40716         multiarch objects.
40717         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40718         (__libc_ifunc_impl_list): Likewise.
40719
40720         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40721         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40722         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40723         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40724         multiarch bzero for PPC32.
40725         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40726         file.
40727         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40728         file.
40729         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40730         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40731         file: multiarch memset for PPC32.
40732         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40733         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40734         memset multiarch objects.
40735         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40736         (__libc_ifunc_impl_list): Likewise.
40737
40738         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40739         file.
40740         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40741         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40742         memcmp for PPC32.
40743         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40744         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40745         multiarch objects.
40746         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40747         (__libc_ifunc_impl_list): Likewise.
40748
40749         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40750         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40751         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40752         file.
40753         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40754         file.
40755         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40756         file.
40757         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40758         multiarch memcpy for PPC32.
40759         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40760         multiarch objects.
40761         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40762         (__libc_ifunc_impl_list): Likewise.
40763
40764         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40765         support multiarch for POWER/PPC32.
40766         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40767         Likewise.
40768         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40770         Implies file to make multiarch folder appers before the fpu and
40771         default folder for power4 configuration.
40772
40773 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40774
40775         * scripts/bench.pl: Append volatile keyword to type.
40776
40777 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40778
40779         * sysdeps/sh/sotruss-lib.c: New file.
40780         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40781
40782 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40783
40784         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40785
40786 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40787
40788         [BZ #6810]
40789         * math/w_tgamma.c: Include <errno.h>.
40790         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40791         * math/w_tgammaf.c: Include <errno.h>.
40792         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40793         * math/w_tgammal.c: Include <errno.h>.
40794         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40795         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40796         underflow.  Add more tgamma tests.
40797         * math/auto-libm-test-out: Regenerated.
40798         * sysdeps/i386/fpu/libm-test-ulps: Update.
40799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40800
40801         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40802         sin, sinh, tan, tanh, tgamma, y0 and y1.
40803         * math/auto-libm-test-out: Regenerated.
40804         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40805         (TEST_COND_x86): Likewise.
40806         (M_E2l): Remove macro.
40807         (M_E3l): Likewise.
40808         (M_2_SQRT_PIl): Likewise.
40809         (M_SQRT_PIl): Likewise.
40810         (M_1_DIV_El): Likewise.
40811         (log_test_data): Use AUTO_TESTS_f_f.
40812         (log10_test_data): Likewise.
40813         (log1p_test_data): Likewise.
40814         (log2_test_data): Likewise.
40815         (sin_test_data): Likewise.
40816         (sin_tonearest_test_data): Likewise.
40817         (sin_towardzero_test_data): Likewise.
40818         (sin_downward_test_data): Likewise.
40819         (sin_upward_test_data): Likewise.
40820         (sinh_test_data): Likewise.
40821         (sinh_tonearest_test_data): Likewise.
40822         (sinh_towardzero_test_data): Likewise.
40823         (sinh_downward_test_data): Likewise.
40824         (sinh_upward_test_data): Likewise.
40825         (tan_test_data): Likewise.
40826         (tan_tonearest_test_data): Likewise.
40827         (tan_towardzero_test_data): Likewise.
40828         (tan_downward_test_data): Likewise.
40829         (tan_upward_test_data): Likewise.
40830         (tanh_test_data): Likewise.
40831         (tgamma_test_data): Likewise.
40832         (y0_test_data): Likewise.
40833         (y1_test_data): Likewise.
40834         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40835         (special_real_inputs): Add pi/4.
40836         * sysdeps/i386/fpu/libm-test-ulps: Update.
40837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40838
40839 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40840
40841         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40842         "longjmp_target" static probes.
40843         (__longjmp): Rename to __longjmp_symbol.
40844         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40845         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40846         on which longjmp to generate.
40847         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40848         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40849         probe.
40850         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40851         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40852         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40853         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40854         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40855         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40857         __longjmp_symbol based on which __longjmp to generate.
40858         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40859         probe.
40860         (setjmp): Rename to setjmp_symbol.
40861         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40862         (_setjmp): Rename to _setjmp_symbol.
40863         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40864         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40865         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40866         which setjmp to generate.
40867         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40868         "longjmp_target" static probes.
40869
40870 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40871
40872         * benchtests/README: Add note about output arguments.
40873         * benchtests/bench-sincos.c: Remove file.
40874         * benchtests/sincos-inputs: New file.
40875         * scripts/bench.pl: Identify output arguments and define
40876         static variables for them.
40877
40878         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40879
40880         [BZ #15941]
40881         * Makefile (INSTALL): Add install-plain.texi as the primary
40882         dependency.
40883         * manual/install-plain.texi: New file.
40884         * manual/install.texi: Include node directive only for
40885         non-plaintext output.
40886
40887 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40888
40889         * stdlib/longlong.h: Update from GCC.
40890
40891         [BZ #6807]
40892         [BZ #15901]
40893         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40894         * math/w_j0f.c (y0f): Likewise.
40895         * math/w_j0l.c (__y0l): Likewise.
40896         * math/w_j1.c (y1): Likewise.
40897         * math/w_j1f.c (y1f): Likewise.
40898         * math/w_j1l.c (__y1l): Likewise.
40899         * math/w_jn.c (yn): Likewise.
40900         * math/w_jnf.c (ynf): Likewise.
40901         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40902         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40903         value for Bessel function domain errors outside _SVID_ mode.
40904         Adjust sign of return value for yn (negative integer, 0).
40905         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40906         by zero in return for negative x and set sign appropriately for
40907         negative n.
40908         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40909         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40910         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40911         expectations in error cases.
40912         (y1_test_data): Likewise.
40913         (yn_test_data): Likewise.
40914         * sysdeps/i386/fpu/libm-test-ulps: Update.
40915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40916
40917 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40918
40919         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40920         "64" to "64-v1".  Add "64-v2".
40921         (abi-64-options): Rename to ...
40922         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40923         (abi-64-condition): Rename to ...
40924         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40925         (abi-64-ld-soname): Rename to ...
40926         (abi-64-v1-ld-soname): ... this.
40927         (abi-64-v2-options): Define.
40928         (abi-64-v2-condition): Likewise.
40929         (abi-64-v2-ld-soname): Likewise.
40930         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40931         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40935
40936 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40937             Alan Modra  <amodra@gmail.com>
40938
40939         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40940         New versions for use with the ELFv2 ABI.
40941         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40942         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40943         declaration.
40944         (struct La_ppc64v2_retval): Likewise.
40945         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40946         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40947         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40948         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40949         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40950         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40951         Do not save or restore CR.
40952         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40953         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40954         return values for ELFv2 ABI.  Fix location of FPR return registers.
40955         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40956         updated values for _CALL_ELF == 2.
40957         (La_regs, La_retval, int_retval): Likewise.
40958
40959 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40960
40961         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40962         (FRAME_MIN_SIZE_PARM): Likewise.
40963         (FRAME_BACKCHAIN): Likewise.
40964         (FRAME_CR_SAVE): Likewise.
40965         (FRAME_LR_SAVE): Likewise.
40966         (FRAME_TOC_SAVE): Likewise.
40967         (FRAME_PARM_SAVE): Likewise.
40968         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40969         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40970         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40971         (call_mcount_parm_offset): New macro.
40972         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40973         (PROF): Use symbolic stack frame offsets.
40974         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40975         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40976         Redefine in terms of FRAME_MIN_SIZE.
40977         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40978         (_dl_profile_resolve): Likewise.  Update comment.
40979         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40980         symbols stack frame offsets.
40981         (__sigsetjmp): Likewise.
40982         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40983         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40984         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40985         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40986
40987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40988         (FRAME_BACKCHAIN): Remove.
40989         (FRAME_CR_SAVE): Likewise.
40990         (FRAME_LR_SAVE): Likewise.
40991         (FRAME_COMPILER_DW): Likewise.
40992         (FRAME_LINKER_DW): Likewise.
40993         (FRAME_TOC_SAVE): Likewise.
40994         (FRAME_PARM_SAVE): Likewise.
40995         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40996         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40997         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40999         (CHECK_SP): Use symbolic stack frame offsets.
41000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41001         zone" instead of caller's parameter save area for temp storage.
41002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41003         Likewise.  Also, use symbolic stack frame offsets.
41004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41005         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41006         our own stack frame instead of the caller's.
41007         (__socket): Use symbolic stack frame offsets.
41008
41009 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41010             Alan Modra  <amodra@gmail.com>
41011
41012         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41013         Define.
41014         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41015         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41016         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41017         New function.
41018         (elf_machine_fixup_plt): Call it.
41019         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41020         reloc arguments.
41021         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41022         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41023         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41024         r2 before calling target.
41025
41026 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41027             Alan Modra  <amodra@gmail.com>
41028
41029         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41030         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41031         versions of macros to support ELFv2 ABI.
41032         (LOCALENTRY): New macro.
41033         (ENTRY, EALIGN): Use it.
41034         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41035         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41036         fall through into ENTRY entry point.
41037         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41038         Only define if _CALL_ELF != 2.
41039
41040         (elf_machine_matches_host): Verify ABI version matches.
41041         (RTLD_START): Use LOCALENTRY.
41042         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41043         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41044         (PLT_ENTRY_WORDS): New macro.
41045         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41046         (elf_machine_runtime_setup): Support ELFv2 ABI.
41047         (elf_machine_fixup_plt): Likewise.
41048         (elf_machine_plt_conflict): Likewise.
41049         (resolve_ifunc): Likewise.
41050         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41051         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41052         Likewise.
41053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41054         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41056         (makecontext): Support ELFv2 ABI.
41057         * elf/elf.h (EF_PPC64_ABI): Define.
41058
41059 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41060
41061         * sysdeps/powerpc/powerpc64/sysdep.h
41062         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41063         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41064         (ENTRY) [ASSEMBLER]: ... but instead here ...
41065         (EALIGN) [ASSEMBLER]: ... and here.
41066         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41067         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41068         (ENTRY_2) [!ASSEMBLER]: Use it.
41069         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41070         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41071         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41072         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41073         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41075         Use PPC64_LOAD_FUNCPTR.
41076
41077         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41078
41079 2013-12-04  Alan Modra  <amodra@gmail.com>
41080
41081         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41082         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41083         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41084         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41085
41086         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41087         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41088         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41089         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41090         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41091         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41092
41093 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41094
41095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41096         (__makecontext): Fix incorrect CFI when backtracing out of
41097         context created via makecontext.
41098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41099         (__setcontext): Fix incorrect CFI during switch to new context.
41100         (__novec_setcontext): Likewise.
41101
41102 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41103
41104         [BZ #4772]
41105         * time/strptime_l.c (__strptime_internal): Allow modifiers
41106         in strptime.
41107         * time/tst-strptime.c (day_tests): Add testcase.
41108
41109 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41110
41111         * scripts/bench.pl: Skip over blank lines.
41112
41113 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41114
41115         [BZ #926]
41116         * manual/time.texi (Calendar Time): Clarify what timezone functions
41117         use.
41118
41119 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41120
41121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41122
41123 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41124
41125         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41126         implementation.
41127         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41128         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41129         * debug/memset_chk.c (__memset_chk): Likewise.
41130         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41131         * debug/strncpy_chk.c: Likewise.
41132
41133 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41134
41135         [BZ #15268]
41136         [BZ #15425]
41137         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41138         (__ieee754_exp): For possibly underflowing results, check size of
41139         result and force underflow exception if required.
41140         * math/auto-libm-test-in: Add more tests of exp.
41141         * math/auto-libm-test-out: Regenerated.
41142         * sysdeps/i386/fpu/libm-test-ulps: Update.
41143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41144
41145         [BZ #16283]
41146         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41147         * math/w_exp2f.c (__exp2f): Likewise.
41148         * math/w_exp2l.c (__exp2l): Likewise.
41149         * math/auto-libm-test-in: Do not allow missing errno on exp2
41150         underflow.
41151         * math/auto-libm-test-out: Regenerated.
41152
41153 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41154
41155         [BZ #16274]
41156         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41157         handle filename validation.
41158         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41159         (do_open): Delete.
41160
41161 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41162
41163         [BZ #6786]
41164         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41165         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41166         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41167         <float.h>.
41168         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41169         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41170         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41171         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41172         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41173         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41174         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41175         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41176         Add more erfc tests.
41177         * math/auto-libm-test-out: Regenerated.
41178         * sysdeps/i386/fpu/libm-test-ulps: Update.
41179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41180
41181         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41182         exp2, expm1, j0 and j1.
41183         * math/auto-libm-test-out: Regenerated.
41184         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41185         (erfc_test_data): Likewise.
41186         (exp_test_data): Likewise.
41187         (exp_tonearest_test_data): Likewise.
41188         (exp_towardzero_test_data): Likewise.
41189         (exp_downward_test_data): Likewise.
41190         (exp_upward_test_data): Likewise.
41191         (exp10_test_data): Likewise.
41192         (exp2_test_data): Likewise.
41193         (expm1_test_data): Likewise.
41194         (j0_test_data): Likewise.
41195         (j1_test_data): Likewise.
41196         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41197         (input_flag_type): Add flag_xfail_rounding.
41198         (input_flags): Add xfail-rounding.
41199         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41200         (output_for_one_input_case): Handle flag_xfail_rounding.
41201         * sysdeps/i386/fpu/libm-test-ulps: Update.
41202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41203
41204 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41205
41206         [BZ #16289]
41207         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41208         division by 0.
41209
41210 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41211
41212         [BZ #16195]
41213         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41214         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41215         (STAP_PROBE0): New macro.
41216         (STAP_PROBE1): Likewise.
41217         (STAP_PROBE2): Likewise.
41218         (STAP_PROBE3): Likewise.
41219         (STAP_PROBE4): Likewise.
41220
41221 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41222
41223         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41224
41225 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41226
41227         * benchtests/Makefile (bench): Add sqrt.
41228         (LDLIBS-bench-sqrt): New.
41229         * benchtests/sqrt-input: New.
41230
41231 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41232
41233         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41234         (GAIH_EAI): Likewise.
41235         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41236         (gaih_inet): Likewise.
41237         (getaddrinfo): Don't use GAIH_EAI.
41238
41239         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41240         (struct gaih): Remove definition.
41241
41242 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41243
41244         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41245         Use HERRNOP directly.
41246
41247 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41248
41249         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41250
41251 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41252
41253         * math/gen-auto-libm-tests.c (test_functions): Add more
41254         single-argument functions.
41255         (special_fill_pi_2): New function.
41256         (special_fill_minus_pi_2): Likewise.
41257         (special_fill_pi_6): Likewise.
41258         (special_fill_minus_pi_6): Likewise.
41259         (special_fill_pi_3): Likewise.
41260         (special_fill_2pi_3): Likewise.
41261         (special_fill_e): Likewise.
41262         (special_fill_1_e): Likewise.
41263         (special_fill_e_minus_1): Likewise.
41264         (special_real_inputs): Add more special inputs.
41265         (output_for_one_input_case): Do not require ERANGE on underflow to
41266         zero if round-to-nearest result does not underflow to zero, unless
41267         exact results required.
41268         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41269         atan, atanh, cbrt, cos and cosh.
41270         * math/auto-libm-test-out: Regenerated.
41271         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41272         (acos_tonearest_test_data): Likewise.
41273         (acos_towardzero_test_data): Likewise.
41274         (acos_downward_test_data): Likewise.
41275         (acos_upward_test_data): Likewise.
41276         (acosh_test_data): Likewise.
41277         (asin_test_data): Likewise.
41278         (asin_tonearest_test_data): Likewise.
41279         (asin_towardzero_test_data): Likewise.
41280         (asin_upward_test_data): Likewise.
41281         (asinh_test_data): Likewise.
41282         (atan_test_data): Likewise.
41283         (atanh_test_data): Likewise.
41284         (cbrt_test_data): Likewise.
41285         (cos_test_data): Likewise.
41286         (cos_tonearest_test_data): Likewise.
41287         (cos_towardzero_test_data): Likewise.
41288         (cos_downward_test_data): Likewise.
41289         (cos_upward_test_data): Likewise.
41290         (cosh_test_data): Likewise.
41291         (cosh_tonearest_test_data): Likewise.
41292         (cosh_towardzero_test_data): Likewise.
41293         (cosh_downward_test_data): Likewise.
41294         (cosh_upward_test_data): Likewise.
41295         * sysdeps/i386/fpu/libm-test-ulps: Update.
41296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41297
41298 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41299
41300         [BZ #6787]
41301         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41302         * math/w_exp10f.c (__exp10f): Likewise.
41303         * math/w_exp10l.c (__exp10l): Likewise.
41304         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41305         errno settings in existing tests.
41306
41307         [BZ #14032]
41308         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41309         precision control set to double precision.
41310         * sysdeps/i386/fpu/w_sqrt.c: New file.
41311         * math/auto-libm-test-in: Add more tests.
41312         * math/auto-libm-test-out: Update.
41313
41314         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41315         (sqrt_test_tonearest): New function.
41316         (sqrt_towardzero_test_data): New variable.
41317         (sqrt_test_towardzero): New function.
41318         (sqrt_downward_test_data): New variable.
41319         (sqrt_test_downward): New function.
41320         (sqrt_upward_test_data): New variable.
41321         (sqrt_test_upward): New function.
41322         (main): Call the new functions.
41323
41324         * math/gen-auto-libm-tests.c: New file.
41325         * math/auto-libm-test-in: Likewise.
41326         * math/auto-libm-test-out: New generated file.
41327         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41328         variables.
41329         (%beautify): Add generated representations of zero.
41330         (top level): Set $auto_input and call parse_auto_input.
41331         (beautify): Remove trailing "f" from hex float constants.
41332         (parse_args): Handle XFAIL_TEST.
41333         (convert_condition): New function.
41334         (or_value): Likewise.
41335         (or_cond_value): Likewise.
41336         (generate_testfile): Handle AUTO_TESTS_* lines.
41337         (parse_auto_input): New function.
41338         * math/libm-test.inc (XFAIL_TEST): New macro.
41339         (ERRNO_UNCHANGED): Update value.
41340         (ERRNO_EDOM): Likewise.
41341         (ERRNO_ERANGE): Likewise.
41342         (IGNORE_RESULT): Likewise.
41343         (TEST_COND_flt_32): New macro.
41344         (TEST_COND_dbl_64): Likewise.
41345         (TEST_COND_ldbl_96_intel): Likewise.
41346         (TEST_COND_ldbl_96_m68k): Likewise.
41347         (TEST_COND_ldbl_128): Likewise.
41348         (TEST_COND_ldbl_128ibm): Likewise.
41349         (TEST_COND_long32): Likewise.
41350         (TEST_COND_long64): Likewise.
41351         (TEST_COND_before_rounding): Likewise.
41352         (TEST_COND_after_rounding): Likewise.
41353         (enable_test): Handle XFAIL_TEST flag.
41354         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41355         with finite results.
41356         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41357         auto-libm-test-out.
41358
41359 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41360             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41361
41362         [BZ #16214]
41363         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41364         __tls_get_addr_internal instead of __tls_get_offset in order to
41365         avoid GOT pointer dependency.  Make rtld export
41366         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41367         __tls_get_addr since we are a __tls_get_offset platform.
41368         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41369         GOT pointer being set up before.
41370         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41371
41372 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41373
41374         * manual/math.texi (Errors in Math Functions): Document accuracy
41375         goals.
41376
41377         [BZ #15004]
41378         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41379         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41380         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41381         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41382         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41383         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41384         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41385         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41386         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41387         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41388         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41389         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41390         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41391         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41392         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41393         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41394
41395         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41396         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41397         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41398         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41399         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41400         Likewise.
41401         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41402         Likewise.
41403         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41404         Likewise.
41405         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41406         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41407         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41408         atomic-feupdateenv and flt-rounds.
41409         * sysdeps/powerpc/nofpu/Versions (libc): Add
41410         __atomic_feholdexcept, __atomic_feclearexcept,
41411         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41412         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41413         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41414         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41415         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41416         here.
41417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41418         Update.
41419
41420         * manual/arith.texi (FP Exceptions): Document that exceptions may
41421         not be raised when matherr is used.
41422         (Math Error Reporting): Document overflow in directed rounding
41423         modes.  Document that errno may not be set when finite values are
41424         returned on overflow.  Document intent to set errno on underflow
41425         only for underflow to zero.
41426
41427         [BZ #16271]
41428         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41429         round-to-nearest then adjust result for other rounding modes.
41430         * include/fenv.h (fegetround): Use libm_hidden_proto.
41431         * math/fegetround.c (fegetround): Use libm_hidden_def.
41432         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41433         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41434         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41435         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41436         Likewise.
41437         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41438         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41439         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41440         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41441
41442 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41443
41444         [BZ #16077]
41445         * nss/Versions (libnss_files): Add
41446         _nss_files_gethostbyname3_r.
41447         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41448         New function.
41449         (HOST_DB_LOOKUP): Remove macro.
41450         (_nss_files_gethostbyname_r): Implement function without the
41451         HOST_DB_LOOKUP macro.
41452         (_nss_files_gethostbyname2_r): Likewise.
41453
41454 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41455
41456         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41457
41458 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41459
41460         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41461         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41462         warning.
41463
41464 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41465
41466         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41467         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41468         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41469         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41470         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41471         __fe_nomask_env_priv and attribute_hidden.
41472         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41473         (libc_feupdateenv_test_ppc): Likewise.
41474         (libc_feresetround_ppc): Likewise.
41475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41476         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41477         compat_symbol macro.
41478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41479         (__fe_nomask_env): Likewise.
41480         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41481
41482 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41483
41484         * string/Makefile: Remove ifunc tests.
41485         * string/test-string.h: Define TEST_IFUNC.
41486         * string/test-bcopy-ifunc.c: Remove.
41487         * string/test-bzero-ifunc.c: Likewise.
41488         * string/test-memccpy-ifunc.c: Likewise.
41489         * string/test-memchr-ifunc.c: Likewise.
41490         * string/test-memcmp-ifunc.c: Likewise.
41491         * string/test-memcpy-ifunc.c: Likewise.
41492         * string/test-memmem-ifunc.c: Likewise.
41493         * string/test-memmove-ifunc.c: Likewise.
41494         * string/test-mempcpy-ifunc.c: Likewise.
41495         * string/test-memrchr-ifunc.c: Likewise.
41496         * string/test-memset-ifunc.c: Likewise.
41497         * string/test-rawmemchr-ifunc.c: Likewise.
41498         * string/test-stpcpy-ifunc.c: Likewise.
41499         * string/test-stpncpy-ifunc.c: Likewise.
41500         * string/test-strcasecmp-ifunc.c: Likewise.
41501         * string/test-strcasestr-ifunc.c: Likewise.
41502         * string/test-strcat-ifunc.c: Likewise.
41503         * string/test-strchr-ifunc.c: Likewise.
41504         * string/test-strchrnul-ifunc.c: Likewise.
41505         * string/test-strcmp-ifunc.c: Likewise.
41506         * string/test-strcpy-ifunc.c: Likewise.
41507         * string/test-strcspn-ifunc.c: Likewise.
41508         * string/test-strlen-ifunc.c: Likewise.
41509         * string/test-strncasecmp-ifunc.c: Likewise.
41510         * string/test-strncat-ifunc.c: Likewise.
41511         * string/test-strncmp-ifunc.c: Likewise.
41512         * string/test-strncpy-ifunc.c: Likewise.
41513         * string/test-strnlen-ifunc.c: Likewise.
41514         * string/test-strpbrk-ifunc.c: Likewise.
41515         * string/test-strrchr-ifunc.c: Likewise.
41516         * string/test-strspn-ifunc.c: Likewise.
41517         * string/test-strstr-ifunc.c: Likewise.
41518
41519 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41520
41521         * benchtests/Makefile: Remove ifunc tests.
41522         * benchtests/bench-string.h: Define TEST_IFUNC.
41523         * benchtests/bench-bcopy-ifunc.c: Remove.
41524         * benchtests/bench-bzero-ifunc.c: Likewise.
41525         * benchtests/bench-memccpy-ifunc.c: Likewise.
41526         * benchtests/bench-memchr-ifunc.c: Likewise.
41527         * benchtests/bench-memcmp-ifunc.c: Likewise.
41528         * benchtests/bench-memcpy-ifunc.c: Likewise.
41529         * benchtests/bench-memmem-ifunc.c: Likewise.
41530         * benchtests/bench-memmove-ifunc.c: Likewise.
41531         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41532         * benchtests/bench-memrchr-ifunc.c: Likewise.
41533         * benchtests/bench-memset-ifunc.c: Likewise.
41534         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41535         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41536         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41537         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41538         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41539         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41540         * benchtests/bench-strcat-ifunc.c: Likewise.
41541         * benchtests/bench-strchr-ifunc.c: Likewise.
41542         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41543         * benchtests/bench-strcmp-ifunc.c: Likewise.
41544         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41545         * benchtests/bench-strcpy-ifunc.c: Likewise.
41546         * benchtests/bench-strcspn-ifunc.c: Likewise.
41547         * benchtests/bench-strlen-ifunc.c: Likewise.
41548         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41549         * benchtests/bench-strncat-ifunc.c: Likewise.
41550         * benchtests/bench-strncmp-ifunc.c: Likewise.
41551         * benchtests/bench-strncpy-ifunc.c: Likewise.
41552         * benchtests/bench-strnlen-ifunc.c: Likewise.
41553         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41554         * benchtests/bench-strrchr-ifunc.c: Likewise.
41555         * benchtests/bench-strsep-ifunc.c: Likewise.
41556         * benchtests/bench-strspn-ifunc.c: Likewise.
41557         * benchtests/bench-strstr-ifunc.c: Likewise.
41558
41559 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41560
41561         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41562
41563 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41564
41565         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41566         * rt/aio.h: Likewise.
41567         * sysdeps/gnu/bits/utmp.h: Likewise.
41568         * sysdeps/gnu/bits/utmpx.h: Likewise.
41569         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41570         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41571         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41572         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41573         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41574         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41575         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41576         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41577         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41578         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41579         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41580         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41581         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41583         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41584         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41585         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41586         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41587         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41588         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41589         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41590         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41591         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41592         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41593         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41594         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41595         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41596         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41597         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41598         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41599         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41600         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41601         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41602         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41603         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41604         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41605         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41606         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41607         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41608         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41609         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41610         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41611
41612 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41613
41614         [BZ #16245]
41615         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41616         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41617
41618 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41619
41620         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41621         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41622         Likewise.
41623
41624 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41625
41626         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41627         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41628         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41629         (__fesetround): Remove define.
41630         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41631         rounding and exceptions handling.
41632         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41633         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41634         (__fe_nomask_env): Likewise.
41635         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41636         __fegetround instead of fegetround.
41637         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41638         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41639
41640 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41641
41642         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41643         it's there.
41644
41645         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41646
41647 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41648
41649         [BZ #11157]
41650         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41651         (encrypt_r): Likewise.
41652         * malloc/obstack.h (obstack_free): Likewise.
41653         * posix/unistd.h (encrypt): Likewise.
41654
41655 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41656
41657         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41658         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41659         DL_CALL_DT_FINI() that call the functions directly.
41660         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41661         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41662         * elf/dl-fini.c: Likewise.
41663
41664 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41665
41666         * malloc/hooks.c (memalign_check): Add alignment rounding.
41667         * malloc/malloc.c (_mid_memalign): New function.
41668         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41669         Implement by calling _mid_memalign.
41670         * manual/probes.texi (Memory Allocation Probes): Remove
41671         memory_valloc_retry and memory_pvalloc_retry.
41672
41673 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41674
41675         * locale/programs/locarchive.c (open_archive): Add const
41676         qualifier to ARCHIVEFNAME and copy default fname to
41677         DEFAULT_FNAME.
41678
41679         [BZ #15601]
41680         * libio/tst-widetext.input: Rename Oriya to Odia.
41681         * locale/iso-639.def: Likewise.
41682
41683         * manual/probes.texi (Mathematical Function Probes): Add
41684         documentation for sin, cos, asin and acos probes.
41685         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41686         (__sin32): Add slowasin probe.
41687         (__cos32): Add slowacos probe.
41688         (__mpsin): Add slowsin probe.
41689         (__mpcos): Add slowcos probe.
41690
41691 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41692
41693         [BZ #15483]
41694         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41695         thread-local __sim_exceptions_thread and global
41696         __sim_exceptions_global.
41697         (__sim_disabled_exceptions): Change to thread-local
41698         __sim_disabled_exceptions_thread and global
41699         __sim_disabled_exceptions_global.
41700         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41701         and global __sim_round_mode_global.
41702         (__simulate_exceptions): Use thread-local floating-point state and
41703         set global state from it as needed.
41704         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41705         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41706         __sim_round_mode_thread.
41707         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41708         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41709         and global __sim_exceptions_global.
41710         (__sim_disabled_exceptions): Change to thread-local
41711         __sim_disabled_exceptions_thread and global
41712         __sim_disabled_exceptions_global.
41713         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41714         and global __sim_round_mode_global.
41715         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41716         (SIM_SET_GLOBAL): Likewise.
41717         * sysdeps/powerpc/soft-fp/sfp-machine.h
41718         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41719         __sim_round_mode_thread.
41720         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41721         __sim_disabled_exceptions_thread.
41722         (__sim_exceptions): Change to __sim_exceptions_thread.
41723         (__sim_disabled_exceptions): Change to
41724         __sim_disabled_exceptions_thread.
41725         (__sim_round_mode): Change to __sim_round_mode_thread.
41726         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41727         thread-local floating-point state and set global state from it as
41728         needed.
41729         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41730         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41731         (__sim_disabled_exceptions): Remove extern declaration.
41732         (feenableexcept): Use thread-local floating-point state and set
41733         global state from it as needed.
41734         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41735         extern declaration.
41736         (__sim_disabled_exceptions): Likewise.
41737         (__sim_round_mode): Likewise.
41738         (__fegetenv): Use thread-local floating-point state.
41739         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41740         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41741         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41742         floating-point state and set global state from it as needed.
41743         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41744         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41745         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41746         Likewise.
41747         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41748         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41749         Likewise.
41750         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41751         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41752         Use __sim_round_mode_thread.
41753         * math/test-fenv-tls.c: New file.
41754         * math/Makefile (tests): Add test-fenv-tls.
41755         ($(objpfx)test-fenv-tls): Depend on
41756         $(common-objpfx)nptl/libpthread.so.
41757
41758 2013-11-19  Andreas Schwab  <schwab@suse.de>
41759
41760         * locale/programs/locale.c (show_info): Decode wordarray elements.
41761         * locale/categories.def (LC_MONETARY): Add element for
41762         _NL_MONETARY_CRNCYSTR.
41763         * locale/C-monetary.c (conversion_rate): New variable.
41764         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41765         element.
41766
41767 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41768
41769         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41770         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41771
41772 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41773
41774         * elf/Makefile (tst-auxv): New test.
41775         * elf/tst-auxv.c: New
41776         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41777
41778 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41779
41780         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41781         (hidden_proto): Caller changed.
41782         (hidden_tls_proto): New macro.
41783         (libc_hidden_tls_proto): Likewise.
41784         (rtld_hidden_tls_proto): Likewise.
41785         (libm_hidden_tls_proto): Likewise.
41786         (libresolv_hidden_tls_proto): Likewise.
41787         (librt_hidden_tls_proto): Likewise.
41788         (libdl_hidden_tls_proto): Likewise.
41789         (libnss_files_hidden_tls_proto): Likewise.
41790         (libnsl_hidden_tls_proto): Likewise.
41791         (libnss_nisplus_hidden_tls_proto): Likewise.
41792         (libutil_hidden_tls_proto): Likewise.
41793
41794 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41795
41796         [BZ #10253]
41797         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41798         (decompose_rpath): Defer expansion to fillin_rpath.
41799         (_dl_init_paths): Pass linkmap to fillin_rpath.
41800
41801 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41802
41803         * benchtests/Makefile: Add strsep.
41804         * benchtests/bench-strsep.c: New file: strsep benchtest.
41805         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41806
41807 2013-11-18  Andreas Schwab  <schwab@suse.de>
41808
41809         * locale/programs/locale.c (show_info) [case byte]: Check for
41810         '\377' instead of '\177'.
41811         * locale/C-monetary.c (not_available): Always use "\377".
41812         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41813         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41814         detect unavailable sign_posn locale elements.
41815         * locale/localeconv.c (__localeconv): For grouping and
41816         mon_grouping handle "\177" and "\377" like no grouping.
41817         (INT_ELEM): New macro.  Use it to set all numeric members.
41818         * locale/programs/ld-monetary.c (monetary_read)
41819         <tok_mon_grouping>: Normalize single -1 to the empty string.
41820         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41821         Likewise.
41822
41823 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41824
41825         [BZ #16055]
41826         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41827         when we match (nil).
41828         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41829
41830 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41831
41832         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41833         (NO_TEST_INLINE): Update value.
41834         (ERRNO_UNCHANGED): Likewise.
41835         (ERRNO_EDOM): Likewise.
41836         (ERRNO_ERANGE): Likewise.
41837         (IGNORE_RESULT): Likewise.
41838         (check_float_internal): Check signs of NaN results if
41839         TEST_NAN_SIGN used.
41840         (check_complex): Pass TEST_NAN_SIGN flag through to second
41841         check_float_internal call.
41842         (copysign_test_data): Add tests with quiet NaNs as second
41843         argument.  Use TEST_NAN_SIGN.
41844         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41845         TEST_NAN_SIGN.
41846         (signbit_test_data): Add tests of quiet NaN argument.
41847         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41848
41849         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41850         $ignore_result.
41851         (parse_args): Handle function results specified as IGNORE.
41852         * math/libm-test.inc (IGNORE_RESULT): New macro.
41853         (check_float_internal): Do not check numerical result if flag
41854         IGNORE_RESULT set.
41855         (check_complex): Pass through IGNORE_RESULT to second
41856         check_float_internal call.
41857         (check_int): Do not check numerical result if flag IGNORE_RESULT
41858         set.
41859         (check_long): Likewise.
41860         (check_bool): Likewise.
41861         (check_longlong): Likewise.
41862         (lrint_test_data): Add tests of infinite and NaN arguments.
41863         (lrint_tonearest_test_data): Likewise.
41864         (lrint_towardzero_test_data): Likewise.
41865         (lrint_downward_test_data): Likewise.
41866         (lrint_upward_test_data): Likewise.
41867         (llrint_test_data): Likewise.
41868         (llrint_tonearest_test_data): Likewise.
41869         (llrint_towardzero_test_data): Likewise.
41870         (llrint_downward_test_data): Likewise.
41871         (llrint_upward_test_data): Likewise.
41872         (lround_test_data): Likewise.
41873         (llround_test_data): Likewise.
41874
41875         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41876         (ERRNO_UNCHANGED): Update value.
41877         (ERRNO_EDOM): Likewise.
41878         (ERRNO_ERANGE): Likewise.
41879         (NO_TEST_INLINE_FLOAT): New macro.
41880         (NO_TEST_INLINE_DOUBLE): Likewise.
41881         (enable_test): New function.
41882         (RUN_TEST_f_f): Check enable_test before running test.
41883         (RUN_TEST_2_f): Likewise.
41884         (RUN_TEST_fff_f): Likewise.
41885         (RUN_TEST_c_f): Likewise.
41886         (RUN_TEST_f_f1): Likewise.
41887         (RUN_TEST_fF_f1): Likewise.
41888         (RUN_TEST_fI_f1): Likewise.
41889         (RUN_TEST_ffI_f1): Likewise.
41890         (RUN_TEST_c_c): Likewise.
41891         (RUN_TEST_cc_c): Likewise.
41892         (RUN_TEST_f_i): Likewise.
41893         (RUN_TEST_f_i_tg): Likewise.
41894         (RUN_TEST_ff_i_tg): Likewise.
41895         (RUN_TEST_f_b): Likewise.
41896         (RUN_TEST_f_b_tg): Likewise.
41897         (RUN_TEST_f_l): Likewise.
41898         (RUN_TEST_f_L): Likewise.
41899         (RUN_TEST_fFF_11): Likewise.
41900         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41901         conditionals.
41902         (cosh_test_data): Likewise.
41903         (exp_test_data): Likewise.
41904         (expm1_test_data): Likewise.
41905         (hypot_test_data): Likewise.
41906         (pow_test_data): Likewise.
41907         (sinh_test_data): Likewise.
41908         (tanh_test_data): Likewise.
41909         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41910         flags argument.
41911
41912         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41913         tests with quiet NaN input and output.
41914         (acosh_test_data): Likewise.
41915         (asin_test_data): Likewise.
41916         (asinh_test_data): Likewise.
41917         (atan_test_data): Likewise.
41918         (atanh_test_data): Likewise.
41919         (atan2_test_data): Likewise.
41920         (cbrt_test_data): Likewise.
41921         (cos_test_data): Likewise.
41922         (cosh_test_data): Likewise.
41923         (erf_test_data): Likewise.
41924         (erfc_test_data): Likewise.
41925         (exp_test_data): Likewise.
41926         (exp10_test_data): Likewise.
41927         (exp2_test_data): Likewise.
41928         (expm1_test_data): Likewise.
41929         (hypot_test_data): Likewise.
41930         (j0_test_data): Likewise.
41931         (j1_test_data): Likewise.
41932         (jn_test_data): Likewise.
41933         (lgamma_test_data): Likewise.
41934         (log_test_data): Likewise.
41935         (log10_test_data): Likewise.
41936         (log1p_test_data): Likewise.
41937         (log2_test_data): Likewise.
41938         (pow_test_data): Likewise.
41939         (scalb_test_data): Likewise.
41940         (sin_test_data): Likewise.
41941         (sincos_test_data): Likewise.
41942         (sinh_test_data): Likewise.
41943         (tan_test_data): Likewise.
41944         (tanh_test_data): Likewise.
41945         (tgamma_test_data): Likewise.
41946         (y0_test_data): Likewise.
41947         (y1_test_data): Likewise.
41948         (yn_test_data): Likewise.
41949
41950         [BZ #16167]
41951         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41952         argument being NaN and avoid computations with second argument in
41953         that case.
41954         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41955         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41956         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41957
41958 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41959
41960         * locale/iso-639.def: Add Chitwani Tharu (the).
41961
41962 2013-11-14  Andreas Schwab  <schwab@suse.de>
41963
41964         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41965         word instead of empty string.
41966
41967 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41968
41969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41970         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41972         (__fe_nomask_env): Likewise.
41973
41974 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41975
41976         * benchtests/bench-timing.h: Include time.h.
41977
41978 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41979
41980         [BZ #15997]
41981         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41982         to 3.4.0 for x32.
41983         * sysdeps/unix/sysv/linux/configure: Regenerated.
41984
41985 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41986
41987         [BZ #16151]
41988         * stdlib/strtod_l.c (round_and_return): Do not consider
41989         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41990         exponent one less than half the least subnormal exponent.
41991         * stdlib/test-strtod-round-data: Add more tests.
41992         * stdlib/tst-strtod-round.c (tests): Regenerated.
41993
41994 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41995
41996         [BZ #14143]
41997         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41998         (__fe_mask_env): Likewise.
41999         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42000         libm_hidden_proto and add function prototype.
42001         (__fe_mask_env): Add function prototype.
42002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42003         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42005         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42007         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42008
42009 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42010
42011         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42012         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42013
42014 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42015
42016         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42017         of htab_find_slot().
42018
42019 2013-11-11  David S. Miller  <davem@davemloft.net>
42020
42021         [BZ #16150]
42022         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42023         symbol in the non-vis3 case in static builds.
42024         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42025         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42026         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42027         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42028
42029 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42030
42031         [BZ #387]
42032         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42033         it is empty.
42034
42035 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42036
42037         * benchtests/Makefile: Add bench-strtod.
42038         * benchtests/bench-strtod.c: New file: strtod benchtest
42039
42040 2013-11-11  Andreas Schwab  <schwab@suse.de>
42041
42042         [BZ #16153]
42043         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42044         terminating NUL in key length.
42045
42046 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42047
42048         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42049         Add artificial ODP entry for vDSO symbol for PPC64.
42050         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42051         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42052
42053 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42054
42055         [BZ #15374]
42056         * nss/getent.c (services_keys): Recognize services starting with digit.
42057
42058 2013-11-06  David S. Miller  <davem@davemloft.net>
42059
42060         [BZ #15985]
42061         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42062         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42063
42064 2013-11-06  Will Newton  <will.newton@linaro.org>
42065
42066         * manual/memory.texi (Malloc Examples): Remove register
42067         keyword from examples.
42068
42069 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42070
42071         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42072
42073 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42074
42075         [BZ #6981]
42076         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42077         depending on [__GCC_IEC_559 > 0].
42078         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42079         depending on [__GCC_IEC_559_COMPLEX > 0].
42080
42081 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42082
42083         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42084         to iso-639.def.
42085
42086 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42087
42088         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42089
42090 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42091
42092         [BZ #16112]
42093         * malloc/malloc (malloc_info): Do not handle first bin as
42094         special case.
42095
42096 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42097
42098         * locale/iso-639.def: Add Central Nahuatl (nhn).
42099
42100 2013-11-01  Bruno Haible  <bruno@clisp.org>
42101
42102         [BZ #7003]
42103         * manual/math.texi (BSD Random): Specify range upper bound as
42104         in POSIX.
42105
42106 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42107
42108         * locale/iso-639.def: Add Meadow Mari (mhr).
42109
42110 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42111
42112         [BZ #14752], [BZ #15763]
42113         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42114         Validate name.
42115         * rt/tst_shm.c: Add test for escaping directory.
42116
42117 2013-10-31  Andreas Schwab  <schwab@suse.de>
42118
42119         [BZ #15917]
42120         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42121         followed by 'x' as part of digit sequence.
42122         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42123
42124 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42125
42126         [BZ #16037]
42127         * configure.ac: allow GNU Make 4.0 and greater.
42128         * configure: Regenerated.
42129
42130 2013-10-30  Will Newton  <will.newton@linaro.org>
42131
42132         [BZ #16038]
42133         * malloc/hooks.c (memalign_check): Limit alignment to the
42134         maximum representable power of two.
42135         * malloc/malloc.c (__libc_memalign): Likewise.
42136         * malloc/tst-memalign.c (do_test): Add test for very
42137         large alignment values.
42138         * malloc/tst-posix_memalign.c (do_test): Likewise.
42139
42140 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42141
42142         [BZ #11087]
42143         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42144         (munmap_chunk): Likewise.
42145         (mremap_chunk): Likewise.
42146
42147 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42148
42149         [BZ #15799]
42150         * stdlib/div.c (div): Remove obsolete code.
42151         * stdlib/ldiv.c (ldiv): Likewise.
42152         * stdlib/lldiv.c (lldiv): Likewise.
42153
42154 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42155
42156         [BZ #16071]
42157         * nss/nss_files/files-XXX.c (get_contents_ret): New
42158         enumerator.
42159         (get_contents): New function.
42160         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42161
42162 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42163
42164         * configure.in: Moved to ...
42165         * configure.ac: ... here. Change reference to configure.in
42166         to configure.ac.
42167         * sysdeps/arm/preconfigure.ac: ... here.
42168         configure.in to configure.ac.
42169         * sysdeps/gnu/configure.in: Moved to ...
42170         * sysdeps/gnu/configure.ac: ... here.
42171         * sysdeps/i386/configure.in: Moved to ...
42172         * sysdeps/i386/configure.ac: ... here.
42173         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42174         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42175         * sysdeps/mach/configure.in: Moved to ...
42176         * sysdeps/mach/configure.ac: ... here.
42177         * sysdeps/mach/hurd/configure.in: Moved to ...
42178         * sysdeps/mach/hurd/configure.ac: ... here.
42179         * sysdeps/powerpc/configure.in: Moved to ...
42180         * sysdeps/powerpc/configure.ac: ... here.
42181         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42182         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42183         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42184         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42185         * sysdeps/s390/s390-32/configure.in: Moved to ...
42186         * sysdeps/s390/s390-32/configure.ac: ... here.
42187         * sysdeps/s390/s390-64/configure.in: Moved to ...
42188         * sysdeps/s390/s390-64/configure.ac: ... here.
42189         * sysdeps/sh/configure.in: Moved to ...
42190         * sysdeps/sh/configure.ac: ... here.
42191         * sysdeps/sparc/configure.in: Moved to ...
42192         * sysdeps/sparc/configure.ac: ... here.
42193         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42194         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42195         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42196         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42197         * sysdeps/x86_64/configure.in: Moved to ...
42198         * sysdeps/x86_64/configure.ac: ... here.
42199         * sysdeps/x86_64/preconfigure.in: Moved to ...
42200         * sysdeps/x86_64/preconfigure.ac: ... here.
42201         * aclocal.m4: Change reference to configure.in to configure.ac.
42202         * config.h.in: Likewise.
42203         * manual/install.texi: Likewise.
42204         * manual/maint.texi: Likewise.
42205         * Makefile: Likewise.
42206         * malloc/Makefile: Likewise.
42207         * nscd/Makefile: Likewise.
42208         * Makeconfig: Change reference to configure.in and
42209         preconfigure.in to configure.ac and preconfigure.ac
42210         respectively.
42211         * INSTALL: Regenerated.
42212         * configure: Likewise.
42213         * sysdeps/gnu/configure: Likewise.
42214         * sysdeps/i386/configure: Likewise.
42215         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42216         * sysdeps/mach/configure: Likewise.
42217         * sysdeps/mach/hurd/configure: Likewise.
42218         * sysdeps/powerpc/configure: Likewise.
42219         * sysdeps/powerpc/powerpc32/configure: Likewise.
42220         * sysdeps/powerpc/powerpc64/configure: Likewise.
42221         * sysdeps/s390/s390-32/configure: Likewise.
42222         * sysdeps/s390/s390-64/configure: Likewise.
42223         * sysdeps/sh/configure: Likewise.
42224         * sysdeps/sparc/configure: Likewise.
42225         * sysdeps/unix/sysv/linux/configure: Likewise.
42226         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42227         * sysdeps/x86_64/configure: Likewise.
42228         * sysdeps/x86_64/preconfigure: Likewise.
42229
42230 2013-10-29  Andreas Schwab  <schwab@suse.de>
42231
42232         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42233
42234 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42235
42236         * benchtests/pow-inputs: Add new inputs.
42237
42238         * benchtests/exp-inputs: Add new inputs.
42239
42240         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42241         conditional check for return value.
42242         (__cos32): Likewise.
42243
42244 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42245
42246         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42247         to provide a boost for large inputs with word alignment.
42248         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42249         implementation based on optimized PPC64 strcpy.
42250         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42251         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42252         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42253         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42254
42255 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42256
42257         [BZ #2801]
42258         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42259
42260 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42261
42262         [BZ #14876]
42263         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42264         * time/tst-strptime.c (day_tests): Add testcase.
42265
42266 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42267
42268         [BZ #14029]
42269         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42270
42271 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42272
42273         [BZ #16074]
42274         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42275         MAP_FAILED on error.
42276
42277 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42278
42279         [BZ #16072]
42280         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42281         heap for large requests.
42282
42283 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42284
42285         [BZ #9954]
42286         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42287         result if the result has no associated interface.
42288         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42289         interface for all 127.X.Y.Z addresses.
42290
42291 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42292
42293         * locale/iso-639.def: Add Ligurian (lij)
42294
42295 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42296
42297         [BZ #15825]
42298         * sunrpc/rpc_main.c: Document rpcgen -5.
42299
42300 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42301
42302         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42303
42304 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42305
42306         [BZ #10278]
42307         * posix/glob.c: Match only directories when trailing slash is present.
42308         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42309         (main): Add testcase.
42310
42311 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42312
42313         [BZ #15670]
42314         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42315
42316 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42317
42318         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42319         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42320         AUTH_DES and cindex for FIPS 140-2.
42321         (DES Encryption): Add cindex FIPS 46-3.
42322
42323         * locale/locarchive.h (struct locarhandle): Add fname.
42324         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42325         if an optional argument was specified to --list-archive,
42326         otherwise NULL.
42327         * locale/programs/locarchive.c (show_archive_content): Take new
42328         argument fname and pass it via ah.fname to open_archive.
42329         * locale/programs/localedef.h: Update decl.
42330         (open_archive): If AH->fname is non-null, open that file
42331         rather than the default file name, and don't ignore ENOENT.
42332         (create_archive): Set AH.fname to NULL.
42333         (delete_locales_from_archive): Likewise.
42334         (add_locales_to_archive): Likewise.
42335         * locale/programs/locfile.c (write_all_categories): Likewise.
42336
42337 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42338             Aldy Hernandez  <aldyh@redhat.com>
42339
42340         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42341         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42342         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42343         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42344         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42345         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42346         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42347         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42348         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42349         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42350         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42351         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42352         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42353         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42354         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42355         Likewise.
42356         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42357         Likewise.
42358         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42359         Likewise.
42360         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42361         Likewise.
42362         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42363         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42364         Likewise.
42365         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42366         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42367         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42368         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42369         Likewise.
42370         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42371         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42372         * sysdeps/powerpc/preconfigure: Likewise.
42373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42374         Likewise.
42375         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42376         Replace contents of file by #include of <fenv_libc.h>.
42377         * sysdeps/powerpc/soft-fp/sfp-machine.h
42378         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42379         and <sys/prctl.h>.
42380         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42381         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42382         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42383         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42384         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42385         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42386         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42387         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42388         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42389         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42390         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42391         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42393         Allow copysignl PLT reference to be missing.
42394
42395 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42396             Joseph Myers  <joseph@codesourcery.com
42397
42398         [BZ #15948]
42399         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42400         single character.
42401         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42402
42403 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42404
42405         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42406         * elf/tst-tls1.c: Likewise.
42407         * elf/tst-tls10.h: Likewise.
42408         * elf/tst-tls14.c: Likewise.
42409         * elf/tst-tls2.c: Likewise.
42410         * elf/tst-tls3.c: Likewise.
42411         * elf/tst-tls4.c: Likewise.
42412         * elf/tst-tls5.c: Likewise.
42413         * elf/tst-tls6.c: Likewise.
42414         * elf/tst-tls7.c: Likewise.
42415         * elf/tst-tls8.c: Likewise.
42416         * elf/tst-tls9.c: Likewise.
42417         * elf/tst-tlsmod1.c: Likewise.
42418         * elf/tst-tlsmod13.c: Likewise.
42419         * elf/tst-tlsmod13a.c: Likewise.
42420         * elf/tst-tlsmod14a.c: Likewise.
42421         * elf/tst-tlsmod16a.c: Likewise.
42422         * elf/tst-tlsmod16b.c: Likewise.
42423         * elf/tst-tlsmod2.c: Likewise.
42424         * elf/tst-tlsmod3.c: Likewise.
42425         * elf/tst-tlsmod4.c: Likewise.
42426         * elf/tst-tlsmod5.c: Likewise.
42427         * elf/tst-tlsmod6.c: Likewise.
42428
42429 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42430
42431         [BZ #12486]
42432         * malloc/malloc.c: remove checks for statistics.
42433
42434 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42435
42436         [BZ #15277]
42437         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42438         * inet/tst-network.c: Add testcase.
42439
42440 2013-10-17  Andreas Schwab  <schwab@suse.de>
42441
42442         [BZ #15218]
42443         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42444         to determine canonical name.
42445
42446 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42447
42448         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42449         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42450         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42451         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42452         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42453         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42454         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42455         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42456         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42457         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42458         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42459         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42460         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42461         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42462         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42463         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42464         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42465         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42466         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42467         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42468         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42469         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42470         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42471         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42472         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42473         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42474         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42475         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42476         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42477         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42478         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42479         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42480         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42481         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42482         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42483         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42484         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42485         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42486         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42487         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42488         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42489         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42490         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42491         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42492         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42493         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42494         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42495         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42496         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42497         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42498         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42499         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42500         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42501         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42502         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42503         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42504         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42505         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42506
42507 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42508
42509         [BZ #16041]
42510         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42511         make result into a quiet NaN.
42512
42513 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42514
42515         * soft-fp/adddf3.c: Fix horizontal whitespace.
42516         * soft-fp/addsf3.c: Likewise.
42517         * soft-fp/addtf3.c: Likewise.
42518         * soft-fp/divdf3.c: Likewise.
42519         * soft-fp/divsf3.c: Likewise.
42520         * soft-fp/divtf3.c: Likewise.
42521         * soft-fp/double.h: Likewise.
42522         * soft-fp/eqdf2.c: Likewise.
42523         * soft-fp/eqsf2.c: Likewise.
42524         * soft-fp/eqtf2.c: Likewise.
42525         * soft-fp/extenddftf2.c: Likewise.
42526         * soft-fp/extended.h: Likewise.
42527         * soft-fp/extendsfdf2.c: Likewise.
42528         * soft-fp/extendsftf2.c: Likewise.
42529         * soft-fp/extendxftf2.c: Likewise.
42530         * soft-fp/fixdfdi.c: Likewise.
42531         * soft-fp/fixdfsi.c: Likewise.
42532         * soft-fp/fixdfti.c: Likewise.
42533         * soft-fp/fixsfdi.c: Likewise.
42534         * soft-fp/fixsfsi.c: Likewise.
42535         * soft-fp/fixsfti.c: Likewise.
42536         * soft-fp/fixtfdi.c: Likewise.
42537         * soft-fp/fixtfsi.c: Likewise.
42538         * soft-fp/fixtfti.c: Likewise.
42539         * soft-fp/fixunsdfdi.c: Likewise.
42540         * soft-fp/fixunsdfsi.c: Likewise.
42541         * soft-fp/fixunsdfti.c: Likewise.
42542         * soft-fp/fixunssfdi.c: Likewise.
42543         * soft-fp/fixunssfsi.c: Likewise.
42544         * soft-fp/fixunssfti.c: Likewise.
42545         * soft-fp/fixunstfdi.c: Likewise.
42546         * soft-fp/fixunstfsi.c: Likewise.
42547         * soft-fp/fixunstfti.c: Likewise.
42548         * soft-fp/floatdidf.c: Likewise.
42549         * soft-fp/floatdisf.c: Likewise.
42550         * soft-fp/floatditf.c: Likewise.
42551         * soft-fp/floatsidf.c: Likewise.
42552         * soft-fp/floatsisf.c: Likewise.
42553         * soft-fp/floatsitf.c: Likewise.
42554         * soft-fp/floattidf.c: Likewise.
42555         * soft-fp/floattisf.c: Likewise.
42556         * soft-fp/floattitf.c: Likewise.
42557         * soft-fp/floatundidf.c: Likewise.
42558         * soft-fp/floatundisf.c: Likewise.
42559         * soft-fp/floatunditf.c: Likewise.
42560         * soft-fp/floatunsidf.c: Likewise.
42561         * soft-fp/floatunsisf.c: Likewise.
42562         * soft-fp/floatunsitf.c: Likewise.
42563         * soft-fp/floatuntidf.c: Likewise.
42564         * soft-fp/floatuntisf.c: Likewise.
42565         * soft-fp/floatuntitf.c: Likewise.
42566         * soft-fp/fmadf4.c: Likewise.
42567         * soft-fp/fmasf4.c: Likewise.
42568         * soft-fp/fmatf4.c: Likewise.
42569         * soft-fp/gedf2.c: Likewise.
42570         * soft-fp/gesf2.c: Likewise.
42571         * soft-fp/getf2.c: Likewise.
42572         * soft-fp/ledf2.c: Likewise.
42573         * soft-fp/lesf2.c: Likewise.
42574         * soft-fp/letf2.c: Likewise.
42575         * soft-fp/muldf3.c: Likewise.
42576         * soft-fp/mulsf3.c: Likewise.
42577         * soft-fp/multf3.c: Likewise.
42578         * soft-fp/negdf2.c: Likewise.
42579         * soft-fp/negsf2.c: Likewise.
42580         * soft-fp/negtf2.c: Likewise.
42581         * soft-fp/op-1.h: Likewise.
42582         * soft-fp/op-2.h: Likewise.
42583         * soft-fp/op-4.h: Likewise.
42584         * soft-fp/op-8.h: Likewise.
42585         * soft-fp/op-common.h: Likewise.
42586         * soft-fp/quad.h: Likewise.
42587         * soft-fp/single.h: Likewise.
42588         * soft-fp/soft-fp.h: Likewise.
42589         * soft-fp/sqrtdf2.c: Likewise.
42590         * soft-fp/sqrtsf2.c: Likewise.
42591         * soft-fp/sqrttf2.c: Likewise.
42592         * soft-fp/subdf3.c: Likewise.
42593         * soft-fp/subsf3.c: Likewise.
42594         * soft-fp/subtf3.c: Likewise.
42595         * soft-fp/truncdfsf2.c: Likewise.
42596         * soft-fp/trunctfdf2.c: Likewise.
42597         * soft-fp/trunctfsf2.c: Likewise.
42598         * soft-fp/trunctfxf2.c: Likewise.
42599         * soft-fp/unorddf2.c: Likewise.
42600         * soft-fp/unordsf2.c: Likewise.
42601         * soft-fp/unordtf2.c: Likewise.
42602
42603 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42604
42605         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42606         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42607
42608 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42609
42610         * elf/dl-libc.c: Clear initfini list after freeing.
42611
42612 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42613
42614         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42615         * soft-fp/addsf3.c: Likewise.
42616         * soft-fp/addtf3.c: Likewise.
42617         * soft-fp/divdf3.c: Likewise.
42618         * soft-fp/divsf3.c: Likewise.
42619         * soft-fp/divtf3.c: Likewise.
42620         * soft-fp/double.h: Likewise.
42621         * soft-fp/eqdf2.c: Likewise.
42622         * soft-fp/eqsf2.c: Likewise.
42623         * soft-fp/eqtf2.c: Likewise.
42624         * soft-fp/extenddftf2.c: Likewise.
42625         * soft-fp/extended.h: Likewise.
42626         * soft-fp/extendsfdf2.c: Likewise.
42627         * soft-fp/extendsftf2.c: Likewise.
42628         * soft-fp/extendxftf2.c: Likewise.
42629         * soft-fp/fixdfdi.c: Likewise.
42630         * soft-fp/fixdfsi.c: Likewise.
42631         * soft-fp/fixdfti.c: Likewise.
42632         * soft-fp/fixsfdi.c: Likewise.
42633         * soft-fp/fixsfsi.c: Likewise.
42634         * soft-fp/fixsfti.c: Likewise.
42635         * soft-fp/fixtfdi.c: Likewise.
42636         * soft-fp/fixtfsi.c: Likewise.
42637         * soft-fp/fixtfti.c: Likewise.
42638         * soft-fp/fixunsdfdi.c: Likewise.
42639         * soft-fp/fixunsdfsi.c: Likewise.
42640         * soft-fp/fixunsdfti.c: Likewise.
42641         * soft-fp/fixunssfdi.c: Likewise.
42642         * soft-fp/fixunssfsi.c: Likewise.
42643         * soft-fp/fixunssfti.c: Likewise.
42644         * soft-fp/fixunstfdi.c: Likewise.
42645         * soft-fp/fixunstfsi.c: Likewise.
42646         * soft-fp/fixunstfti.c: Likewise.
42647         * soft-fp/floatdidf.c: Likewise.
42648         * soft-fp/floatdisf.c: Likewise.
42649         * soft-fp/floatditf.c: Likewise.
42650         * soft-fp/floatsidf.c: Likewise.
42651         * soft-fp/floatsisf.c: Likewise.
42652         * soft-fp/floatsitf.c: Likewise.
42653         * soft-fp/floattidf.c: Likewise.
42654         * soft-fp/floattisf.c: Likewise.
42655         * soft-fp/floattitf.c: Likewise.
42656         * soft-fp/floatundidf.c: Likewise.
42657         * soft-fp/floatundisf.c: Likewise.
42658         * soft-fp/floatunsidf.c: Likewise.
42659         * soft-fp/floatunsisf.c: Likewise.
42660         * soft-fp/floatuntidf.c: Likewise.
42661         * soft-fp/floatuntisf.c: Likewise.
42662         * soft-fp/floatuntitf.c: Likewise.
42663         * soft-fp/fmadf4.c: Likewise.
42664         * soft-fp/fmasf4.c: Likewise.
42665         * soft-fp/fmatf4.c: Likewise.
42666         * soft-fp/gedf2.c: Likewise.
42667         * soft-fp/gesf2.c: Likewise.
42668         * soft-fp/getf2.c: Likewise.
42669         * soft-fp/ledf2.c: Likewise.
42670         * soft-fp/lesf2.c: Likewise.
42671         * soft-fp/letf2.c: Likewise.
42672         * soft-fp/muldf3.c: Likewise.
42673         * soft-fp/mulsf3.c: Likewise.
42674         * soft-fp/multf3.c: Likewise.
42675         * soft-fp/negdf2.c: Likewise.
42676         * soft-fp/negsf2.c: Likewise.
42677         * soft-fp/negtf2.c: Likewise.
42678         * soft-fp/op-1.h: Likewise.
42679         * soft-fp/op-2.h: Likewise.
42680         * soft-fp/op-4.h: Likewise.
42681         * soft-fp/op-8.h: Likewise.
42682         * soft-fp/op-common.h: Likewise.
42683         * soft-fp/quad.h: Likewise.
42684         * soft-fp/single.h: Likewise.
42685         * soft-fp/soft-fp.h: Likewise.
42686         * soft-fp/sqrtdf2.c: Likewise.
42687         * soft-fp/sqrtsf2.c: Likewise.
42688         * soft-fp/sqrttf2.c: Likewise.
42689         * soft-fp/subdf3.c: Likewise.
42690         * soft-fp/subsf3.c: Likewise.
42691         * soft-fp/subtf3.c: Likewise.
42692         * soft-fp/truncdfsf2.c: Likewise.
42693         * soft-fp/trunctfdf2.c: Likewise.
42694         * soft-fp/trunctfsf2.c: Likewise.
42695         * soft-fp/trunctfxf2.c: Likewise.
42696         * soft-fp/unorddf2.c: Likewise.
42697         * soft-fp/unordsf2.c: Likewise.
42698         * soft-fp/unordtf2.c: Likewise.
42699
42700 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42701
42702         [BZ #15672]
42703         * misc/error.c (error_tail): Fix possible buffer overflow.
42704
42705 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42706
42707         [BZ #13028]
42708         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42709         address.
42710
42711 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42712
42713         [BZ #832]
42714         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42715         testing pipefail option.
42716
42717 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42718
42719         * soft-fp/double.h: Indent preprocessor directives inside #if.
42720         * soft-fp/extended.h: Likewise.
42721         * soft-fp/op-2.h: Likewise.
42722         * soft-fp/op-4.h: Likewise.
42723         * soft-fp/op-common.h: Likewise.
42724         * soft-fp/quad.h: Likewise.
42725         * soft-fp/single.h: Likewise.
42726         * soft-fp/soft-fp.h: Likewise.
42727
42728 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42729
42730         * iconv/iconv_prog.c: Fix typos.
42731         * stdio-common/psiginfo-data.h: Likewise.
42732
42733 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42734
42735         [BZ #15764]
42736         * locale/setlocale.c: Fix typo.
42737
42738 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42739
42740         [BZ #16036]
42741         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42742         signaling NaN arguments.
42743         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42744         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42745
42746         [BZ #14910]
42747         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42748         unordered operands.
42749         * soft-fp/gesf2.c (__gesf2): Likewise.
42750         * soft-fp/getf2.c (__getf2): Likewise.
42751         * soft-fp/ledf2.c (__ledf2): Likewise.
42752         * soft-fp/lesf2.c (__lesf2): Likewise.
42753         * soft-fp/letf2.c (__letf2): Likewise.
42754
42755         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42756         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42757         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42758         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42759         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42760         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42761         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42762         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42763         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42764         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42765         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42766         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42767         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42768         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42769         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42770         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42771         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42772         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42773         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42774         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42775         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42776         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42777         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42778         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42779         * soft-fp/floattidf.c (__floattidf): Likewise.
42780         * soft-fp/floattisf.c (__floattisf): Likewise.
42781         * soft-fp/floattitf.c (__floattitf): Likewise.
42782         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42783         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42784         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42785         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42786         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42787         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42788         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42789         * soft-fp/gesf2.c (__gesf2): Likewise.
42790         * soft-fp/getf2.c (__getf2): Likewise.
42791         * soft-fp/ledf2.c (__ledf2): Likewise.
42792         * soft-fp/lesf2.c (__lesf2): Likewise.
42793         * soft-fp/letf2.c (__letf2): Likewise.
42794
42795         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42796         Undefine and redefine.
42797         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42798         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42799         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42800         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42801         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42802         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42803         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42804         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42805         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42806         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42807         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42808         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42809         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42810         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42811         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42812
42813         [BZ #16032]
42814         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42815         without decrementing exponent if mantissa >= that for the
42816         denominator, not >.
42817         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42818         denominator, not >.  Decrement exponent in < case instead of
42819         incrementing in >= case.
42820         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42821         without decrementing exponent if mantissa >= that for the
42822         denominator, not >.
42823
42824         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42825         computing saturated result for unsigned overflow.
42826
42827 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42828             Jeff Law  <law@redhat.com>
42829
42830         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42831         (atan2Mp): Add systemtap probe marker.
42832         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42833         (__ieee754_log): Add systemtap probe marker.
42834         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42835         (atanMp): Add systemtap probe marker.
42836         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42837         (tanMp): Add systemtap probe marker.
42838         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42839         (__slowexp): Add systemtap probe marker.
42840         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42841         (__slowpow): Add systemtap probe marker.
42842         * manual/probes.texi: Document probes.
42843
42844 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42845
42846         [BZ #15362]
42847         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42848         written.
42849         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42850         written.
42851         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42852         written to buffer but not flushed.
42853         * libio/iofwrite_u.c:  Likewise.
42854         * libio/iopadn.c:  Return bytes returned even if EOF was
42855         encountered.
42856         * libio/iowpadn.c:  Likewise.
42857         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42858         if _IO_padn does not write the whole buffer.
42859         [!COMPILE_WPRINTF] (PAD): Likewise.
42860
42861 2013-10-10  David S. Miller  <davem@davemloft.net>
42862
42863         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42864         directory block.
42865
42866 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42867
42868         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42869         instead of FSF address.
42870         * soft-fp/fixdfti.c: Likewise.
42871         * soft-fp/fixsfti.c: Likewise.
42872         * soft-fp/fixtfti.c: Likewise.
42873         * soft-fp/fixunsdfti.c: Likewise.
42874         * soft-fp/fixunssfti.c: Likewise.
42875         * soft-fp/fixunstfti.c: Likewise.
42876         * soft-fp/floattidf.c: Likewise.
42877         * soft-fp/floattisf.c: Likewise.
42878         * soft-fp/floattitf.c: Likewise.
42879         * soft-fp/floatuntidf.c: Likewise.
42880         * soft-fp/floatuntisf.c: Likewise.
42881         * soft-fp/floatuntitf.c: Likewise.
42882         * soft-fp/trunctfxf2.c: Likewise.
42883
42884         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42885         * soft-fp/fixdfti.c: Likewise.
42886         * soft-fp/fixsfti.c: Likewise.
42887         * soft-fp/fixtfti.c: Likewise.
42888         * soft-fp/fixunsdfti.c: Likewise.
42889         * soft-fp/fixunssfti.c: Likewise.
42890         * soft-fp/fixunstfti.c: Likewise.
42891         * soft-fp/floattidf.c: Likewise.
42892         * soft-fp/floattisf.c: Likewise.
42893         * soft-fp/floattitf.c: Likewise.
42894         * soft-fp/floatuntidf.c: Likewise.
42895         * soft-fp/floatuntisf.c: Likewise.
42896         * soft-fp/floatuntitf.c: Likewise.
42897         * soft-fp/trunctfxf2.c: Likewise.
42898
42899 2013-10-10  David S. Miller  <davem@davemloft.net>
42900
42901         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42902
42903 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42904
42905         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42906         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42907         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42908         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42909         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42910         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42911         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42912
42913         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42914         for NaNs before doing comparisons on argument.
42915         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42916         Likewise.
42917
42918 2013-10-10  Will Newton  <will.newton@linaro.org>
42919
42920         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42921         passed to _int_memalign does not overflow.
42922
42923 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42924
42925         * scripts/bench.pl: Add include-sources directive.
42926         * benchtests/README: Update documentation.
42927
42928 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42929
42930         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42931         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42932         instead of FP_INIT_ROUNDMODE.
42933         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42934         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42935
42936         [BZ #16034]
42937         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42938         copy class of input value.
42939         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42940         not handle exceptions.
42941         * soft-fp/negsf2.c (__negsf2): Likewise.
42942         * soft-fp/negtf2.c (__negtf2): Likewise.
42943         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42944
42945 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42946
42947         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42948         semicolon.  From Linux kernel.
42949
42950 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42951
42952         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42953
42954 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42955
42956         [BZ #156]
42957         * manual/socket.texi: Added statement about buffer
42958         for gethostbyname2_r.
42959
42960 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42961
42962         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42963         Use .p2align directive instead, throughout.
42964         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42965         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42966         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42967         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42968         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42969         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42970         * sysdeps/x86_64/strchr.S: Likewise.
42971         * sysdeps/x86_64/strrchr.S: Likewise.
42972
42973 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42974
42975         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42976
42977         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42978
42979         * sysdeps/generic/math_private.h (__mpsin1): Remove
42980         declaration.
42981         (__mpcos1): Likewise.
42982         (__mpsin): New argument __range_reduce.
42983         (__mpcos): Likewise.
42984         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42985         (slow): Use __mpsin and __mpcos.
42986         (slow1): Likewise.
42987         (slow2): Likewise.
42988         (sloww): Likewise.
42989         (sloww1): Likewise.
42990         (sloww2): Likewise.
42991         (bsloww): Likewise.
42992         (bsloww1): Likewise.
42993         (bsloww2): Likewise.
42994         (cslow2): Likewise.
42995         (csloww): Likewise.
42996         (csloww1): Likewise.
42997         (csloww2): Likewise.
42998         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42999         range_reduce.  Merge in __mpsin1.
43000         (__mpcos): Likewise.
43001         (__mpsin1): Remove.
43002         (__mpcos1): Likewise.
43003
43004 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43005
43006         * locale/loadlocale.c (_nl_intern_locale_data): Use
43007         LOCFILE_ALIGNED_P.
43008         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43009         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43010         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43011         obstack data is appropriately aligned.
43012         (obstack_int32_grow_fast): Likewise.
43013         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43014         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43015         (add_locale_uint32_array): Likewise.
43016
43017 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43018
43019         * benchtests/Makefile: Remove ARGLIST and RET variables.
43020         ($(objpfx)bench-%.c): Pass only function name to the script.
43021         * benchtests/README: Update documentation.
43022         * benchtests/acos-inputs: Add new directives.
43023         * benchtests/acosh-inputs: Likewise.
43024         * benchtests/asin-inputs: Likewise.
43025         * benchtests/asinh-inputs: Likewise.
43026         * benchtests/atan-inputs: Likewise.
43027         * benchtests/atanh-inputs: Likewise.
43028         * benchtests/cos-inputs: Likewise.
43029         * benchtests/cosh-inputs: Likewise.
43030         * benchtests/exp-inputs: Likewise.
43031         * benchtests/log-inputs: Likewise.
43032         * benchtests/pow-inputs: Likewise.
43033         * benchtests/rint-inputs: Likewise.
43034         * benchtests/sin-inputs: Likewise.
43035         * benchtests/sinh-inputs: Likewise.
43036         * benchtests/tan-inputs: Likewise.
43037         * benchtests/tanh-inputs: Likewise.
43038         * scripts/bench.pl: Add support for new directives.
43039
43040 2013-10-07  Alan Modra  <amodra@gmail.com>
43041
43042         * README: Fix careless merge.
43043
43044 2013-10-05  Alan Modra  <amodra@gmail.com>
43045
43046         * NEWS: Mention powerpc64le support and bugs fixed.
43047         * README: Both big-endian and little-endian powerpc64 supported.
43048
43049 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43050
43051         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43052         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43053         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43054         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43055
43056 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43057
43058         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43059         match prototype.
43060
43061 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43062
43063         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43064         Move -mhard-float appending from
43065         ports/sysdeps/powerpc/powerpc32/Makefile.
43066         [$(with-fp) = yes] (ASFLAGS): Likewise.
43067         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43068         * sysdeps/powerpc/nofpu: Move directory from
43069         ports/sysdeps/powerpc/nofpu.
43070         * sysdeps/powerpc/soft-fp: Move directory from
43071         ports/sysdeps/powerpc/soft-fp.
43072         * sysdeps/powerpc/powerpc32/405: Move directory from
43073         ports/sysdeps/powerpc/powerpc32/405.
43074         * sysdeps/powerpc/powerpc32/440: Move directory from
43075         ports/sysdeps/powerpc/powerpc32/440.
43076         * sysdeps/powerpc/powerpc32/464: Move directory from
43077         ports/sysdeps/powerpc/powerpc32/464.
43078         * sysdeps/powerpc/powerpc32/476: Move directory from
43079         ports/sysdeps/powerpc/powerpc32/476.
43080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43081         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43083         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43085         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43087         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43089         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43090         * README: Update for powerpc-*-linux-gnu software floating point
43091         support in libc.
43092
43093         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43094         case to powerpc/powerpc32*.
43095         * sysdeps/unix/sysv/linux/configure: Regenerated.
43096
43097         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43098         (_FPU_MASK_OM): Define as 0x04.
43099         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43100         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43101         0x00c10080.
43102         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43103         0x0000003c.
43104         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43105
43106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43107         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43108         getcontext_e500.
43109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43110         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43111         setcontext_e500.
43112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43113         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43114         and setcontext_e500.
43115
43116 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43117
43118         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43119
43120 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43121
43122         * manual/threads.texi (Default Thread Attributes): Fix typo.
43123
43124 2013-10-04  Will Newton  <will.newton@linaro.org>
43125
43126         * malloc/Makefile: Add tst-memalign.
43127         * malloc/tst-memalign.c: New file.
43128
43129         * malloc/tst-posix_memalign.c: Add comments.
43130         (do_test): Add comments and call free on all potentially
43131         allocated pointers. Add space after cast.
43132
43133         * malloc/tst-pvalloc.c: Add comments.
43134         (do_test): Add comments and call free on all potentially
43135         allocated pointers. Remove duplicate check for NULL pointer.
43136         Add space after cast.
43137
43138         * malloc/tst-valloc.c: Add comments.
43139         (do_test): Add comments and call free on all potentially
43140         allocated pointers. Remove duplicate check for NULL pointer.
43141         Add space after cast.
43142
43143 2013-10-04  Alan Modra  <amodra@gmail.com>
43144
43145         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43146         Use stdint types in rather than __attribute__((mode())).
43147         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43148
43149 2013-10-04  Alan Modra  <amodra@gmail.com>
43150
43151         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43152         Correct handling of unaligned relocs for little-endian.
43153         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43154
43155 2013-10-04  Alan Modra  <amodra@gmail.com>
43156
43157         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43158         * configure: Regenerate.
43159         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43160         * shlib-versions: Likewise.
43161
43162 2013-10-04  Alan Modra  <amodra@gmail.com>
43163
43164         * string/tester.c (test_memrchr): Increment reported test cycle.
43165
43166 2013-10-04  Alan Modra  <amodra@gmail.com>
43167
43168         * string/test-memcpy.c (do_one_test): When reporting errors, print
43169         string address and don't overrun end of string.
43170
43171 2013-10-04  Alan Modra  <amodra@gmail.com>
43172
43173         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43174         insrdi.  Make better use of reg selection to speed exit slightly.
43175         Schedule entry path a little better.  Remove useless "are we done"
43176         checks on entry to main loop.  Handle wrapping around zero address.
43177         Correct main loop count.  Handle single left-over word from main
43178         loop inline rather than by using loop_small.  Remove extra word
43179         case in loop_small caused by wrong loop count.  Add little-endian
43180         support.
43181         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43182         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43183         cache hint.
43184         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43185         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43186         support.  Avoid rlwimi.
43187         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43188
43189 2013-10-04  Alan Modra  <amodra@gmail.com>
43190
43191         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43192         insrdi.  Formatting.
43193         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43194         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43195         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43196         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43197         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43198         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43199
43200 2013-10-04  Alan Modra  <amodra@gmail.com>
43201
43202         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43203         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43204         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43205         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43206         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43207         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43208         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43209         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43210         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43211         use of regs.  Use power7 mtocrf.  Tidy function tails.
43212
43213 2013-10-04  Alan Modra  <amodra@gmail.com>
43214
43215         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43216         Formatting.  Consistently use rXXX register defines or rN defines.
43217         Use early exit labels that avoid restoring unused non-volatile regs.
43218         Make cr field use more consistent with rWORDn compares.  Rename
43219         regs used as shift registers for unaligned loop, using rN defines
43220         for short lifetime/multiple use regs.
43221         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43222         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43223         addi 1,1,64 to pop stack frame.  Simplify return value code.
43224         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43225
43226 2013-10-04  Alan Modra  <amodra@gmail.com>
43227
43228         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43229         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43230         rather than rlwimi.
43231         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43232         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43233         little-endian support.  Correct typos.
43234         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43235         rather than rlwimi.
43236         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43237         in loop and entry code to keep "and." results.
43238         (strchr): Add little-endian support.  Comment.  Move cntlzd
43239         earlier in tail.
43240         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43241
43242 2013-10-04  Alan Modra  <amodra@gmail.com>
43243
43244         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43245         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43246         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43247         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43248
43249 2013-10-04  Alan Modra  <amodra@gmail.com>
43250
43251         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43252         (rTMP): Define as r11.
43253         (strcmp): Add little-endian support.  Optimise tail.
43254         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43255         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43256         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43257         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43258         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43259         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43260         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43261
43262 2013-10-04  Alan Modra  <amodra@gmail.com>
43263
43264         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43265         little-endian support.  Remove unnecessary "are we done" tests.
43266         Handle "s" wrapping around zero and extremely large "size".
43267         Correct main loop count.  Handle single left-over word from main
43268         loop inline rather than by using small_loop.  Correct comments.
43269         Delete "zero" tail, use "end_max" instead.
43270         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43271
43272 2013-10-04  Alan Modra  <amodra@gmail.com>
43273
43274         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43275         support.  Don't branch over align.
43276         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43277         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43278         support.  Rearrange tmp reg use to suit.  Comment.
43279         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43280
43281 2013-10-04  Alan Modra  <amodra@gmail.com>
43282
43283         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43284
43285 2013-10-04  Alan Modra  <amodra@gmail.com>
43286
43287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43288         conditional form of branch and link when obtaining pc.
43289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43290
43291 2013-10-04  Alan Modra  <amodra@gmail.com>
43292
43293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43294         HIWORD/LOWORD.
43295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43297
43298 2013-10-04  Alan Modra  <amodra@gmail.com>
43299
43300         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43301         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43302         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43303         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43304         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43305         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43306         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43307         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43308         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43309         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43310
43311 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43312             Alistair Popple <alistair@ozlabs.au.ibm.com>
43313             Alan Modra <amodra@gmail.com>
43314
43315         [BZ #15723]
43316         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43317         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43318         _dl_hwcap access for little-endian.
43319         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43320         destroy vmx regs when saving unaligned.
43321         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43322         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43323         destroy vmx regs when saving unaligned.
43324
43325 2013-10-04  Alan Modra  <amodra@gmail.com>
43326
43327         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43328         Don't use a union to pack hi/low value.
43329
43330 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43331
43332         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43333         for little-endian.
43334         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43335         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43336         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43337         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43338         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43339
43340 2013-10-04  Alan Modra  <amodra@gmail.com>
43341
43342         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43343         constants to usual value for .cst8 section, and remove redundant
43344         high address load.
43345         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43346         constant for 0x1p52.  Load little-endian words of double from
43347         correct stack offsets.
43348
43349 2013-10-04  Alan Modra  <amodra@gmail.com>
43350
43351         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43352         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43353         words of double from correct stack offsets.
43354         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43355         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43356         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43357         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43358         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43359         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43360         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43361         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43362         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43363         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43364         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43365         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43366         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43367         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43368         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43369         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43370         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43371
43372 2013-10-04  Alan Modra  <amodra@gmail.com>
43373
43374         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43375         64-bit int/double union.
43376         (_FPU_SETCW): Likewise.
43377         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43378         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43379
43380 2013-10-04  Alan Modra  <amodra@gmail.com>
43381
43382         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43383         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43384
43385 2013-10-04  Alan Modra  <amodra@gmail.com>
43386
43387         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43388         use vector int constants.
43389         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43390
43391 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43392
43393         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43394         array with long long.
43395         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43396         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43397         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43398         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43399         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43400         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43401         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43402         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43403         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43404         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43405         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43406         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43407         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43408
43409 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43410
43411         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43412         (__signbit): Likewise.  Correct for little-endian.
43413         (__signbitl): Call __signbit.
43414         (lrint): Correct for little-endian.
43415         (lrintf): Call lrint.
43416
43417 2013-10-04  Alan Modra  <amodra@gmail.com>
43418
43419         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43420         union 32-bit int array member with 64-bit int array.
43421         (t515, tm256): Double rather than long double.
43422         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43423
43424 2013-10-04  Alan Modra  <amodra@gmail.com>
43425
43426         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43427         Delete.
43428         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43429         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43430         version of math_ldbl.h.
43431
43432 2013-10-04  Alan Modra  <amodra@gmail.com>
43433
43434         [BZ #15734], [BZ #15735]
43435         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43436         all uses of ieee875 long double macros and unions.  Simplify test
43437         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43438         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43439         normalize after ldbl_extract_mantissa, and don't add hidden bit
43440         already handled.  Don't treat low word of ieee854 mantissa like
43441         low word of IBM long double and mask off bit when testing for
43442         zero.
43443         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43444         all uses of ieee875 long double macros and unions.  Simplify tests
43445         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43446         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43447         two1022, instead use their values.  Recognise that tests for large
43448         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43449         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43450         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43451         test for 0.0L and nan.  Correct negation.
43452         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43453         ieee875 long double macros and unions.  Correct output for large
43454         magnitude x.  Correct absolute value calculation.
43455         (__erfcl): Likewise.
43456         * math/libm-test.inc: Add tests for errors discovered in IBM long
43457         double versions of fmodl, remainderl, erfl and erfcl.
43458
43459 2013-10-04  Alan Modra  <amodra@gmail.com>
43460
43461         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43462         all uses of ieee854 long double macros and unions.  Simplify tests
43463         for long doubles that are fully specified by the high double.
43464         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43465         Likewise.
43466         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43467         Remove dead code too.
43468         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43469         (__ieee754_ynl): Likewise.
43470         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43471         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43472         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43473         Remove dead code too.
43474         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43475         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43476         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43477         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43478         Simplify.
43479         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43480         Simplify.
43481         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43482         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43483         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43484         Comment on variable precision.
43485         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43486         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43487         Likewise.
43488         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43489         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43490         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43491         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43492         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43493
43494 2013-10-04  Alan Modra  <amodra@gmail.com>
43495
43496         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43497         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43498         all uses of ieee854 long double macros and unions.
43499         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43500         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43501         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43502         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43503         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43504         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43505         Likewise.
43506         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43507         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43508         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43509         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43510         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43511         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43512         Simplify sign and nan test too.
43513         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43514         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43515         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43516         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43517         Likewise.
43518         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43519         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43520         Likewise.
43521         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43522         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43523         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43524         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43525         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43526         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43527
43528 2013-10-04  Alan Modra  <amodra@gmail.com>
43529
43530         * stdio-common/printf_size.c (__printf_size): Don't use
43531         union ieee854_long_double in fpnum union.
43532         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43533         signbit macro to retrieve sign from long double.
43534         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43535         retrieve sign from long double.
43536         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43537         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43538         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43539         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43540         * math/test-misc.c (main): Don't use union ieee854_long_double.
43541
43542 2013-10-04  Alan Modra  <amodra@gmail.com>
43543
43544         [BZ #15680]
43545         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43546         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43547         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43548         calculation.  Remove unnecessary test for denormal exponent.
43549         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43550         Correct handling of denormals.  Avoid undefined shift behaviour.
43551         Correct normalisation of low mantissa when low double is denormal.
43552         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43553         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43554         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43555         Correct normalisation of low mantissa.  Test for overflow of high
43556         mantissa and normalise.
43557         (ldbl_nearbyint): Use more readable constant for two52.
43558         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43559         (__mpn_construct_long_double): Fix test for overflow of high
43560         mantissa and correct normalisation.  Avoid undefined shift.
43561
43562 2013-10-04  Alan Modra  <amodra@gmail.com>
43563
43564         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43565         (union ibm_extended_long_double): Define as an array of ieee754_double.
43566         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43567         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43568         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43569         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43570         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43571         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43572         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43573         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43574         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43575         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43576         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43577
43578 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43579
43580         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43581         page size instead of calling getpagesize.
43582
43583         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43584         (LOCFILE_ALIGN_MASK): Likewise.
43585         (LOCFILE_ALIGN_UP): Likewise.
43586         (LOCFILE_ALIGNED_P): Likewise.
43587         * locale/programs/ld-collate.c (collate_output): Use the new
43588         macros instead of __alignof__ (int32_t).
43589         * locale/weight.h (findidx): Likewise.
43590
43591 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43592
43593         [BZ #431]
43594         * manual/string.texi: Fix strncat and wcsncat.
43595
43596 2013-10-03  Brooks Moses  <bmoses@google.com>
43597
43598         [BZ #15915]
43599         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43600         * Makerules: ...here, and adjust associated comments.
43601
43602 2013-10-02  Will Newton  <will.newton@linaro.org>
43603
43604         * malloc/Makefile: Add tst-pvalloc.
43605         * malloc/tst-pvalloc.c: New file.
43606
43607 2013-10-02  Will Newton  <will.newton@linaro.org>
43608
43609         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43610         improve test coverage.
43611
43612 2013-10-02  Will Newton  <will.newton@linaro.org>
43613
43614         * malloc/Makefile: Add tst-posix_memalign.
43615         * malloc/tst-posix_memalign.c: New file.
43616
43617 2013-10-01  Eric Blake  <eblake@redhat.com>
43618
43619         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43620         Use __THROWNL rather than __THROW on static functions.
43621
43622 2013-09-30  Petr Machata  <pmachata@redhat.com>
43623
43624         * elf/elf.h (R_AARCH64_ABS16): New macro.
43625         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43626         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43627         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43628         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43629         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43630         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43631         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43632         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43633         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43634         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43635         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43636         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43637         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43638         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43639         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43640         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43641         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43642         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43643         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43644         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43645         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43646         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43647         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43648         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43649         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43650         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43651         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43652         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43653         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43654         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43655         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43656         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43657         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43658         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43659         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43660         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43661         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43662         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43663         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43664         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43665         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43666         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43667         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43668         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43669         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43670         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43671         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43672         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43673         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43674         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43675         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43676         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43677         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43678         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43679         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43680         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43681         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43682         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43683         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43684         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43685         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43686         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43687         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43688         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43689         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43690         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43691         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43692         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43693         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43694         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43695         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43696         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43697         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43698         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43699         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43700         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43701         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43702         (R_AARCH64_TLSDESC_LDR): Likewise.
43703         (R_AARCH64_TLSDESC_ADD): Likewise.
43704         (R_AARCH64_TLSDESC_CALL): Likewise.
43705
43706 2013-09-30  Andreas Schwab  <schwab@suse.de>
43707
43708         [BZ #15048]
43709         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43710         the nss database lookup.
43711         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43712         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43713
43714 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43715
43716         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43717
43718 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43719
43720         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43721         ${Bash-specific parameter/pattern/string} parameter expansion.
43722         * sysdeps/unix/make-syscalls.sh: Likewise.
43723
43724 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43725
43726         * sysdeps/sh/stackguard-macros.h: New file.
43727
43728 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43729
43730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43731         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43732         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43733         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43734         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43735         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43736
43737 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43738
43739         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43740         Fix thread ID register.
43741
43742 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43743
43744         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43745         [POSIX || UNIX98]: Require rather than permitting all symbols from
43746         <time.h>.
43747         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43748         element of struct sched_param.
43749         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43750         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43751         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43752         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43753         constant.
43754
43755 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43756
43757         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43758         argument calculation.
43759
43760 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43761
43762         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43763         Expect macro.
43764         [POSIX] (pthread_attr_t): Do not require type.
43765         [POSIX] (pthread_cond_t): Likewise.
43766         [POSIX] (pthread_condattr_t): Likewise.
43767         [POSIX] (pthread_key_t): Likewise.
43768         [POSIX] (pthread_mutex_t): Likewise.
43769         [POSIX] (pthread_mutexattr_t): Likewise.
43770         [POSIX] (pthread_once_t): Likewise.
43771         [POSIX] (pthread_t): Likewise.
43772         [POSIX-based standards] (pthread_atfork): Expect function.
43773
43774 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43775             Richard Sandiford  <richard@codesourcery.com>
43776
43777         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43778         (swap_endianness_p): New extern variable.
43779         (set_big_endian): New inline function.
43780         (maybe_swap_uint32): Likewise.
43781         (maybe_swap_uint32_array): Likewise.
43782         (maybe_swap_uint32_obstack): Likewise.
43783         * locale/programs/locfile.c: Include <stdbool.h>.
43784         (swap_endianness_p): New variable.
43785         (add_locale_uint32): Call maybe_swap_uint32.
43786         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43787         (write_locale_data): Call maybe_swap_uint32_array.
43788         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43789         maybe_swap_uint32.
43790         (obstack_int32_grow_fast): Likewise.
43791         (output_weightwc): Call maybe_swap_uint32_obstack.
43792         (collate_output): Likewise.
43793         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43794         (OPT_LITTLE_ENDIAN): Likewise.
43795         (options): Add --little-endian and --big-endian options.
43796         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43797         * locale/programs/locarchive.c: Include "locfile.h".
43798         (GET): New macro.
43799         (SET): Likewise.
43800         (INC): Likewise.
43801         (create_archive): Use the new macros to access fields of
43802         structures directly mapped from or written to locale archives.
43803         (oldlocrecentcmp): Likewise.
43804         (enlarge_archive): Likewise.
43805         (insert_name): Likewise.
43806         (add_alias): Likewise.
43807         (add_locale): Likewise.
43808         (delete_locales_from_archive): Likewise.
43809         (show_archive_content): Likewise.
43810         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43811         locale data.
43812
43813 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43814
43815         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43816         http://www.gnu.org/doc/freemanuals.texi.
43817         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43818
43819 2013-09-24  Will Newton  <will.newton@linaro.org>
43820
43821         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43822         macro.
43823
43824 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43825
43826         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43827         unsigned char.
43828
43829 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43830
43831         * manual/threads.texi (POSIX Threads): Fix a typo.
43832
43833 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43834
43835         [BZ #14547]
43836         * string/tst-strcoll-overflow.c: New test case.
43837         * string/Makefile (xtests): Add tst-strcoll-overflow.
43838         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43839         cache if string sizes may cause integer overflow.
43840
43841         [BZ #14547]
43842         * string/strcoll_l.c (coll_seq): New members rule, idx,
43843         save_idx and back_us.
43844         (get_next_seq_nocache): New function.
43845         (do_compare_nocache): New function.
43846         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43847         when malloc fails.
43848
43849 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43850
43851         [BZ #15754]
43852         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43853         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43854         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43855
43856         [BZ #15754]
43857         * elf/Makefile (tests): Add tst-ptrguard1.
43858         (tests-static): Add tst-ptrguard1-static.
43859         (tst-ptrguard1-ARGS): Define.
43860         (tst-ptrguard1-static-ARGS): Define.
43861         * elf/tst-ptrguard1.c: New file.
43862         * elf/tst-ptrguard1-static.c: New file.
43863         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43864         * sysdeps/i386/stackguard-macros.h: Likewise.
43865         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43866         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43867         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43868         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43869         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43870         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43871
43872 2013-09-23  Hector Marco  <hecmargi@upv.es>
43873             Ismael Ripoll  <iripoll@disca.upv.es>
43874             Carlos O'Donell  <carlos@redhat.com>
43875
43876         [BZ #15754]
43877         * sysdeps/generic/stackguard-macros.h: Define
43878         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43879         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43880         Define __pointer_chk_guard_local.
43881         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43882         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43883
43884 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43885
43886         [BZ #15859]
43887         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43888
43889 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43890
43891         * include/string.h (__ffs): Declare as hidden.
43892         * string/ffs.c (__ffs): Define as hidden.
43893         * sysdeps/i386/ffs.c (__ffs): Likewise.
43894         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43895         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43896         * sysdeps/s390/ffs.c (__ffs): Likewise.
43897         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43898
43899 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43900
43901         * NEWS: Mention malloc probes.
43902
43903         * malloc/arena.c (new_heap): New memory_heap_new probe.
43904         (grow_heap): New memory_heap_more probe.
43905         (shrink_heap): New memory_heap_less probe.
43906         (heap_trim): New memory_heap_free probe.
43907         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43908         (systrim): New memory_sbrk_less probe.
43909         * manual/probes.texi: Document them.
43910
43911         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43912         * manual/probes.texi: Document it.
43913
43914         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43915         (__libc_realloc): Add memory_realloc_retry probe.
43916         (__libc_memalign): Add memory_memalign_retry probe.
43917         (__libc_valloc): Add memory_valloc_retry probe.
43918         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43919         (__libc_calloc): Add memory_calloc_retry probe.
43920         * manual/probes.texi: Document them.
43921
43922         * malloc/arena.c (get_free_list): Add probe
43923         memory_arena_reuse_free_list.
43924         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43925         and memory_arena_reuse.
43926         (arena_get2) [!PER_THREAD]: Likewise.
43927         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43928         memory_arena_reuse_realloc.
43929         * manual/probes.texi: Document them.
43930
43931         * malloc/malloc.c (__libc_free): Add
43932         memory_mallopt_free_dyn_thresholds probe.
43933         (__libc_mallopt): Add multiple memory_mallopt probes.
43934         * manual/probes.texi: Document them.
43935
43936         * malloc/malloc.c: Include stap-probe.h.
43937         (__libc_mallopt): Add memory_mallopt probe.
43938         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43939         * manual/probes.texi: New.
43940         * manual/Makefile (chapters): Add probes.
43941         * manual/threads.texi: Set next node.
43942
43943 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43944
43945         [BZ #15963, #13985]
43946         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43947         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43948         Add `Chinese' to `nan' entry name.
43949
43950 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43951
43952         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43953         (POLYNOMIAL): Likewise.
43954         (TAYLOR_SINCOS): Likewise.
43955         (TAYLOR_SLOW): Likewise.
43956         (__sin): Use TAYLOR_SINCOS.
43957         (__cos): Likewise.
43958         (slow): Use TAYLOR_SLOW.
43959         (sloww): Likewise.
43960         (bsloww): Likewise.
43961         (csloww): Likewise.
43962
43963 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43964
43965         * stdlib/strtod_l.c: Fix buffer overrun.
43966
43967 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43968
43969         * benchtests/Makefile (bench): Add sincos.
43970         * benchtests/bench-sincos.c: New file.
43971
43972         * math/libm-test.inc (cos_test_data): New test inputs.
43973         (sin_test_data): Likewise.
43974
43975         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43976         macro.
43977         (__sin): Use it.
43978         (__cos): Likewise.
43979         (slow1): Likewise.
43980         (slow2): Likewise.
43981         (sloww1): Likewise.
43982         (sloww2): Likewise.
43983         (bsloww1): Likewise.
43984         (bsloww2): Likewise.
43985         (cslow2): Likewise.
43986         (csloww1): Likewise.
43987         (csloww2): Likewise.
43988
43989         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43990         function.
43991         (__sin): Use it.
43992         (__cos): Likewise.
43993
43994         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43995         gotos.
43996         (__cos): Likewise.
43997
43998 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43999
44000         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44001         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44002         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44003         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44004         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44005         * elf/cache.c (print_entry): Handle the new cache flags.
44006
44007 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44008             Aldy Hernandez  <aldyh@redhat.com>
44009
44010         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44011         Change condition to [_SOFT_FLOAT].
44012         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44013         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44014         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44015         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44016         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44017         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44018         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44019         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44020         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44021         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44022         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44023         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44024         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44025         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44026         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44027         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44028         declaration.
44029
44030 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44031
44032         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44033         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44034         (__longjmp): Use LOAD_GP to load saved GPRs.
44035         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44036         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44037         (__sigsetjmp): Use SAVE_GP to save GPRs.
44038
44039         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44040         Do not append -msoft-float.
44041         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44042
44043 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44044
44045         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44046
44047 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44048
44049         [BZ #15966]
44050         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44051         (_FPU_GETCW): Use initial "__" on variable and field names but not
44052         on macro parameter name.
44053         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44054         parentheses around reference to macro parameter.
44055
44056 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44057
44058         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44059         prototype.
44060         (ctype_startup): Use uint32_t in cast and sizeof for
44061         ctype->charnames.
44062
44063 2013-09-11  Jia Liu  <proljc@gmail.com>
44064
44065         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44066         __daddr_t_defined.
44067         [__FreeBSD__]: Likewise.
44068
44069 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44070
44071         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44072         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44073         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44074         (strchr): Remove __strchr_sse42 ifunc selection.
44075         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44076         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44077
44078 2013-09-11  Will Newton  <will.newton@linaro.org>
44079
44080         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44081         parameter to RES. Remove hardcoded 1000 value.
44082         * benchtests/bench-skeleton.c (main): Pass RES parameter
44083         to TIMING_INIT and multiply result by 1000.
44084
44085 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44086
44087         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44088
44089 2013-09-11  Andreas Schwab  <schwab@suse.de>
44090
44091         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44092         if not defined.
44093         (O_TMPFILE) [__USE_GNU]: Define.
44094         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44095         Define.
44096
44097 2013-09-11  Will Newton  <will.newton@linaro.org>
44098
44099         [BZ #15857]
44100         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44101         does not overflow.
44102
44103 2013-09-11  Will Newton  <will.newton@linaro.org>
44104
44105         [BZ #15856]
44106         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44107         does not overflow.
44108
44109 2013-09-11  Will Newton  <will.newton@linaro.org>
44110
44111         [BZ #15855]
44112         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44113         does not overflow.
44114
44115 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44116
44117         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44118         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44119         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44120         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44121         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44122
44123 2013-09-10  Allan McRae  <allan@archlinux.org>
44124
44125         [BZ #15748]
44126         * manual/arith.texi (Parsing of Floats): Clarify
44127         cross-reference.
44128
44129         [BZ #15849]
44130         * manual/install.texi (Running make install): Mention
44131         --enable-pt-chown.
44132         * INSTALL: Regenerated.
44133
44134 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44135
44136         * csu/init-first.c (_init): Remove the !SHARED condition around
44137         FPU control word initialization.
44138         * elf/dl-support.c (_dl_fpu_control): New variable.
44139         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44140         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44141         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44142         * math/test-fpucw-static.c: New file.
44143         * math/test-fpucw-ieee.c: New file.
44144         * math/test-fpucw-ieee-static.c: New file.
44145         * math/Makefile (tests): Add `test-fpucw-ieee' and
44146         `$(tests-static)'.
44147         (tests-static): New variable.
44148         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44149         dependency to...
44150         [($(build-shared),yes)]
44151         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44152         ... this.
44153         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44154         New dependency.
44155
44156 2013-09-09  Allan McRae  <allan@archlinux.org>
44157
44158         [BZ #15939]
44159         * manual/string.texi (Collation Functions): Fix typo in
44160         strcoll example.
44161         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44162
44163         [BZ #15893]
44164         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44165
44166         [BZ #15892]
44167         * libio/memstream.c (open_memstream): Fix memory leak.
44168         * libio/wmemstream.c (open_wmemstream): Likewise.
44169
44170         [BZ #15895]
44171         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44172
44173 2013-09-09  Will Newton  <will.newton@linaro.org>
44174
44175         * malloc/Makefile: Add tst-realloc to tests.
44176         * malloc/tst-realloc.c: New file.
44177
44178 2013-09-09  Allan McRae  <allan@archlinux.org>
44179
44180         [BZ #15844]
44181         * COPYING: Update from GNU website to fix FSF address.
44182         * COPYING.LIB: Likewise.
44183
44184 2013-09-06  David S. Miller  <davem@davemloft.net>
44185
44186         * po/zh_TW.po: Update Chinese (traditional) translation from
44187         translation project.
44188
44189 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44190             Joseph Myers  <joseph@codesourcery.com>
44191
44192         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44193         "localeinfo.h".
44194         (obstack_chunk_alloc): New macro.
44195         (obstack_chunk_free): Likewise.
44196         (record_offset): New function.
44197         (init_locale_data): Likewise.
44198         (align_locale_data): Likewise.
44199         (add_locale_empty): Likewise.
44200         (add_locale_raw_data): Likewise.
44201         (add_locale_raw_obstack): Likewise.
44202         (add_locale_string): Likewise.
44203         (add_locale_wstring): Likewise.
44204         (add_locale_uint32): Likewise.
44205         (add_locale_uint32_array): Likewise.
44206         (add_locale_char): Likewise.
44207         (start_locale_structure): Likewise.
44208         (end_locale_structure): Likewise.
44209         (start_locale_prelude): Likewise.
44210         (end_locale_prelude): Likewise.
44211         (write_locale_data): Take locale_file structure rather than an
44212         iovec.
44213         * locale/programs/locfile.h: Include "obstack.h".
44214         (struct locale_file): Change to store locale file contents instead
44215         of header.
44216         (init_locale_data): New prototype.
44217         (align_locale_data): Likewise.
44218         (add_locale_empty): Likewise.
44219         (add_locale_raw_data): Likewise.
44220         (add_locale_raw_obstack): Likewise.
44221         (add_locale_string): Likewise.
44222         (add_locale_wstring): Likewise.
44223         (add_locale_uint32): Likewise.
44224         (add_locale_uint32_array): Likewise.
44225         (add_locale_char): Likewise.
44226         (start_locale_structure): Likewise.
44227         (end_locale_structure): Likewise.
44228         (start_locale_prelude): Likewise.
44229         (end_locale_prelude): Likewise.
44230         (write_locale_data): Update prototype.
44231         * locale/programs/3level.h (struct TABLE): Remove result field.
44232         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44233         Use new locale_file interface.
44234         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44235         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44236         * locale/programs/ld-address.c (address_output): Use new
44237         locale_file interface.
44238         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44239         NO_ADD_LOCALE.
44240         (collate_finish): Don't call collseq_table_finalize.
44241         (collate_output): Use new locale_file interface.
44242         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44243         in file.
44244         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44245         (TABLE): Move defines earlier in file.
44246         (ELEMENT): Likewise.
44247         (DEFAULT): Likewise.
44248         (wctrans_table_add): Move macro and inline function earlier in
44249         file.
44250         (struct wctype_table): Move type earlier in file.
44251         (add_locale_wctype_table): New static prototype.
44252         (struct locale_ctype_t): Use logical types instead of struct iovec
44253         pointers for members.
44254         (ctype_output): Use new locale_file interface.
44255         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44256         new locale_file interface.
44257         (allocate_arrays): Update for use of new locale_file interface.
44258         * locale/programs/ld-identification.c (identification_output): Use
44259         new locale_file interface.
44260         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44261         * locale/programs/ld-messages.c (messages_output): Likewise.
44262         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44263         * locale/programs/ld-name.c (name_output): Likewise.
44264         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44265         * locale/programs/ld-paper.c (paper_output): Likewise.
44266         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44267         * locale/programs/ld-time.c (time_output): Likewise.
44268
44269 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44270
44271         * benchtests/Makefile: Add memrchr benchmark.
44272         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44273         benchmark as memrchr.
44274         * benchtests/bench-memrchr-ifunc.c: New file.
44275         * benchtests/bench-memrchr.c: New file.
44276
44277 2013-09-06   Will Newton  <will.newton@linaro.org>
44278
44279         * benchtests/Makefile (string-bench): Add memcpy.
44280
44281 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44282             Cong Wang  <amwang@redhat.com>
44283
44284         [BZ #15850]
44285         * sysdeps/unix/sysv/linux/bits/in.h
44286         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44287         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44288         before __USE_KERNEL_IPV6_DEFS uses.
44289         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44290         IPPROTO_BEETPH.
44291         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44292         sockaddr_in6, or ipv6_mreq.
44293
44294 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44295
44296         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44297         memory access for final bytes in some large inputs.
44298         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44299
44300 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44301
44302         * string/test-memrchr.c: New file.
44303         * string/test-memrchr-ifunc.c: New file.
44304         * string/Makefile: Add new memrchr testcase.
44305
44306 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44307
44308         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44309         fanotify_init returns EPERM.
44310
44311 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44312
44313         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44314         errors.
44315         (top level): Treat second token from macro or constant entries for
44316         allowed headers as allowed.
44317         * include/complex.h: Condition internal declarations on
44318         [!_ISOMAC].
44319         * include/fenv.h: Condition include of <stdbool.h> and internal
44320         declarations on [!_ISOMAC].
44321
44322 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44323
44324         [BZ #15923]
44325         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44326
44327 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44328
44329         * configure.in (--enable-versioning): Remove configure option.
44330         (libc_cv_asm_symver_directive): Remove configure test.
44331         (libc_cv_ld_version_script_option): Likewise.
44332         (VERSIONING): Remove variable and AC_SUBST.
44333         (DO_VERSIONING): Remove AC_DEFINE.
44334         * configure: Regenerated.
44335         * config.h.in (DO_VERSIONING): Remove macro.
44336         * Makerules [$(versioning) = yes]: Change conditionals to
44337         [$(build-shared) = yes].
44338         * config.make.in (versioning): Remove variable.
44339         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44340         [$(build-shared) = yes].
44341         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44342         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44343         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44344         [$(build-shared) = yes].
44345         * extra-lib.mk [$(versioning) = yes]: Likewise.
44346         * hurd/Makefile [$(versioning) = yes]: Likewise.
44347         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44348         [SHARED].
44349         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44350         [SHARED].
44351         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44352         [SHARED && !NO_HIDDEN].
44353         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44354         [SHARED].
44355         [SHARED && DO_VERSIONING]: Likewise..
44356         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44357         [$(build-shared) = yes].
44358         * manual/install.texi (--disable-versioning): Remove
44359         documentation.
44360         * INSTALL: Regenerated.
44361         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44362         to [SHARED].
44363         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44364         [$(build-shared) = yes].
44365         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44366         * sysdeps/i386/i686/multiarch/strstr-c.c
44367         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44368         [SHARED && !NO_HIDDEN].
44369         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44370         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44371         * sysdeps/powerpc/powerpc32/dl-machine.c
44372         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44373         * sysdeps/powerpc/powerpc32/sysdep.h
44374         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44375         to [SHARED && PIC && !NO_HIDDEN].
44376         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44377         conditional to [SHARED].
44378
44379 2013-09-04   Will Newton  <will.newton@linaro.org>
44380
44381         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44382         * benchtests/bench-string.h: Include bench-timing.h instead
44383         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44384         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44385         call to HP_TIMING_DIFF_INIT.
44386         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44387         instead of hp-timing.h macros.
44388         * benchtests/bench-memchr.c: Likewise.
44389         * benchtests/bench-memcmp.c: Likewise.
44390         * benchtests/bench-memcpy.c: Likewise.
44391         * benchtests/bench-memmem.c: Likewise.
44392         * benchtests/bench-memmove.c: Likewise.
44393         * benchtests/bench-memset.c: Likewise.
44394         * benchtests/bench-rawmemchr.c: Likewise.
44395         * benchtests/bench-strcasecmp.c: Likewise.
44396         * benchtests/bench-strcasestr.c: Likewise.
44397         * benchtests/bench-strcat.c: Likewise.
44398         * benchtests/bench-strchr.c: Likewise.
44399         * benchtests/bench-strcmp.c: Likewise.
44400         * benchtests/bench-strcpy.c: Likewise.
44401         * benchtests/bench-strcpy_chk.c: Likewise.
44402         * benchtests/bench-strlen.c: Likewise.
44403         * benchtests/bench-strncasecmp.c: Likewise.
44404         * benchtests/bench-strncat.c: Likewise.
44405         * benchtests/bench-strncmp.c: Likewise.
44406         * benchtests/bench-strncpy.c: Likewise.
44407         * benchtests/bench-strnlen.c: Likewise.
44408         * benchtests/bench-strpbrk.c: Likewise.
44409         * benchtests/bench-strrchr.c: Likewise.
44410         * benchtests/bench-strspn.c: Likewise.
44411         * benchtests/bench-strstr.c: Likewise.
44412
44413 2013-09-04  Will Newton  <will.newton@linaro.org>
44414
44415         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44416
44417 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44418
44419         [BZ #15427]
44420         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44421         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44422         * math/libm-test.inc (lgamma_test_data): Add more tests.
44423         * sysdeps/i386/fpu/libm-test-ulps: Update.
44424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44425
44426 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44427
44428         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44429         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44430         Add ifunc.
44431         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44432         Add strcmp-sse2-unaligned
44433         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44434
44435 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44436
44437         * Versions.def (libc): Add GLIBC_2.19.
44438
44439 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44440
44441         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44442         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44443
44444 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44445
44446         [BZ #14155]
44447         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44448         intermediate calculations in recurrence.
44449         (__ieee754_ynf): Likewise.
44450         * math/libm-test.inc (jn_test_data): Do not allow spurious
44451         underflow exception.  Add more tests.
44452         (yn_test_data): Add more tests.
44453         * sysdeps/i386/fpu/libm-test-ulps: Update.
44454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44455
44456 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44457
44458         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44459
44460 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44461
44462         * csu/init-first.c: Fix then/than typos.
44463         * locale/programs/ld-collate.c: Likewise.
44464         * locale/programs/linereader.h: Likewise.
44465         * manual/charset.texi: Likewise.
44466         * manual/filesys.texi: Likewise.
44467         * manual/stdio.texi: Likewise.
44468         * manual/string.texi: Likewise.
44469         * stdlib/fmtmsg.c: Likewise.
44470         * sysdeps/i386/stpncpy.S: Likewise.
44471         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44472         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44473         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44474         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44475
44476 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44477
44478         * elf/dl-open.c: Fix typos.
44479         * iconvdata/gbbig5.c: Likewise.
44480         * iconvdata/iso-2022-jp.c: Likewise.
44481         * iconv/gconv_int.h: Likewise.
44482         * iconv/loop.c: Likewise.
44483         * nis/rpcsvc/nis.h: Likewise.
44484         * resolv/ns_name.c: Likewise.
44485         * stdio-common/vfscanf.c: Likewise.
44486         * streams/stropts.h: Likewise.
44487         * sunrpc/rpc_thread.c: Likewise.
44488         * sysdeps/i386/strpbrk.S: Likewise.
44489         * sysdeps/ieee754/k_standard.c: Likewise.
44490         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44491         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44492         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44493         * sysdeps/mach/hurd/profil.c: Likewise.
44494         * sysdeps/s390/dl-procinfo.h: Likewise.
44495         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44496         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44497         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44498         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44499         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44500
44501 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44502
44503         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44504         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44505
44506 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44507
44508         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44509         aix specific files.
44510         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44511         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44512         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44513         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44514         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44515         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44516         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44517         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44518
44519 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44520             Roland McGrath  <roland@hack.frob.com>
44521
44522         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44523         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44524
44525 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44526
44527         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44528         __executable_start symbol instead of _start.
44529
44530 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44531
44532         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44533         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44534         Move macros to...
44535         * sysdeps/gnu/ldsodefs.h: ... this new file.
44536
44537         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44538         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44539         instead of ELFOSABI_LINUX.
44540
44541         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44542         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44543         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44544         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44545         Likewise.
44546         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44547         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44548         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44549         Likewise.
44550         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44551         (ibm_extended_long_double): Add ieee_nan member.
44552         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44553         (do_test): New function.
44554
44555         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44556         TEST_TRUNC.
44557         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44558         functions, renamed from truncdfsf_test, trunctfsf_test,
44559         trunctfdf_test.
44560         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44561         functions.
44562         (do_test): Run all these.
44563
44564 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44565
44566         * argp/argp-help.c: Fix typos.
44567         * argp/argp-parse.c: Likewise.
44568         * debug/backtracesyms.c: Likewise.
44569         * elf/elf.h: Likewise.
44570         * malloc/malloc.c: Likewise.
44571         * nis/nis_print.c: Likewise.
44572         * resolv/res_comp.c: Likewise.
44573         * stdlib/stdlib.h: Likewise.
44574         * sunrpc/clnt_tcp.c: Likewise.
44575         * sunrpc/clnt_udp.c: Likewise.
44576         * sunrpc/clnt_unix.c: Likewise.
44577         * sysdeps/unix/bsd/ptsname.c: Likewise.
44578         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44579         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44581         Likewise.
44582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44583         Likewise.
44584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44585         Likewise.
44586         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44587
44588 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44589
44590         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44591         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44592
44593 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44594
44595         [BZ #15897]
44596         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44597         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44598         ($(objpfx)bug-dl-leaf): New rule.
44599         ($(objpfx)bug-dl-leaf.so): Likewise.
44600         ($(objpfx)bug-dl-leaf.out): Likewise.
44601         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44602         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44603         * dlfcn/bug-dl-leaf.c: New test.
44604         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44605         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44606         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44607         (dlclose): Likewise.
44608         (dlmopen): Likewise.
44609
44610 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44611
44612         * include/netdb.h [!_ISOMAC]:
44613         Don't include <tls.h>.
44614         (h_errno, __libc_h_errno): Move declaration and macros out of
44615         [_LIBC_REENTRANT].
44616
44617         * include/resolv.h [_RESOLV_H_]:
44618         Don't include <tls.h>.
44619         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44620         * resolv/res_libc.c: Don't include <tls.h>.
44621         (_res): Use __attribute__ ((nocommon)) in place of
44622         __attribute__ ((section (".bss"))).
44623
44624         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44625         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44626
44627         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44628
44629         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44630         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44631
44632         * resolv/res_mkquery.c: Include <sys/time.h>.
44633
44634         * inet/ifreq.c: Moved to ...
44635         * sysdeps/unix/ifreq.c: ... here.
44636         * inet/ifreq.c: New file, true stub version.
44637
44638         * socket/sa_len.c: New file.
44639         * socket/Makefile (aux): Add it.
44640         * sysdeps/unix/sysv/linux/Makefile
44641         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44642         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44643         and #include <socket/sa_len.c>.
44644         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44645         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44646
44647         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44648         * bits/socket.h: ... here.
44649
44650         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44651         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44652         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44653
44654 2013-08-27  Andreas Schwab  <schwab@suse.de>
44655
44656         [BZ #15736]
44657         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44658         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44659         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44660         * string/test-strcasecmp.c (test_main): Run tests in several
44661         locales.
44662         * string/test-strncasecmp.c (test_main): Likewise.
44663
44664         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44665         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44666         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44667         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44668         (__strncasecmp_ssse3) [PIC]: Likewise.
44669
44670 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44671
44672         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44673
44674         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44675         instead of explicitly declaring xdecrypt.
44676         * nis/nss_nis/nis-publickey.c: Likewise.
44677
44678 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44679
44680         [BZ #15890]
44681         * nscd/aicache.c: Include res_hconf.h.
44682         (addhstaiX): Initialize res_hconf.
44683
44684 2013-08-26  Andreas Schwab  <schwab@suse.de>
44685
44686         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44687         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44688
44689 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44690
44691         * nscd/aicache.c (addhstaiX): Fix indentation.
44692
44693 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44694
44695         * configure.ac: Quote $build_pt_chown test.
44696         * configure: Regenerated.
44697
44698 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44699
44700         [BZ #15532]
44701         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44702         * math/s_cexpf.c (__cexpf): Likewise.
44703         * math/s_cexpl.c (__cexpl): Likewise.
44704         * math/libm-test.inc (cexp_test_data): Correct expected return
44705         value for NaN + i0.  Add another test.
44706
44707 2013-08-22  David S. Miller  <davem@davemloft.net>
44708
44709         * po/ca.po: Update Catalan translation from translation project.
44710         * po/uk.po: Add Ukrainian translations from translation project.
44711
44712 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44713
44714         [BZ #15797]
44715         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44716         is infinite, not alongside NaN test.
44717         * math/s_fdimf.c (__fdimf): Likewise.
44718         * math/s_fdiml.c (__fdiml): Likewise.
44719         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44720         errno is unchanged.
44721
44722 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44723
44724         * argp/argp-help.c: Fix typos.
44725         * crypt/speeds.c: Likewise.
44726         * csu/check_fds.c: Likewise.
44727         * elf/dl-load.c: Likewise.
44728         * elf/dl-open.c: Likewise.
44729         * elf/reldep3.c: Likewise.
44730         * elf/reldep.c: Likewise.
44731         * elf/sprof.c: Likewise.
44732         * iconv/iconv_charmap.c: Likewise.
44733         * iconv/skeleton.c: Likewise.
44734         * iconv/strtab.c: Likewise.
44735         * io/lockf64.c: Likewise.
44736         * libio/libioP.h: Likewise.
44737         * resolv/gai_notify.c: Likewise.
44738         * resolv/ns_name.c: Likewise.
44739         * resolv/ns_samedomain.c: Likewise.
44740         * resolv/res_send.c: Likewise.
44741         * stdlib/random.c: Likewise.
44742         * sunrpc/rpc/xdr.h: Likewise.
44743         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44744         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44745         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44746         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44747         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44748         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44749         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44750         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44751         * sysdeps/mach/hurd/check_fds.c: Likewise.
44752         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44753         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44754         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44755         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44756         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44757         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44758         * sysdeps/pthread/aio_notify.c: Likewise.
44759         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44760         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44761         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44762         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44763         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44764
44765 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44766
44767         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44768         version if bit_Slow_SSE4_2 is set.
44769         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44770         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44771
44772 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44773
44774         [BZ #15867]
44775         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44776         trampoline stack frame information.
44777         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44778         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44779         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44780         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44781         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44782         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44783         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44784         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44785         sa_flags value.
44786         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44787         interrupting a syscall and set with option SA_SIGINFO.
44788
44789 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44790
44791         [BZ #15531]
44792         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44793         argument is infinite.
44794         * math/s_cprojf.c (__cprojf): Likewise.
44795         * math/s_cprojl.c (__cprojl): Likewise.
44796         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44797         * math/libm-test.inc (cproj_test_data): Add more tests.
44798
44799         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44800
44801         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44802         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44803         size.  Use __ffs to determine corresponding shift.
44804
44805 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44806             Roland McGrath  <roland@hack.frob.com>
44807
44808         * Makefile (INSTALL): Remove trailing blank lines from output of
44809         makeinfo.
44810
44811 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44812
44813         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44814         Align 32 bit compat elf_greg to 8 bytes.
44815
44816 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44817
44818         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44819
44820 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44821
44822         * string/strcoll_l.c (coll_seq): New structure.
44823         (get_next_seq_cached): New function.
44824         (get_next_seq): New function.
44825         (do_compare): New function.
44826         (STRCOLL): Use GNU style definition.  Simplify implementation
44827         by using get_next_seq, get_next_seq_cached and do_compare.
44828
44829 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44830
44831         [BZ #14699]
44832         CVE-2013-4237
44833         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44834         member.
44835         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44836         member.
44837         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44838         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44839         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44840         conditional.
44841         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44842         GETDENTS_64BIT_ALIGNED.
44843         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44844         * manual/filesys.texi (Reading/Closing Directory): Document
44845         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44846         strongly.
44847         * manual/conf.texi (Limits for Files): Add portability note to
44848         NAME_MAX, PATH_MAX.
44849         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44850
44851 2013-08-13  Andreas Schwab  <schwab@suse.de>
44852
44853         [BZ #15749]
44854         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44855         of fabs.
44856         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44857         LDBL_MAX_EXP >= 16384]: Add tests for it.
44858
44859 2013-08-12  David S. Miller  <davem@davemloft.net>
44860
44861         * version.h (RELEASE): Set to "development".
44862         (VERSION): Set to "2.18.90".
44863         * NEWS: Add 2.19 section.
44864
44865 2013-08-03  David S. Miller  <davem@davemloft.net>
44866
44867         * po/ko.po: Update Korean translation from translation project.
44868
44869 2013-08-01  David S. Miller  <davem@davemloft.net>
44870
44871         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44872         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44873         Bilka.
44874
44875 2013-07-30  David S. Miller  <davem@davemloft.net>
44876
44877         * po/fr.po: Update French translation from translation project.
44878
44879 2013-07-28  David S. Miller  <davem@davemloft.net>
44880
44881         * po/cs.po: Update Czech translation from translation project.
44882
44883         * po/sv.po: Update Swedish translation from translation project.
44884
44885 2013-07-27  David S. Miller  <davem@davemloft.net>
44886
44887         * po/eo.po: Update Esperanto translation from translation project.
44888
44889         * po/vi.po: Update Vietnamese translation from translation project.
44890
44891         * po/de.po: Update German translation from translation project.
44892
44893 2013-07-26  David S. Miller  <davem@davemloft.net>
44894
44895         * po/bg.po: Update Bulgarian translation from translation project.
44896
44897         * po/nl.po: Update Dutch translation from translation project.
44898         * po/pl.po: Update Polish translation from translation project.
44899         * po/ru.po: Update Russian translation from translation project.
44900
44901 2013-07-24  David S. Miller  <davem@davemloft.net>
44902
44903         * po/libc.pot: Update.
44904
44905 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44906
44907         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44908         variable page size.
44909         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44910         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44911         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44912
44913 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44914
44915         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44916
44917 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44918             Andreas Schwab  <schwab@suse.de>
44919             Roland McGrath  <roland@hack.frob.com>
44920             Joseph Myers  <joseph@codesourcery.com>
44921             Carlos O'Donell  <carlos@redhat.com>
44922
44923         [BZ #15755]
44924         * config.h.in: Define HAVE_PT_CHOWN.
44925         * config.make.in (build-pt-chown): New variable.
44926         * configure.in (--enable-pt_chown): New configure option.
44927         * configure: Regenerate.
44928         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44929         build-pt-chown is enabled.
44930         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44931         pt_chown to fix pty ownership.
44932         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44933         CLOSE_ALL_FDS.
44934         * manual/install.texi (Configuring and compiling): Mention
44935         --enable-pt_chown. Add @findex for grantpt.
44936         * INSTALL: Regenerate.
44937
44938 2013-07-20  David S. Miller  <davem@davemloft.net>
44939
44940         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44941         difference between 32-bit and 64-bit.
44942
44943 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44944
44945         [BZ #15711]
44946         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44947         Avoid system header dependency with -ffreestanding.
44948         ($(objpfx)bits/syscall%d): Likewise.
44949
44950 2013-07-13  David S. Miller  <davem@davemloft.net>
44951
44952         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44953         underflows from atanl/atan2l due to bug 15319.
44954         (casinh_test_data): Likewise.
44955
44956 2013-07-07  David S. Miller  <davem@davemloft.net>
44957
44958         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44959
44960 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44961
44962         * sysdeps/i386/fpu/libm-test-ulps: Update.
44963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44964
44965 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44966
44967         * configure.in (--enable-lock-elision): Fix message text.
44968         * INSTALL: Regenerate.
44969         * configure: Regenerate.
44970
44971 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44972
44973         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44974
44975 2013-07-03  Andreas Jaeger  <aj@suse.de>
44976
44977         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44978         define.
44979         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44980         (ptrace_peeksiginfo_args): Add.
44981         (__ptrace_peeksiginfo_flags): Add.
44982         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44983         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44984         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44985
44986 2013-07-03  Allan McRae  <allan@archlinux.org>
44987
44988         * sysdeps/i386/fpu/libm-test-ulps: Update.
44989
44990 2013-07-02  David S. Miller  <davem@davemloft.net>
44991
44992         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44993
44994 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44995
44996         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44997
44998 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44999
45000         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45002
45003 2013-07-02  Andi Kleen <ak@linux.intel.com>
45004
45005         * config.h.in (ENABLE_LOCK_ELISION): Add.
45006         * configure.in (--enable-lock-elision): Add option.
45007         * manual/install.texi: Document --enable lock elision.
45008         * configure: Regenerate
45009         * INSTALL: Regenerate.
45010
45011 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45012
45013         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45014         SSE4.2 strcasecmp for libc.a.
45015         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45016
45017 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45018
45019         [BZ #13304]
45020         * soft-fp/op-common.h (_FP_FMA): New macro.
45021         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45022         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45023         (_FP_MUL_MEAT_1_imm): ... here.
45024         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45025         (_FP_MUL_MEAT_1_wide): ... here.
45026         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45027         (_FP_MUL_MEAT_1_hard): ... here.
45028         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45029         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45030         (_FP_MUL_MEAT_2_wide): ... here.
45031         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45032         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45033         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45034         (_FP_MUL_MEAT_2_gmp): ... here.
45035         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45036         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45037         (_FP_MUL_MEAT_4_wide): ... here.
45038         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45039         (_FP_MUL_MEAT_4_gmp): ... here.
45040         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45041         (_FP_WFRACBITS_DW_S): Likewise.
45042         (_FP_WFRACXBITS_DW_S): Likewise.
45043         (_FP_HIGHBIT_DW_S): Likewise.
45044         (FP_FMA_S): Likewise.
45045         (_FP_FRAC_HIGH_DW_S): Likewise.
45046         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45047         (_FP_WFRACBITS_DW_D): Likewise.
45048         (_FP_WFRACXBITS_DW_D): Likewise.
45049         (_FP_HIGHBIT_DW_D): Likewise.
45050         (FP_FMA_D): Likewise.
45051         (_FP_FRAC_HIGH_DW_D): Likewise.
45052         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45053         (_FP_WFRACBITS_DW_E): Likewise.
45054         (_FP_WFRACXBITS_DW_E): Likewise.
45055         (_FP_HIGHBIT_DW_E): Likewise.
45056         (FP_FMA_E): Likewise.
45057         (_FP_FRAC_HIGH_DW_E): Likewise.
45058         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45059         (_FP_WFRACBITS_DW_Q): Likewise.
45060         (_FP_WFRACXBITS_DW_Q): Likewise.
45061         (_FP_HIGHBIT_DW_Q): Likewise.
45062         (FP_FMA_Q): Likewise.
45063         (_FP_FRAC_HIGH_DW_Q): Likewise.
45064         * soft-fp/fmasf4.c: New file.
45065         * soft-fp/fmadf4.c: Likewise.
45066         * soft-fp/fmatf4.c: Likewise.
45067
45068 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45069
45070         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45071         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45072         Silvermont.
45073         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45074         macro.
45075         (index_Slow_SSE4_2): Likewise.
45076         (index_Prefer_PMINUB_for_stringop): Likewise.
45077         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45078         bit_Slow_SSE4_2 is set.
45079         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45080         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45081
45082 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45083
45084         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45085         rtld_global._dl_hwcap2.
45086         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45087         POWER8.
45088         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45089         POWER8 feature descriptions defined in _dl_hwcap2.
45090         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45091         string handling for POWER8 feature bits.
45092         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45093         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45094         _dl_powerpc_cap_flags.
45095         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45096         * sysdeps/powerpc/rtld-global-offsets.sym
45097         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45098         _dl_hwcap2 in the rtld_global_ro structure.
45099
45100 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45101
45102         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45103         hardware capabilities in support of AT_HWCAP2.
45104         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45105         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45106         GLRO(dl_hwcap2).
45107         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45108         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45109         explicitly the unknown a_type display mechanism is used.
45110         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45111         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45112         struct member.
45113         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45114         to macro prototype for AT_HWCAP2 support.
45115         * sysdeps/i386/dl-procinfo.h: Likewise.
45116         * sysdeps/s390/dl-procinfo.h: Likewise.
45117         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45118         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45119         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45120         return -1 for unknown a_type display fallback.
45121         * sysdeps/sparc/dl-procinfo.h: Likewise.
45122         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45123         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45124
45125 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45126
45127         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45128         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45129
45130 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45131
45132         [BZ #12492]
45133         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45134         mprotect making __stack_prot writable.
45135
45136 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45137             Joseph Myers  <joseph@codesourcery.com>
45138
45139         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45140         as being properly aligned.
45141
45142 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45143
45144         * dlfcn/modstatic5.c: New file.
45145         * dlfcn/tststatic5.c: New file.
45146         * dlfcn/Makefile (tests): Add tststatic5.
45147         (tests-static): Likewise.
45148         (modules-names): Add modstatic5.
45149         (tststatic5-ENV): New variable.
45150         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45151
45152         [BZ #15022]
45153         * elf/dl-support.c (_dl_main_map): New variable.
45154         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45155         (_dl_nns, _dl_load_adds): Set to 1.
45156         (_dl_initial_searchlist): Refer to _dl_main_map.
45157         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45158         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45159         call to _dl_get_origin.
45160         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45161         around call_map.
45162         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45163         * dlfcn/modstatic3.c: New file.
45164         * dlfcn/tststatic3.c: New file.
45165         * dlfcn/tststatic4.c: New file.
45166         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45167         (tests-static): Likewise.
45168         (modules-names): Add modstatic3.
45169         (tststatic3-ENV, tststatic4-ENV): New variables.
45170         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45171         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45172
45173 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45174
45175         * configure.in (CC): Require GCC version 4.4 or later.
45176         * configure: Regenerated.
45177         * manual/install.texi (Tools for Compilation): Update GCC version
45178         requirement.
45179         * INSTALL: Regenerated.
45180
45181 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45182
45183         [BZ #15674]
45184         * string/test-memcmp.c (check2): New.
45185         (main): Call check2.
45186
45187         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45188
45189 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45190
45191         [BZ #15022]
45192         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45193         over to...
45194         (dl_open_worker) [!SHARED]: ... here.
45195
45196 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45197
45198         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45199
45200 2013-06-25  Richard Henderson  <rth@redhat.com>
45201
45202         * locale/programs/locarchive.c: Include <libc-internal.h>
45203
45204 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45205
45206         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45207         trailing whitespace removed.
45208
45209 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45210
45211         [BZ #10283]
45212         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45213         * locale/programs/locarchive.c: Include libc-mmap.h.
45214         (prepare_address_space): Take two new outputs (the mmap base and len).
45215         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45216         values.
45217         (create_archive): Declare new mmap base and len values for
45218         prepare_address_space, and store the result in ah.
45219         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45220         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45221         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45222         Declare new mmap base and len values for
45223         prepare_address_space, and store the result in new_ah.
45224         (open_archive): Declare new mmap base and len values for
45225         prepare_address_space, and store the result in ah.
45226         (close_archive): If ah->mmap_base is not NULL, use that and
45227         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45228         * sysdeps/generic/libc-mmap.h: New file.
45229
45230 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45231
45232         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45233         (ALIGN_UP): Likewise.
45234         (PTR_ALIGN_DOWN): Likewise.
45235         (PTR_ALIGN_UP): Likewise.
45236
45237 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45238
45239         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45240         entry mapped to PPC_PLATFORM_POWER8.
45241         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45242         POWER8.
45243         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45244         (_dl_string_platform): Add case for exporting platform position for
45245         POWER8.
45246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45247         search path to sysdeps/powerpc/powerpc32/power8 directory.
45248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45249         search path to sysdeps/powerpc/powerpc64/power8 directory.
45250         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45251         power7 directories.
45252         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45253         power7 directories.
45254
45255 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45256
45257         * INSTALL: Regenerate.
45258
45259         * nscd/connections.c (nscd_init): Fix comment.
45260
45261 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45262
45263         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45264
45265         [BZ #15667]
45266         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45267         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45268
45269 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45270
45271         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45272         DL_DST_REQ_STATIC.
45273         (DL_DST_REQ_STATIC): Remove macro.
45274
45275 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45276
45277         [BZ #7006]
45278         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45279         with a shift of 0 bits.
45280
45281 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45282
45283         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45284         $(tststatic-ENV).
45285
45286 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45287
45288         [BZ #15655]
45289         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45290
45291 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45292
45293         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45294         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45295         accepts -fno-tree-loop-distribute-patterns.
45296         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45297         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45298         recursive call.
45299         * string/memset.c (memset): Likewise.
45300         * string/test-memmove.c (simple_memmove): Disable loop transformation
45301         to library calls.
45302         * string/test-memset.c (simple_memset): Likewise.
45303         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45304         * benchtests/bench-memset.c (simple_memset): Likewise.
45305         * configure: Regenerated.
45306
45307 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45308
45309         * math/test-misc.c (main): Ignore fesetround failure when failures
45310         of subsequent rounding tests would be ignored.
45311
45312         [BZ #15654]
45313         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45314         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45315         * math/fegetenv.c (__fegetenv): Return 0.
45316         * math/fegetexcept.c (fegetexcept): Return 0.
45317         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45318         FE_TONEAREST.
45319         * math/feholdexcpt.c (feholdexcept): Return 0.
45320         * math/fesetenv.c (__fesetenv): Return 0.
45321         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45322         argument FE_TONEAREST.
45323         * math/feupdateenv.c (__feupdateenv): Return 0.
45324         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45325
45326 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45327
45328         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45329         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45330         ($(objpfx)rtld-%.os rules): Use them.
45331
45332 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45333
45334         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45335         fields.
45336
45337 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45338
45339         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45340         length of target pattern, then descending length of dependency pattern.
45341         * configure.in (AWK): Require gawk 3.1.2 or newer.
45342         * manual/install.texi (Tools for Compilation): Say that we do.
45343         * configure: Regenerated.
45344
45345         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45346         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45347         * scripts/sysd-rules.awk: ... this new script.
45348         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45349         than a glob-style pattern.
45350
45351 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45352
45353         * math/test-misc.c (main): Do not treat incorrectly rounded
45354         conversions as failure unless ROUNDING_TESTS passes.
45355
45356 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45357
45358         [BZ #15631]
45359         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45360         restore exception state around main square root computation, then
45361         check for inexactness explicitly.
45362
45363         * math/libm-test.inc (fma_test_data): Add another test.
45364
45365 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45366
45367         * manual/threads.texi (Non-POSIX Extensions): New document
45368         node.  Document pthread_getattr_default_np and
45369         pthread_setattr_default_np.
45370
45371         * Versions.def (libpthread): Add GLIBC_2.18.
45372         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45374         Likewise.
45375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45376         Likewise.
45377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45378         Likewise.
45379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45380         Likewise.
45381         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45382         Likewise.
45383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45384         Likewise.
45385         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45386         Likewise.
45387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45388         Likewise.
45389         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45390         Likewise.
45391
45392 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45393
45394         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45395         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45396
45397 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45398             H.J. Lu  <hjl.tools@gmail.com>
45399
45400         [BZ #15627]
45401         * sysdeps/x86_64/rtld-memset.c: Remove file.
45402         * sysdeps/x86_64/rtld-memset.S: New file.
45403
45404 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45405
45406         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45407         (test_in_one_mode): Take arguments for whether the rounding mode
45408         is supported for each floating-point type.
45409         (do_test): Pass new arguments to test_in_one_mode using
45410         ROUNDING_TESTS.
45411
45412 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45413
45414         * posix/tst-waitid.c (do_test): Distinguish different instances of
45415         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45416         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45417         before entering the kernel for waitpid.
45418
45419 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45420
45421         * NEWS: Fix note on clock function precision.  Text by Roland
45422         McGrath.
45423
45424 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45425
45426         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45427         it into place only when and if the sanity check passes.
45428
45429 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45430
45431         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45432         output for whether conversion result is exact.  Take argument
45433         indicating whether type is IBM long double.
45434         (round_for_all): Change need_exact field to ibm_ld.
45435         * stdlib/tst-strtod-round.c (struct exactness): New type.
45436         (struct test): Change bool ld_ok field to struct exactness exact.
45437         (TEST): Update all definitions for change to field.
45438         (tests): Regenerate array contents.
45439         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45440         field value.  Check for IBM long double here.
45441         (do_test): Update calls to test_in_one_mode.
45442
45443 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45444
45445         [BZ #12515]
45446         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45447         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45448
45449 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45450
45451         [BZ #15605]
45452         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45453         generated by the compiler on loop optimizations.
45454         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45455         general definitions.
45456
45457 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45458
45459         * math/bug-nextafter.c: Include <math-tests.h>.
45460         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45461         the relevant type.
45462         * math/bug-nexttoward.c: Include <math-tests.h>.
45463         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45464         the relevant type.
45465         * math/test-misc.c: Include <math-tests.h>.
45466         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45467         the relevant type.
45468
45469 2013-06-12  Andreas Jaeger  <aj@suse.de>
45470
45471         * po/ia.po: Update Interlingua translation from translation
45472         project.
45473
45474 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45475
45476         * include/fenv.h: Include stdbool.h.
45477         (struct rm_ctx): New structure.
45478         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45479         Define macro.
45480         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45481         (SET_RESTORE_ROUNDF): Likewise.
45482         (SET_RESTORE_ROUNDL): Likewise.
45483         (SET_RESTORE_ROUND_NOEX): Likewise.
45484         (SET_RESTORE_ROUND_NOEXF): Likewise.
45485         (SET_RESTORE_ROUND_NOEXL): Likewise.
45486         (SET_RESTORE_ROUND_53BIT): Likewise.
45487         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45488         (libc_feresetround_noexf_ctx): Likewise.
45489         (libc_feresetround_noexl_ctx): Likewise.
45490         (libc_feholdsetround_53bit_ctx): Likewise.
45491         (libc_feresetround_53bit_ctx): Likewise.
45492         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45493         (libc_feholdexcept_setround_sse_ctx): New function.
45494         (libc_fesetenv_sse_ctx): Likewise.
45495         (libc_feupdateenv_sse_ctx): Likewise.
45496         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45497         (libc_feholdexcept_setround_387_ctx): Likewise.
45498         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45499         (libc_feholdsetround_387_prec_ctx): Likewise.
45500         (libc_feholdsetround_387_ctx): Likewise.
45501         (libc_feholdsetround_387_53bit_ctx): Likewise.
45502         (libc_feholdsetround_sse_ctx): Likewise.
45503         (libc_feresetround_sse_ctx): Likewise.
45504         (libc_feresetround_387_ctx): Likewise.
45505         (libc_feupdateenv_387_ctx): Likewise.
45506         (libc_feholdexcept_setroundf_ctx): Define macro.
45507         (libc_fesetenvf_ctx): Likewise.
45508         (libc_feupdateenvf_ctx): Likewise.
45509         (libc_feholdsetroundf_ctx): Likewise.
45510         (libc_feresetroundf_ctx): Likewise.
45511         (libc_feholdexcept_setround_ctx): Likewise.
45512         (libc_fesetenv_ctx): Likewise.
45513         (libc_feupdateenv_ctx): Likewise.
45514         (libc_feholdsetround_ctx): Likewise.
45515         (libc_feresetround_ctx): Likewise.
45516         (libc_feholdexcept_setroundl_ctx): Likewise.
45517         (libc_feupdateenvl_ctx): Likewise.
45518         (libc_feholdsetroundl_ctx): Likewise.
45519         (libc_feresetroundl_ctx): Likewise.
45520         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45521         (libc_feresetround_53bit_ctx): Likewise.
45522
45523 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45524
45525         * locale/iso-639.def: Convert to UTF-8.
45526
45527 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45528
45529         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45530         (EXCEPTION_TESTS_double): Likewise.
45531         (EXCEPTION_TESTS_long_double): Likewise.
45532         (EXCEPTION_TESTS): Likewise.
45533         * math/libm-test.inc (test_exceptions): Only test exceptions if
45534         EXCEPTION_TESTS (FLOAT).
45535
45536 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45537
45538         * benchtests/Makefile (string-bench): Add strcpy_chk and
45539         stpcpy_chk.
45540         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45541         * benchtests/bench-stpcpy_chk.c: New file.
45542         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45543         * benchtests/bench-strcpy_chk.c: New file.
45544         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45545         code.
45546         (do_test): Likewise.
45547
45548 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45549
45550         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45551         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45552         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45553         with tabs where appropriate.
45554         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45555         dl-procinfo.h.
45556         [PPC_PLATFORM_PPC440]: Likewise.
45557         [PPC_PLATFORM_PPC464]: Likewise.
45558         [PPC_PLATFORM_PPC476]: Likewise.
45559         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45560         ppc464, and ppc476 platform strings merging from ports/
45561         dl-procinfo.h.
45562
45563 2013-06-11  Andreas Schwab  <schwab@suse.de>
45564
45565         [BZ #14991]
45566         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45567         (from_ucs4_idx): Regenerate.
45568         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45569         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45570         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45571         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45572         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45573         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45574         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45575         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45576         from FROM_LOOP and TO_LOOP specific macros.
45577         (BODY): Handle combining characters.
45578         * iconvdata/BIG5HKSCS.irreversible: Update.
45579         * iconvdata/BIG5HKSCS.precomposed: New file.
45580         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45581         characters.
45582         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45583
45584 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45585
45586         * include/sys/time.h: Fix indentation and add copyright header.
45587
45588         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45589         (do_test): Likewise.
45590         * string/test-memchr.c (do_one_test): Likewise.
45591         (do_test): Likewise.
45592         * string/test-memcmp.c (do_one_test): Likewise.
45593         (do_test): Likewise.
45594         * string/test-memcpy.c (do_one_test): Likewise.
45595         (do_test): Likewise.
45596         * string/test-memmem.c (do_one_test): Likewise.
45597         (do_test): Likewise.
45598         (do_random_tests): Likewise.
45599         * string/test-memmove.c (do_one_test): Likewise.
45600         (do_test): Likewise.
45601         * string/test-memset.c (do_one_test): Likewise.
45602         (do_test): Likewise.
45603         * string/test-rawmemchr.c (do_one_test): Likewise.
45604         (do_test): Likewise.
45605         * string/test-strcasecmp.c (do_one_test): Likewise.
45606         (do_test): Likewise.
45607         * string/test-strcasestr.c (do_one_test): Likewise.
45608         (do_test): Likewise.
45609         * string/test-strcat.c (do_one_test): Likewise.
45610         (do_test): Likewise.
45611         * string/test-strchr.c (do_one_test): Likewise.
45612         (do_test): Likewise.
45613         * string/test-strcmp.c (do_one_test): Likewise.
45614         (do_test): Likewise.
45615         * string/test-strcpy.c (do_one_test): Likewise.
45616         (do_test): Likewise.
45617         * string/test-string.h: Likewise.
45618         (test_init): Likewise.
45619         * string/test-strlen.c (do_one_test): Likewise.
45620         (do_test): Likewise.
45621         * string/test-strncasecmp.c (do_one_test): Likewise.
45622         (do_test): Likewise.
45623         * string/test-strncat.c (do_one_test): Likewise.
45624         (do_test): Likewise.
45625         * string/test-strncmp.c (do_one_test): Likewise.
45626         (do_test_limit): Likewise.
45627         (do_test): Likewise.
45628         * string/test-strncpy.c (do_one_test): Likewise.
45629         (do_test): Likewise.
45630         * string/test-strnlen.c (do_one_test): Likewise.
45631         (do_test): Likewise.
45632         * string/test-strpbrk.c (do_one_test): Likewise.
45633         (do_test): Likewise.
45634         * string/test-strrchr.c (do_one_test): Likewise.
45635         (do_test): Likewise.
45636         * string/test-strspn.c (do_one_test): Likewise.
45637         (do_test): Likewise.
45638         * string/test-strstr.c (do_one_test): Likewise.
45639         (do_test): Likewise.
45640
45641         * benchtests/Makefile (string-bench): Add string benchmarks.
45642         * benchtests/bench-bcopy-ifunc.c: New file.
45643         * benchtests/bench-bcopy.c: New file.
45644         * benchtests/bench-bzero-ifunc.c: New file.
45645         * benchtests/bench-bzero.c: New file.
45646         * benchtests/bench-memccpy-ifunc.c: New file.
45647         * benchtests/bench-memccpy.c: New file.
45648         * benchtests/bench-memchr-ifunc.c: New file.
45649         * benchtests/bench-memchr.c: New file.
45650         * benchtests/bench-memcmp-ifunc.c: New file.
45651         * benchtests/bench-memcmp.c: New file.
45652         * benchtests/bench-memmem-ifunc.c: New file.
45653         * benchtests/bench-memmem.c: New file.
45654         * benchtests/bench-memmove-ifunc.c: New file.
45655         * benchtests/bench-memmove.c: New file.
45656         * benchtests/bench-mempcpy-ifunc.c: New file.
45657         * benchtests/bench-mempcpy.c: New file.
45658         * benchtests/bench-memset-ifunc.c: New file.
45659         * benchtests/bench-memset.c: New file.
45660         * benchtests/bench-rawmemchr-ifunc.c: New file.
45661         * benchtests/bench-rawmemchr.c: New file.
45662         * benchtests/bench-stpcpy-ifunc.c: New file.
45663         * benchtests/bench-stpcpy.c: New file.
45664         * benchtests/bench-stpncpy-ifunc.c: New file.
45665         * benchtests/bench-stpncpy.c: New file.
45666         * benchtests/bench-strcasecmp-ifunc.c: New file.
45667         * benchtests/bench-strcasecmp.c: New file.
45668         * benchtests/bench-strcasestr-ifunc.c: New file.
45669         * benchtests/bench-strcasestr.c: New file.
45670         * benchtests/bench-strcat-ifunc.c: New file.
45671         * benchtests/bench-strcat.c: New file.
45672         * benchtests/bench-strchr-ifunc.c: New file.
45673         * benchtests/bench-strchr.c: New file.
45674         * benchtests/bench-strchrnul-ifunc.c: New file.
45675         * benchtests/bench-strchrnul.c: New file.
45676         * benchtests/bench-strcmp-ifunc.c: New file.
45677         * benchtests/bench-strcmp.c: New file.
45678         * benchtests/bench-strcpy-ifunc.c: New file.
45679         * benchtests/bench-strcpy.c: New file.
45680         * benchtests/bench-strcspn-ifunc.c: New file.
45681         * benchtests/bench-strcspn.c: New file.
45682         * benchtests/bench-strlen-ifunc.c: New file.
45683         * benchtests/bench-strlen.c: New file.
45684         * benchtests/bench-strncasecmp-ifunc.c: New file.
45685         * benchtests/bench-strncasecmp.c: New file.
45686         * benchtests/bench-strncat-ifunc.c: New file.
45687         * benchtests/bench-strncat.c: New file.
45688         * benchtests/bench-strncmp-ifunc.c: New file.
45689         * benchtests/bench-strncmp.c: New file.
45690         * benchtests/bench-strncpy-ifunc.c: New file.
45691         * benchtests/bench-strncpy.c: New file.
45692         * benchtests/bench-strnlen-ifunc.c: New file.
45693         * benchtests/bench-strnlen.c: New file.
45694         * benchtests/bench-strpbrk-ifunc.c: New file.
45695         * benchtests/bench-strpbrk.c: New file.
45696         * benchtests/bench-strrchr-ifunc.c: New file.
45697         * benchtests/bench-strrchr.c: New file.
45698         * benchtests/bench-strspn-ifunc.c: New file.
45699         * benchtests/bench-strspn.c: New file.
45700         * benchtests/bench-strstr-ifunc.c: New file.
45701         * benchtests/bench-strstr.c: New file.
45702
45703         * benchtests/Makefile: Disable parallel execution of targets.
45704         (string-bench): Add memcpy.
45705         (benchset): New variable to store a list of benchmark sets.
45706         (bench-func): Renamed from bench.
45707         (bench-set): New target.
45708         (bench): Depend on bench-func and bench-set.
45709         * benchtests/README: Add section on benchmark sets.
45710         * benchtests/bench-memcpy-ifunc.c: New file.
45711         * benchtests/bench-memcpy.c: New file.
45712         * benchtests/bench-string.h: New file.
45713
45714 2013-06-11  Andreas Schwab  <schwab@suse.de>
45715
45716         [BZ #15577]
45717         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45718         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45719         values in the triple.
45720         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45721         terminator in the group key.
45722
45723 2013-06-11  Andreas Jaeger  <aj@suse.de>
45724
45725         * po/zh_TW.po: Update Chinese (traditional) translation from
45726         translation project.
45727
45728 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45729
45730         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45731         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45732         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45733         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45734         (clock_getcpuclockid): Likewise.
45735         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45736         Add weak_alias and libc_hidden_def.
45737         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45738         * rt/clock_gettime.c (clock_gettime): Rename to
45739         __clock_gettime.  Add weak_alias and libc_hidden_def.
45740         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45741         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45742         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45743         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45744         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45745         Likewise.
45746         * rt/clock_settime.c (clock_settime): Rename to
45747         __clock_settime.  Add weak_alias and libc_hidden_def.
45748         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45749
45750 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45751
45752         * mach/err_boot.sub: Remove trailing whitespace.
45753         * mach/err_ipc.sub: Likewise.
45754         * mach/err_mach.sub: Likewise.
45755
45756         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45757         (ROUNDING_TESTS_double): Likewise.
45758         (ROUNDING_TESTS_long_double): Likewise.
45759         (ROUNDING_TESTS): Likewise.
45760         * math/libm-test.inc: Include <math-tests.h>.
45761         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45762         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45763         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45764         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45765
45766 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45767
45768         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45769         of assigning.
45770
45771 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45772
45773         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45774         otherwise empty TRANS lines.
45775         * sysdeps/gnu/errlist.c: Regenerated.
45776
45777         * catgets/gencat.c (error_print): Use (void) in function
45778         definition.
45779         * crypt/crypt_util.c (__init_des): Likewise.
45780         * crypt/speeds.c (Stop): Likewise.
45781         (main): Likewise.
45782         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45783         * inet/ruserpass.c (token): Likewise.
45784         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45785         * intl/localealias.c (extend_alias_table): Likewise.
45786         * intl/plural-exp.c (init_germanic_plural): Likewise.
45787         * libio/fcloseall.c (__fcloseall): Likewise.
45788         * libio/genops.c (_IO_flush_all): Likewise.
45789         (_IO_flush_all_linebuffered): Likewise.
45790         (_IO_cleanup): Likewise.
45791         (_IO_iter_begin): Likewise.
45792         (_IO_iter_end): Likewise.
45793         (_IO_list_lock): Likewise.
45794         (_IO_list_unlock): Likewise.
45795         (_IO_list_resetlock): Likewise.
45796         * libio/getchar.c (getchar): Likewise.
45797         * libio/getchar_u.c (getchar_unlocked): Likewise.
45798         * libio/getwchar.c (getwchar): Likewise.
45799         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45800         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45801         * login/getpt.c (__getpt): Likewise.
45802         * login/tst-utmp.c (main): Likewise.
45803         * malloc/hooks.c (__malloc_check_init): Likewise.
45804         * malloc/malloc.c (__malloc_stats): Likewise.
45805         * malloc/mtrace.c (tr_break): Likewise.
45806         (mtrace): Likewise.
45807         (muntrace): Likewise.
45808         * misc/fstab.c (endfsent): Likewise.
45809         * misc/getclktck.c (__getclktck): Likewise.
45810         * misc/getdtsz.c (__getdtablesize): Likewise.
45811         * misc/gethostid.c (gethostid): Likewise.
45812         * misc/getpagesize.c (__getpagesize): Likewise.
45813         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45814         (__get_nprocs): Likewise.
45815         (__get_phys_pages): Likewise.
45816         (__get_avphys_pages): Likewise.
45817         * misc/getttyent.c (getttyent): Likewise.
45818         (setttyent): Likewise.
45819         (endttyent): Likewise.
45820         * misc/getusershell.c (getusershell): Likewise.
45821         (endusershell): Likewise.
45822         (setusershell): Likewise.
45823         (initshells): Likewise.
45824         * misc/hsearch.c (__hdestroy): Likewise.
45825         * misc/sync.c (sync): Likewise.
45826         * misc/syslog.c (closelog_internal): Likewise.
45827         (closelog): Likewise.
45828         * misc/ttyslot.c (ttyslot): Likewise.
45829         * misc/vhangup.c (vhangup): Likewise.
45830         * posix/fork.c (__fork): Likewise.
45831         * posix/getegid.c (__getegid): Likewise.
45832         * posix/geteuid.c (__geteuid): Likewise.
45833         * posix/getgid.c (__getgid): Likewise.
45834         * posix/getpid.c (__getpid): Likewise.
45835         * posix/getppid.c (__getppid): Likewise.
45836         * posix/getuid.c (__getuid): Likewise.
45837         * posix/pause.c (pause): Likewise.
45838         * posix/setpgrp.c (setpgrp): Likewise.
45839         * posix/setsid.c (__setsid): Likewise.
45840         * posix/test-vfork.c (noop): Likewise.
45841         * resolv/gethnamaddr.c (_endhtent): Likewise.
45842         (_gethtent): Likewise.
45843         (ht_endhostent): Likewise.
45844         (gethostent): Likewise.
45845         (dns_service): Likewise.
45846         * stdlib/drand48.c (drand48): Likewise.
45847         * stdlib/lrand48.c (lrand48): Likewise.
45848         * stdlib/mrand48.c (mrand48): Likewise.
45849         * stdlib/rand.c (rand): Likewise.
45850         * stdlib/random.c (__random): Likewise.
45851         * stdlib/setenv.c (clearenv): Likewise.
45852         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45853         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45854         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45855         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45856         (__get_nprocs): Likewise.
45857         (__get_phys_pages): Likewise.
45858         (__get_avphys_pages): Likewise.
45859         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45860         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45861         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45862         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45863         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45864         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45865         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45866         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45867         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45868         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45869         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45870         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45871         * sysdeps/posix/clock.c (clock): Likewise.
45872         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45873         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45874         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45875         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45876         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45877         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45878         (__get_nprocs_conf): Likewise.
45879         (__get_phys_pages): Likewise.
45880         (__get_avphys_pages): Likewise.
45881         * time/clock.c (clock): Likewise.
45882         * time/tzset.c (__tzname_max): Likewise.
45883
45884 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45885
45886         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45887         (__bswap_32): Do not use "register".
45888         * crypt/crypt.c (_ufc_doit_r): Likewise.
45889         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45890         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45891         * gmon/gmon.c (__monstartup): Likewise.
45892         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45893         * hurd/hurdmalloc.c (more_memory): Likewise.
45894         (malloc): Likewise.
45895         (free): Likewise.
45896         (realloc): Likewise.
45897         (malloc_fork_prepare): Likewise.
45898         (malloc_fork_parent): Likewise.
45899         (malloc_fork_child): Likewise.
45900         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45901         (_svcauth_des): Likewise.
45902         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45903         * inet/inet_net.c (inet_network): Likewise.
45904         * inet/inet_netof.c (inet_netof): Likewise.
45905         * inet/rcmd.c (__validuser2_sa): Likewise.
45906         * io/fts.c (fts_open): Likewise.
45907         (fts_load): Likewise.
45908         (fts_close): Likewise.
45909         (fts_read): Likewise.
45910         (fts_children): Likewise.
45911         (fts_build): Likewise.
45912         (fts_stat): Likewise.
45913         (fts_sort): Likewise.
45914         (fts_alloc): Likewise.
45915         (fts_lfree): Likewise.
45916         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45917         (_IO_file_xsgetn): Likewise.
45918         (_IO_file_xsgetn_mmap): Likewise.
45919         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45920         (_IO_cookie_write): Likewise.
45921         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45922         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45923         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45924         * malloc/obstack.c (_obstack_begin): Likewise.
45925         (_obstack_begin_1): Likewise.
45926         (_obstack_newchunk): Likewise.
45927         (_obstack_allocated_p): Likewise.
45928         (obstack_free): Likewise.
45929         (_obstack_memory_used): Likewise.
45930         * misc/getttyent.c (getttynam): Likewise.
45931         (getttyent): Likewise.
45932         (skip): Likewise.
45933         (value): Likewise.
45934         * misc/getusershell.c (initshells): Likewise.
45935         * misc/syslog.c (__vsyslog_chk): Likewise.
45936         * misc/ttyslot.c (ttyslot): Likewise.
45937         * nis/nis_hash.c (__nis_hash): Likewise.
45938         * posix/fnmatch_loop.c (FCT): Likewise.
45939         * posix/getconf.c (print_all): Likewise.
45940         (main): Likewise.
45941         * posix/getopt.c (exchange): Likewise.
45942         * posix/glob.c (globfree): Likewise.
45943         (prefix_array): Likewise.
45944         (__glob_pattern_type): Likewise.
45945         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45946         (NS_GET32): Likewise.
45947         (NS_PUT16): Likewise.
45948         (NS_PUT32): Likewise.
45949         * resolv/gethnamaddr.c (getanswer): Likewise.
45950         (gethostbyname2): Likewise.
45951         (gethostbyaddr): Likewise.
45952         (_gethtent): Likewise.
45953         (_gethtbyname2): Likewise.
45954         (_gethtbyaddr): Likewise.
45955         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45956         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45957         * resolv/res_init.c (__res_vinit): Likewise.
45958         (net_mask): Likewise.
45959         * resolv/res_mkquery.c (outchar): Likewise.
45960         (PRINT): Likewise.
45961         * stdio-common/printf_fp.c (outchar): Likewise.
45962         (PRINT): Likewise.
45963         * stdio-common/printf_fphex.c (outchar): Likewise.
45964         (PRINT): Likewise.
45965         * stdio-common/printf_size.c (outchar): Likewise.
45966         (PRINT): Likewise.
45967         * stdio-common/test_rdwr.c (main): Likewise.
45968         * stdio-common/tfformat.c (matches): Likewise.
45969         * stdio-common/vfprintf.c (outchar): Likewise.
45970         (printf_unknown): Likewise.
45971         (buffered_vfprintf): Likewise.
45972         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45973         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45974         (ReadFile): Likewise.
45975         * stdlib/qsort.c (SWAP): Likewise.
45976         (_quicksort): Likewise.
45977         * stdlib/setenv.c (__add_to_environ): Likewise.
45978         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45979         * stdlib/strtol_l.c (__strtol_l): Likewise.
45980         * stdlib/tst-strtod.c (main): Likewise.
45981         * stdlib/tst-strtol.c (main): Likewise.
45982         * stdlib/tst-strtoll.c (main): Likewise.
45983         * string/bits/string2.h (__strcmp_cc): Likewise.
45984         (__strcmp_cg): Likewise.
45985         (__strcspn_c1): Likewise.
45986         (__strcspn_c2): Likewise.
45987         (__strcspn_c3): Likewise.
45988         (__strspn_c1): Likewise.
45989         (__strspn_c2): Likewise.
45990         (__strspn_c3): Likewise.
45991         (__strsep_1c): Likewise.
45992         (__strsep_2c): Likewise.
45993         (__strsep_3c): Likewise.
45994         * string/memccpy.c (__memccpy): Likewise.
45995         * string/stpcpy.c (__stpcpy): Likewise.
45996         * string/strcmp.c (strcmp): Likewise.
45997         * string/strrchr.c (strrchr): Likewise.
45998         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45999         Likewise.
46000         * sysdeps/mach/hurd/getcwd.c
46001         (_hurd_canonicalize_directory_name_internal): Likewise.
46002         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46003         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46004         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46005         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46006         Likewise, in both definitions.
46007         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46008         definitions.
46009         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46010         64] (__bswap_64): Likewise.
46011         * time/test_time.c (main): Likewise.
46012         * time/tzfile.c (__tzfile_read): Likewise.
46013         (__tzfile_compute): Likewise.
46014         * time/tzset.c (__tzset_parse_tz): Likewise.
46015         (tzset_internal): Likewise.
46016         (compute_change): Likewise.
46017         * wcsmbs/wcscat.c (__wcscat): Likewise.
46018         * wcsmbs/wcschr.c (wcschr): Likewise.
46019         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46020         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46021         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46022         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46023         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46024         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46025         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46026         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46027         * wcsmbs/wmemset.c (wmemset): Likewise.
46028
46029 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46030
46031         * scripts/config.guess: Update to version 2013-05-16.
46032         * scripts/config.sub: Update to version 2013-04-24.
46033         * scripts/install-sh: Update to version 2011-11-20.07.
46034         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46035         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46036
46037 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46038
46039         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46040         * elf/sln.c: Likewise.
46041         * hurd/hurd/ioctl.h: Likewise.
46042         * hurd/hurdmalloc.c: Likewise.
46043         * hurd/xattr.c: Likewise.
46044         * include/shlib-compat.h: Likewise.
46045         * inet/ruserpass.c: Likewise.
46046         * libio/iofgets_u.c: Likewise.
46047         * libio/iofgetws_u.c: Likewise.
46048         * locale/programs/ld-identification.c: Likewise.
46049         * locale/programs/ld-time.c: Likewise.
46050         * mach/msg-destroy.c: Likewise.
46051         * nss/nss_files/files-netgrp.c: Likewise.
46052         * resolv/res_data.c: Likewise.
46053         * soft-fp/op-1.h: Likewise.
46054         * soft-fp/op-2.h: Likewise.
46055         * soft-fp/op-4.h: Likewise.
46056         * soft-fp/op-common.h: Likewise.
46057         * stdio-common/printf_fphex.c: Likewise.
46058         * stdlib/strtod_l.c: Likewise.
46059         * sunrpc/rpc/clnt.h: Likewise.
46060         * sysdeps/generic/framestate.c: Likewise.
46061         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46062         * sysdeps/i386/bsd-setjmp.S: Likewise.
46063         * sysdeps/i386/__longjmp.S: Likewise.
46064         * sysdeps/i386/setjmp.S: Likewise.
46065         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46066         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46067         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46068         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46069         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46070         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46071         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46072         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46073         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46074         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46075         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46076         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46077         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46078         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46079         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46080         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46081         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46082         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46083         * sysdeps/ieee754/support.c: Likewise.
46084         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46085         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46086         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46087         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46088         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46089         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46090         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46091         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46092         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46093         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46094         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46095         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46096         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46097         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46098         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46099         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46100         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46102
46103 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46104
46105         * posix/transbug.c: Remove executable mode.
46106
46107 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46108
46109         * crypt/speeds.c: Remove trailing whitespace.
46110         * dlfcn/default.c: Likewise.
46111         * elf/ifuncdep2.c: Likewise.
46112         * elf/ifuncmain1.c: Likewise.
46113         * elf/ifuncmain1vis.c: Likewise.
46114         * elf/testobj.h: Likewise.
46115         * elf/tst-stackguard1.c: Likewise.
46116         * gmon/sys/gmon.h: Likewise.
46117         * hurd/hurdmsg.c: Likewise.
46118         * hurd/new-fd.c: Likewise.
46119         * hurd/ports-get.c: Likewise.
46120         * iconvdata/ibm1008_420.c: Likewise.
46121         * inet/tst-getni1.c: Likewise.
46122         * inet/tst-getni2.c: Likewise.
46123         * libio/ioungetc.c: Likewise.
46124         * libio/wfiledoalloc.c: Likewise.
46125         * manual/libm-err-tab.pl: Likewise.
46126         * math/w_dremf.c: Likewise.
46127         * misc/ftruncate.c: Likewise.
46128         * posix/bug-glob2.c: Likewise.
46129         * posix/tst-pcre.c: Likewise.
46130         * posix/wait4.c: Likewise.
46131         * resolv/README: Likewise.
46132         * resolv/res_debug.h: Likewise.
46133         * resolv/tst-inet_ntop.c: Likewise.
46134         * setjmp/bug269-setjmp.c: Likewise.
46135         * soft-fp/extended.h: Likewise.
46136         * soft-fp/op-1.h: Likewise.
46137         * soft-fp/op-2.h: Likewise.
46138         * soft-fp/op-4.h: Likewise.
46139         * soft-fp/op-8.h: Likewise.
46140         * soft-fp/testit.c: Likewise.
46141         * stdio-common/bug16.c: Likewise.
46142         * stdlib/random.c: Likewise.
46143         * sunrpc/rpcsvc/rquota.x: Likewise.
46144         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46145         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46146         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46147         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46148         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46149         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46150         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46151         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46152         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46153         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46154         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46155         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46156         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46157         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46158         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46159         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46160         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46161         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46162         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46163         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46164         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46165         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46166         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46167         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46168         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46169         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46170         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46171         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46172         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46173         * sysdeps/ieee754/s_lib_version.c: Likewise.
46174         * sysdeps/mach/hurd/check_fds.c: Likewise.
46175         * sysdeps/mach/hurd/getsockname.c: Likewise.
46176         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46177         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46178         * sysdeps/powerpc/bits/link.h: Likewise.
46179         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46180         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46181         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46182         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46183         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46184         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46185         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46186         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46187         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46188         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46189         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46190         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46191         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46192         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46193         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46194         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46195         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46196         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46197         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46198         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46199         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46200         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46201         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46202         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46203         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46204         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46205         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46206         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46207         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46208         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46209         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46210         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46211         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46212         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46213         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46214         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46215         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46216         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46217         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46218         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46219         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46220         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46221         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46222         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46223         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46224         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46225         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46226         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46227         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46228         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46229         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46230         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46231         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46232         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46233         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46234         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46235         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46236         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46237         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46238         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46239         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46240         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46241         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46242         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46243         * sysdeps/powerpc/sysdep.h: Likewise.
46244         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46245         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46246         * sysdeps/sh/dl-trampoline.S: Likewise.
46247         * sysdeps/sh/memset.S: Likewise.
46248         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46249         * sysdeps/sh/strlen.S: Likewise.
46250         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46251         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46252         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46253         * sysdeps/sparc/sparc32/rem.S: Likewise.
46254         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46255         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46256         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46257         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46258         * sysdeps/sparc/sparc32/urem.S: Likewise.
46259         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46260         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46261         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46262         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46263         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46264         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46265         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46266         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46267         * sysdeps/unix/bsd/times.c: Likewise.
46268         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46269         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46273         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46274         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46275         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46276         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46277         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46278         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46279         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46280         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46281         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46282         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46283         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46284         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46285         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46286         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46287         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46288         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46289         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46290         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46291         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46292         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46293         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46294         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46295         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46296         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46297         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46298         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46299         * sysdeps/x86_64/strcspn.S: Likewise.
46300
46301 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46302
46303         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46304         generated file.  Regenerate properly from gen-translit.pl.
46305         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46306         locale/C-translit.h.
46307
46308 2013-06-05  Andreas Schwab  <schwab@suse.de>
46309
46310         [BZ #15100]
46311         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46312         week as 6 instead of -1.
46313         * time/tst-strptime.c (day_tests): Add test case.
46314
46315 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46316
46317         * sysdeps/generic/math_private.h
46318         (libc_feholdexcept_setround_53bit): Replace with
46319         libc_feholdsetround_53bit.
46320         (libc_feupdateenv_53bit): Replace with
46321         libc_feresetround_53bit.
46322         (SET_RESTORE_ROUND_53BIT): Adjust.
46323
46324 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46325
46326         * string/test-strchrnul.c: Add copyright header.
46327
46328         * posix/tst-getaddrinfo4.c: Increase test timeout.
46329
46330 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46331
46332         [BZ #15536]
46333         * math/libm-test.inc (MAX_EXP): Remove
46334         (MIN_EXP): Define.
46335         (ulp): Use MIN_EXP - MANT_DIG.
46336         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46337
46338 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46339
46340         * po/be.po: Revert last change.
46341         * po/zh_CN.po: Likewise.
46342         * po/header.pot: Likewise.
46343
46344 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46345
46346         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46347         link-libc-deps to empty as target-specific variable.
46348         * Makerules (link-libc-args): New variable.
46349         (libc-for-link): Likewise.
46350         (link-libc-deps): Likewise.
46351         (lib%.so): Depend on $(link-libc-deps).  Link with
46352         $(link-libc-args).
46353         (build-module): Link with $(link-libc-args).
46354         (build-module-asneeded): Likewise.
46355         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46356         list of objects.
46357         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46358         target-specific variable.
46359         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46360         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46361         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46362         libc.
46363         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46364         libc and ld.so.
46365         ($(objpfx)libpcprofile.so): Likewise.
46366         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46367         libc_nonshared.a.
46368         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46369         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46370         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46371         $(link-libc-deps).
46372         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46373         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46374         * login/Makefile ($(objpfx)libutil.so): Likewise.
46375         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46376         * math/Makefile ($(objpfx)libm.so): Likewise.
46377         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46378         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46379         variable instead of depending directly on libc.
46380         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46381         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46382         $(link-libc-deps).
46383         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46384         libc.
46385         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46386         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46387         ($(objpfx)libanl.so): Likewise.
46388         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46389         ld.so.
46390         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46391         $(link-libc-deps).
46392         * sysdeps/i386/fpu/Makefile: Remove file.
46393         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46394         ($(objpfx)libm.so): Remove dependency on ld.so.
46395
46396 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46397
46398         [BZ # 15553]
46399         * nis/yp_xdr.c (XDRMAXNAME): Define.
46400         (XDRMAXRECORD): Define.
46401         (xdr_domainname): Use XDRMAXNAME.
46402         (xdr_mapname): Likewise.
46403         (xdr_peername): Likewise.
46404         (xdr_keydat): Use XDRMAXRECORD.
46405         (xdr_valdat): Likewise.
46406
46407 2013-05-30  Jeff Law  <law@redhat.com>
46408
46409         [BZ #14256]
46410         * manual/errno.texi (ESTALE): Update to account for more than
46411         just NFS file systems.
46412         * sysdeps/gnu/errlist.c: Regenerated.
46413
46414 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46415
46416         [BZ #15465]
46417         * elf/Makefile (tests): Add tst-null-argv.
46418         (modules-names):  Add tst-null-argv-lib.
46419         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46420         (tst-null-argv-ENV): Set environment for tst-null-argv.
46421         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46422         (RTLD_PROGNAME): New macro.
46423         * elf/tst-null-argv.c: New test case.
46424         * elf/tst-null-argv-lib.c: Library for test case.
46425         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46426         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46427         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46428         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46429         * elf/dl-init.c (call_init): Likewise.
46430         (_dl_init): Likewise.
46431         * elf/dl-load.c (print_search_path): Likewise.
46432         (_dl_map_object): Likewise.
46433         * elf/dl-lookup.c (do_lookup_x): Likewise.
46434         (add_dependency): Likewise.
46435         (_dl_lookup_symbol_x): Likewise.
46436         (_dl_debug_bindings): Likewise.
46437         * elf/dl-open.c (_dl_show_scope): Likewise.
46438         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46439         * elf/dl-version.c (match_symbol): Likewise.
46440         (_dl_check_map_versions): Likewise.
46441         * elf/rtld.c (dl_main): Likewise.
46442         (print_unresolved): Use RTLD_PROGNAME.
46443         (print_missing_version): Likewise.
46444         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46445         (elf_machine_rela): Likewise.
46446         * sysdeps/powerpc/powerpc32/dl-machine.c
46447         (__process_machine_rela): Likewise.
46448         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46449         Likewise.
46450         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46451         Likewise.
46452         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46453         Likewise.
46454         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46455         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46456         Likewise.
46457         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46458         Likewise.
46459         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46460
46461 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46462
46463         * po/be.po: Add descriptive title.
46464         * po/zh_CN.po: Likewise.
46465         * po/header.pot: Likewise.
46466
46467 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46468
46469         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46470         error message.
46471         (enlarge_archive): Likewise.
46472
46473 2013-05-28  Ben North  <ben@redfrontdoor.org>
46474
46475         * manual/arith.texi (frexp): It is the magnitude of the return
46476         value which lies in [0.5, 1), not the return value itself.
46477
46478 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46479
46480         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46481
46482 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46483
46484         * stdio-common/bug26.c (main): Correct fscanf template.
46485
46486         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46487         declare _dl_skip_args.
46488
46489         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46490         Don't declare.
46491
46492         * manual/platform.texi: Add missing @end deftypefun.
46493
46494 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46495
46496         [BZ #15529]
46497         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46498         bit of mantissa of 2^16382.
46499         * math/libm-test.inc (hypot_test_data): Add more tests.
46500
46501         * math/libm-test.inc: Add drem and pow10 to list of tested
46502         functions.
46503         (pow10_test): New function.
46504         (drem_test): Likewise.
46505         (drem_test_tonearest): Likewise.
46506         (drem_test_towardzero): Likewise.
46507         (drem_test_downward): Likewise.
46508         (drem_test_upward): Likewise.
46509         (main): Call the new functions.
46510
46511         * math/libm-test.inc (finite_test_data): Remove.
46512         (finite_test): Run tests from isfinite_test_data.
46513         (gamma_test_data): Remove.
46514         (gamma_test): Run tests from lgamma_test_data.
46515         * sysdeps/i386/fpu/libm-test-ulps: Update.
46516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46517
46518 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46519
46520         * manual/platform.texi: Add PowerPC PPR function set documentation.
46521         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46522         implementation.
46523
46524 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46525
46526         * math/libm-test.inc (MAX_EXP): Define.
46527         (ULPDIFF): Define.
46528         (ulp): New function.
46529         (check_float_internal): Use ULPDIFF.
46530         (cpow_test): Disable failing test.
46531         (check_ulp): Test ulp() implemetnation.
46532         (main): Call check_ulp before starting tests.
46533
46534 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46535
46536         * math/gen-libm-test.pl (generate_testfile): Do not handle
46537         START_DATA and END_DATA.
46538         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46539         END_DATA.
46540         (acos_tonearest_test_data): Likewise.
46541         (acos_towardzero_test_data): Likewise.
46542         (acos_downward_test_data): Likewise.
46543         (acos_upward_test_data): Likewise.
46544         (acosh_test_data): Likewise.
46545         (asin_test_data): Likewise.
46546         (asin_tonearest_test_data): Likewise.
46547         (asin_towardzero_test_data): Likewise.
46548         (asin_downward_test_data): Likewise.
46549         (asin_upward_test_data): Likewise.
46550         (asinh_test_data): Likewise.
46551         (atan_test_data): Likewise.
46552         (atanh_test_data): Likewise.
46553         (atan2_test_data): Likewise.
46554         (cabs_test_data): Likewise.
46555         (cacos_test_data): Likewise.
46556         (cacosh_test_data): Likewise.
46557         (carg_test_data): Likewise.
46558         (casin_test_data): Likewise.
46559         (casinh_test_data): Likewise.
46560         (catan_test_data): Likewise.
46561         (catanh_test_data): Likewise.
46562         (cbrt_test_data): Likewise.
46563         (ccos_test_data): Likewise.
46564         (ccosh_test_data): Likewise.
46565         (ceil_test_data): Likewise.
46566         (cexp_test_data): Likewise.
46567         (cimag_test_data): Likewise.
46568         (clog_test_data): Likewise.
46569         (clog10_test_data): Likewise.
46570         (conj_test_data): Likewise.
46571         (copysign_test_data): Likewise.
46572         (cos_test_data): Likewise.
46573         (cos_tonearest_test_data): Likewise.
46574         (cos_towardzero_test_data): Likewise.
46575         (cos_downward_test_data): Likewise.
46576         (cos_upward_test_data): Likewise.
46577         (cosh_test_data): Likewise.
46578         (cosh_tonearest_test_data): Likewise.
46579         (cosh_towardzero_test_data): Likewise.
46580         (cosh_downward_test_data): Likewise.
46581         (cosh_upward_test_data): Likewise.
46582         (cpow_test_data): Likewise.
46583         (cproj_test_data): Likewise.
46584         (creal_test_data): Likewise.
46585         (csin_test_data): Likewise.
46586         (csinh_test_data): Likewise.
46587         (csqrt_test_data): Likewise.
46588         (ctan_test_data): Likewise.
46589         (ctan_tonearest_test_data): Likewise.
46590         (ctan_towardzero_test_data): Likewise.
46591         (ctan_downward_test_data): Likewise.
46592         (ctan_upward_test_data): Likewise.
46593         (ctanh_test_data): Likewise.
46594         (ctanh_tonearest_test_data): Likewise.
46595         (ctanh_towardzero_test_data): Likewise.
46596         (ctanh_downward_test_data): Likewise.
46597         (ctanh_upward_test_data): Likewise.
46598         (erf_test_data): Likewise.
46599         (erfc_test_data): Likewise.
46600         (exp_test_data): Likewise.
46601         (exp_tonearest_test_data): Likewise.
46602         (exp_towardzero_test_data): Likewise.
46603         (exp_downward_test_data): Likewise.
46604         (exp_upward_test_data): Likewise.
46605         (exp10_test_data): Likewise.
46606         (exp2_test_data): Likewise.
46607         (expm1_test_data): Likewise.
46608         (fabs_test_data): Likewise.
46609         (fdim_test_data): Likewise.
46610         (finite_test_data): Likewise.
46611         (floor_test_data): Likewise.
46612         (fma_test_data): Likewise.
46613         (fma_towardzero_test_data): Likewise.
46614         (fma_downward_test_data): Likewise.
46615         (fma_upward_test_data): Likewise.
46616         (fmax_test_data): Likewise.
46617         (fmin_test_data): Likewise.
46618         (fmod_test_data): Likewise.
46619         (fpclassify_test_data): Likewise.
46620         (frexp_test_data): Likewise.
46621         (gamma_test_data): Likewise.
46622         (hypot_test_data): Likewise.
46623         (ilogb_test_data): Likewise.
46624         (isfinite_test_data): Likewise.
46625         (isgreater_test_data): Likewise.
46626         (isgreaterequal_test_data): Likewise.
46627         (isinf_test_data): Likewise.
46628         (isless_test_data): Likewise.
46629         (islessequal_test_data): Likewise.
46630         (islessgreater_test_data): Likewise.
46631         (isnan_test_data): Likewise.
46632         (isnormal_test_data): Likewise.
46633         (issignaling_test_data): Likewise.
46634         (isunordered_test_data): Likewise.
46635         (j0_test_data): Likewise.
46636         (j1_test_data): Likewise.
46637         (jn_test_data): Likewise.
46638         (ldexp_test_data): Likewise.
46639         (lgamma_test_data): Likewise.
46640         (lrint_test_data): Likewise.
46641         (lrint_tonearest_test_data): Likewise.
46642         (lrint_towardzero_test_data): Likewise.
46643         (lrint_downward_test_data): Likewise.
46644         (lrint_upward_test_data): Likewise.
46645         (llrint_test_data): Likewise.
46646         (llrint_tonearest_test_data): Likewise.
46647         (llrint_towardzero_test_data): Likewise.
46648         (llrint_downward_test_data): Likewise.
46649         (llrint_upward_test_data): Likewise.
46650         (log_test_data): Likewise.
46651         (log10_test_data): Likewise.
46652         (log1p_test_data): Likewise.
46653         (log2_test_data): Likewise.
46654         (logb_test_data): Likewise.
46655         (logb_downward_test_data): Likewise.
46656         (lround_test_data): Likewise.
46657         (llround_test_data): Likewise.
46658         (modf_test_data): Likewise.
46659         (nearbyint_test_data): Likewise.
46660         (nextafter_test_data): Likewise.
46661         (nexttoward_test_data): Likewise.
46662         (pow_test_data): Likewise.
46663         (pow_tonearest_test_data): Likewise.
46664         (pow_towardzero_test_data): Likewise.
46665         (pow_downward_test_data): Likewise.
46666         (pow_upward_test_data): Likewise.
46667         (remainder_test_data): Likewise.
46668         (remainder_tonearest_test_data): Likewise.
46669         (remainder_towardzero_test_data): Likewise.
46670         (remainder_downward_test_data): Likewise.
46671         (remainder_upward_test_data): Likewise.
46672         (remquo_test_data): Likewise.
46673         (rint_test_data): Likewise.
46674         (rint_tonearest_test_data): Likewise.
46675         (rint_towardzero_test_data): Likewise.
46676         (rint_downward_test_data): Likewise.
46677         (rint_upward_test_data): Likewise.
46678         (round_test_data): Likewise.
46679         (scalb_test_data): Likewise.
46680         (scalbn_test_data): Likewise.
46681         (scalbln_test_data): Likewise.
46682         (signbit_test_data): Likewise.
46683         (sin_test_data): Likewise.
46684         (sin_tonearest_test_data): Likewise.
46685         (sin_towardzero_test_data): Likewise.
46686         (sin_downward_test_data): Likewise.
46687         (sin_upward_test_data): Likewise.
46688         (sincos_test_data): Likewise.
46689         (sinh_test_data): Likewise.
46690         (sinh_tonearest_test_data): Likewise.
46691         (sinh_towardzero_test_data): Likewise.
46692         (sinh_downward_test_data): Likewise.
46693         (sinh_upward_test_data): Likewise.
46694         (sqrt_test_data): Likewise.
46695         (tan_test_data): Likewise.
46696         (tan_tonearest_test_data): Likewise.
46697         (tan_towardzero_test_data): Likewise.
46698         (tan_downward_test_data): Likewise.
46699         (tan_upward_test_data): Likewise.
46700         (tanh_test_data): Likewise.
46701         (tgamma_test_data): Likewise.
46702         (trunc_test_data): Likewise.
46703         (y0_test_data): Likewise.
46704         (y1_test_data): Likewise.
46705         (yn_test_data): Likewise.
46706         (significand_test_data): Likewise.
46707
46708         * math/gen-libm-test.pl (@functions): Remove variable.
46709         (generate_testfile): Don't handle START and END lines.
46710         * math/libm-test.inc (START): New macro.
46711         (END): Likewise.
46712         (END_COMPLEX): Likewise.
46713         (acos_test): Use END macro without arguments.
46714         (acos_test_tonearest): Likewise.
46715         (acos_test_towardzero): Likewise.
46716         (acos_test_downward): Likewise.
46717         (acos_test_upward): Likewise.
46718         (acosh_test): Likewise.
46719         (asin_test): Likewise.
46720         (asin_test_tonearest): Likewise.
46721         (asin_test_towardzero): Likewise.
46722         (asin_test_downward): Likewise.
46723         (asin_test_upward): Likewise.
46724         (asinh_test): Likewise.
46725         (atan_test): Likewise.
46726         (atanh_test): Likewise.
46727         (atan2_test): Likewise.
46728         (cabs_test): Likewise.
46729         (cacos_test): Use END_COMPLEX macro without arguments.
46730         (cacosh_test): Likewise.
46731         (carg_test): Use END macro without arguments.
46732         (casin_test): Use END_COMPLEX macro without arguments.
46733         (casinh_test): Likewise.
46734         (catan_test): Likewise.
46735         (catanh_test): Likewise.
46736         (cbrt_test): Use END macro without arguments.
46737         (ccos_test): Use END_COMPLEX macro without arguments.
46738         (ccosh_test): Likewise.
46739         (ceil_test): Use END macro without arguments.
46740         (cexp_test): Use END_COMPLEX macro without arguments.
46741         (cimag_test): Use END macro without arguments.
46742         (clog_test): Use END_COMPLEX macro without arguments.
46743         (clog10_test): Likewise.
46744         (conj_test): Likewise.
46745         (copysign_test): Use END macro without arguments.
46746         (cos_test): Likewise.
46747         (cos_test_tonearest): Likewise.
46748         (cos_test_towardzero): Likewise.
46749         (cos_test_downward): Likewise.
46750         (cos_test_upward): Likewise.
46751         (cosh_test): Likewise.
46752         (cosh_test_tonearest): Likewise.
46753         (cosh_test_towardzero): Likewise.
46754         (cosh_test_downward): Likewise.
46755         (cosh_test_upward): Likewise.
46756         (cpow_test): Use END_COMPLEX macro without arguments.
46757         (cproj_test): Likewise.
46758         (creal_test): Use END macro without arguments.
46759         (csin_test): Use END_COMPLEX macro without arguments.
46760         (csinh_test): Likewise.
46761         (csqrt_test): Likewise.
46762         (ctan_test): Likewise.
46763         (ctan_test_tonearest): Likewise.
46764         (ctan_test_towardzero): Likewise.
46765         (ctan_test_downward): Likewise.
46766         (ctan_test_upward): Likewise.
46767         (ctanh_test): Likewise.
46768         (ctanh_test_tonearest): Likewise.
46769         (ctanh_test_towardzero): Likewise.
46770         (ctanh_test_downward): Likewise.
46771         (ctanh_test_upward): Likewise.
46772         (erf_test): Use END macro without arguments.
46773         (erfc_test): Likewise.
46774         (exp_test): Likewise.
46775         (exp_test_tonearest): Likewise.
46776         (exp_test_towardzero): Likewise.
46777         (exp_test_downward): Likewise.
46778         (exp_test_upward): Likewise.
46779         (exp10_test): Likewise.
46780         (exp2_test): Likewise.
46781         (expm1_test): Likewise.
46782         (fabs_test): Likewise.
46783         (fdim_test): Likewise.
46784         (finite_test): Likewise.
46785         (floor_test): Likewise.
46786         (fma_test): Likewise.
46787         (fma_test_towardzero): Likewise.
46788         (fma_test_downward): Likewise.
46789         (fma_test_upward): Likewise.
46790         (fmax_test): Likewise.
46791         (fmin_test): Likewise.
46792         (fmod_test): Likewise.
46793         (fpclassify_test): Likewise.
46794         (frexp_test): Likewise.
46795         (gamma_test): Likewise.
46796         (hypot_test): Likewise.
46797         (ilogb_test): Likewise.
46798         (isfinite_test): Likewise.
46799         (isgreater_test): Likewise.
46800         (isgreaterequal_test): Likewise.
46801         (isinf_test): Likewise.
46802         (isless_test): Likewise.
46803         (islessequal_test): Likewise.
46804         (islessgreater_test): Likewise.
46805         (isnan_test): Likewise.
46806         (isnormal_test): Likewise.
46807         (issignaling_test): Likewise.
46808         (isunordered_test): Likewise.
46809         (j0_test): Likewise.
46810         (j1_test): Likewise.
46811         (jn_test): Likewise.
46812         (ldexp_test): Likewise.
46813         (lgamma_test): Likewise.
46814         (lrint_test): Likewise.
46815         (lrint_test_tonearest): Likewise.
46816         (lrint_test_towardzero): Likewise.
46817         (lrint_test_downward): Likewise.
46818         (lrint_test_upward): Likewise.
46819         (llrint_test): Likewise.
46820         (llrint_test_tonearest): Likewise.
46821         (llrint_test_towardzero): Likewise.
46822         (llrint_test_downward): Likewise.
46823         (llrint_test_upward): Likewise.
46824         (log_test): Likewise.
46825         (log10_test): Likewise.
46826         (log1p_test): Likewise.
46827         (log2_test): Likewise.
46828         (logb_test): Likewise.
46829         (logb_test_downward): Likewise.
46830         (lround_test): Likewise.
46831         (llround_test): Likewise.
46832         (modf_test): Likewise.
46833         (nearbyint_test): Likewise.
46834         (nextafter_test): Likewise.
46835         (nexttoward_test): Likewise.
46836         (pow_test): Likewise.
46837         (pow_test_tonearest): Likewise.
46838         (pow_test_towardzero): Likewise.
46839         (pow_test_downward): Likewise.
46840         (pow_test_upward): Likewise.
46841         (remainder_test): Likewise.
46842         (remainder_test_tonearest): Likewise.
46843         (remainder_test_towardzero): Likewise.
46844         (remainder_test_downward): Likewise.
46845         (remainder_test_upward): Likewise.
46846         (remquo_test): Likewise.
46847         (rint_test): Likewise.
46848         (rint_test_tonearest): Likewise.
46849         (rint_test_towardzero): Likewise.
46850         (rint_test_downward): Likewise.
46851         (rint_test_upward): Likewise.
46852         (round_test): Likewise.
46853         (scalb_test): Likewise.
46854         (scalbn_test): Likewise.
46855         (scalbln_test): Likewise.
46856         (signbit_test): Likewise.
46857         (sin_test): Likewise.
46858         (sin_test_tonearest): Likewise.
46859         (sin_test_towardzero): Likewise.
46860         (sin_test_downward): Likewise.
46861         (sin_test_upward): Likewise.
46862         (sincos_test): Likewise.
46863         (sinh_test): Likewise.
46864         (sinh_test_tonearest): Likewise.
46865         (sinh_test_towardzero): Likewise.
46866         (sinh_test_downward): Likewise.
46867         (sinh_test_upward): Likewise.
46868         (sqrt_test): Likewise.
46869         (tan_test): Likewise.
46870         (tan_test_tonearest): Likewise.
46871         (tan_test_towardzero): Likewise.
46872         (tan_test_downward): Likewise.
46873         (tan_test_upward): Likewise.
46874         (tanh_test): Likewise.
46875         (tgamma_test): Likewise.
46876         (trunc_test): Likewise.
46877         (y0_test): Likewise.
46878         (y1_test): Likewise.
46879         (yn_test): Likewise.
46880         (significand_test): Likewise.
46881
46882 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46883
46884         [BZ #15381]
46885         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46886
46887 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46888
46889         [BZ #14894]
46890         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46891         __ppc_mdoio and __ppc_mdoom.
46892         * manual/platform.texi: Document new functions __ppc_yield,
46893         __ppc_mdoio and __ppc_mdoom.
46894
46895 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46896
46897         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46898         (main): Mention "tls" pseudo-hwcap is legacy.
46899         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46900
46901 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46902
46903         * math/gen-libm-test.pl (parse_args): Output only string of
46904         arguments as text for test name, not full call or descriptions of
46905         tests for extra outputs.
46906         (generate_testfile): Do not pass function name to parse_args.
46907         Generate this_func variable from START.
46908         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46909         field to arg_str.
46910         (struct test_ff_f_data): Likewise.
46911         (test_ff_f_data_nexttoward): Likewise.
46912         (struct test_fi_f_data): Likewise.
46913         (struct test_fl_f_data): Likewise.
46914         (struct test_if_f_data): Likewise.
46915         (struct test_fff_f_data): Likewise.
46916         (struct test_c_f_data): Likewise.
46917         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46918         (struct test_fF_f1_data): Likewise.
46919         (struct test_ffI_f1_data): Likewise.
46920         (struct test_c_c_data): Rename test_name field to arg_str.
46921         (struct test_cc_c_data): Likewise.
46922         (struct test_f_i_data): Likewise.
46923         (struct test_ff_i_data): Likewise.
46924         (struct test_f_l_data): Likewise.
46925         (struct test_f_L_data): Likewise.
46926         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46927         and extra2_name.
46928         (COMMON_TEST_SETUP): New macro.
46929         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46930         (COMMON_TEST_CLEANUP): Likewise.
46931         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46932         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46933         macros.
46934         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46935         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46936         macros.
46937         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46938         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46939         cleanup macros.
46940         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46941         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46942         macros.
46943         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46944         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46945         macros.
46946         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46947         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46948         cleanup macros.
46949         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46950         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46951         cleanup macros.
46952         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46953         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46954         cleanup macros.
46955         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46956         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46957         macros.
46958         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46959         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46960         macros.
46961         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46962         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46963         macros.
46964         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46965         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46966         cleanup macros.
46967         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46968         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46969         cleanup macros.
46970         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46971         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46972         macros.
46973         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46974         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46975         cleanup macros.
46976         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46977         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46978         macros.
46979         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46980         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46981         macros.
46982         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46983         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46984         cleanup macros.
46985         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46986
46987 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46988
46989         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46990         to _sifields.sigfault.
46991         (si_addr_lsb): Define new macro.
46992         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46993         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46994         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46995
46996 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46997
46998         [BZ #15441]
46999         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47000         returns -1.
47001         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47002         null return -1.
47003         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47004         loading the domain.
47005
47006 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47007
47008         * math/gen-libm-test.pl (parse_args): Do not include expected
47009         result in test name.
47010         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47011         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47012         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47013         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47014         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47016
47017 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47018
47019         * benchtests/Makefile: Sort function entries.
47020
47021         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47022         tanh, asinh, acosh, atanh.
47023         * benchtests/acos-inputs: New file.
47024         * benchtests/acosh-inputs: New file.
47025         * benchtests/asin-inputs: New file.
47026         * benchtests/asinh-inputs: New file.
47027         * benchtests/atanh-inputs: New file.
47028         * benchtests/cosh-inputs: New file.
47029         * benchtests/log-inputs: New file.
47030         * benchtests/sinh-inputs: New file.
47031         * benchtests/tanh-inputs: New file.
47032
47033 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47034
47035         [BZ #15339]
47036         * posix/tst-getaddrinfo4.c: New test.
47037         * posix/Makefile (tests): Add it.
47038
47039 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47040
47041         [BZ #15339]
47042         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47043         when no services were used.
47044         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47045         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47046
47047 2013-05-21  Andreas Schwab  <schwab@suse.de>
47048
47049         [BZ #15014]
47050         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47051         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47052         successful.
47053         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47054         redundant variable declarations and reallocation of buffer when
47055         parsing as IPv6 address.  Always set NSS status when called from
47056         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47057         buffer too small.  Correct computation of needed size.
47058         * nss/Makefile (tests): Add test-digits-dots.
47059         * nss/test-digits-dots.c: New test.
47060
47061 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47062
47063         * benchtests/Makefile: Remove instructions for adding
47064         benchmark tests.
47065         * benchtests/README: New file to explain how to execute and
47066         enhance the benchmark tests.
47067
47068 2013-05-21  Andreas Schwab  <schwab@suse.de>
47069
47070         [BZ #15493]
47071         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47072         * setjmp/tst-sigsetjmp.c: New test.
47073
47074 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47075
47076         * sysdeps/x86_64/memset.S (memset): New implementation.
47077         (__bzero): Likewise.
47078         (__memset_tail): New function.
47079
47080 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47081
47082         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47083         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47084         __memcpy_sse2_unaligned ifunc selection.
47085         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47086         Add memcpy-sse2-unaligned.S.
47087         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47088         Add: __memcpy_sse2_unaligned.
47089
47090 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47091
47092         [BZ #15490]
47093         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47094         math_force_eval before restoring floating-point envrionment.
47095         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47096         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47097         Likewise.
47098         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47099         <math_private.h>.
47100         (__nearbyintl): Use math_force_eval before restoring
47101         floating-point environment.
47102         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47103
47104         * math/gen-libm-test.pl (special_functions): Remove.
47105         (parse_args): Don't handle TEST_extra.  Handle functions with no
47106         return value.
47107         * math/libm-test.inc (struct test_sincos_data): Replace with
47108         struct test_fFF_11_data.
47109         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47110         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47111         (sincos_test_data): Change element type to struct
47112         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47113         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47114         RUN_TEST_LOOP_sincos.
47115         * math/README.libm-test: Don't mention special handling of
47116         individual functions.
47117         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47118         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47119         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47120         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47121         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47123
47124         * math/gen-libm-test.pl (get_variable): Remove function.
47125         (parse_args): Don't show pointer parameters to call in test
47126         names.  Use "extra output N" in test names for extra outputs
47127         rather than naming variables.
47128
47129 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47130
47131         [BZ #15488]
47132         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47133         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47134         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47135         double tests.
47136         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47137         disable.
47138         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47139         check_long_double.
47140
47141         * math/gen-libm-test.pl (@tests): Remove variable.
47142         ($count): Likewise.
47143         (new_test): Remove function.
47144         (show_exceptions): New function.
47145         (special_functions): Use show_exceptions instead of new_test.
47146         (parse_args): Likewise.
47147         (generate_testfile): Pass only function name in generated call to
47148         print_max_error or print_complex_max_error.
47149         (get_ulps): Do not handle complex tests specially.
47150         (output_test): Rename to ...
47151         (get_all_ulps_for_test): ... this.  Return a string rather than
47152         printing to a file.  Require ulps to be present.
47153         (output_ulps): Generate arrays rather than #defines.
47154         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47155         (struct ulp_data): New type.
47156         (BUILD_COMPLEX_ULP): Remove macro.
47157         (compare_ulp_data): New function.
47158         (find_ulps): Likewise.
47159         (find_test_ulps): Likewise.
47160         (find_function_ulps): Likewise.
47161         (find_complex_function_ulps): Likewise.
47162         (print_max_error): Determine allowed ulps using
47163         find_function_ulps.
47164         (print_complex_max_error): Determine allowed ulps using
47165         find_complex_function_ulps.
47166         (check_float_internal): Determine max ulps using find_test_ulps.
47167         (check_float): Do not take max_ulp parameter.  Update call to
47168         check_float_internal.
47169         (check_complex): Likewise.
47170         (check_int): Do not take max_ulp parameter.
47171         (check_long): Likewise.
47172         (check_bool): Likewise.
47173         (check_longlong): Likewise.
47174         (struct test_f_f_data): Remove max_ulp field.
47175         (struct test_ff_f_data): Likewise.
47176         (struct test_ff_f_data_nexttoward): Likewise.
47177         (struct test_fi_f_data): Likewise.
47178         (struct test_fl_f_data): Likewise.
47179         (struct test_if_f_data): Likewise.
47180         (struct test_fff_f_data): Likewise.
47181         (struct test_c_f_data): Likewise.
47182         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47183         (struct test_fF_f1_data): Likewise.
47184         (struct test_ffI_f1_data): Likewise.
47185         (struct test_c_c_data): Remove max_ulp field.
47186         (struct test_cc_c_data): Likewise.
47187         (struct test_f_i_data): Likewise.
47188         (struct test_ff_i_data): Likewise.
47189         (struct test_f_l_data): Likewise.
47190         (struct test_f_L_data): Likewise.
47191         (struct test_sincos_data): Likewise.
47192         (RUN_TEST_f_f): Do not handle ulps.
47193         (RUN_TEST_LOOP_f_f): Likewise.
47194         (RUN_TEST_2_f): Likewise.
47195         (RUN_TEST_LOOP_2_f): Likewise.
47196         (RUN_TEST_fff_f): Likewise.
47197         (RUN_TEST_LOOP_fff_f): Likewise.
47198         (RUN_TEST_c_f): Likewise.
47199         (RUN_TEST_LOOP_c_f): Likewise.
47200         (RUN_TEST_f_f1): Likewise.
47201         (RUN_TEST_LOOP_f_f1): Likewise.
47202         (RUN_TEST_fF_f1): Likewise.
47203         (RUN_TEST_LOOP_fF_f1): Likewise.
47204         (RUN_TEST_fI_f1): Likewise.
47205         (RUN_TEST_LOOP_fI_f1): Likewise.
47206         (RUN_TEST_ffI_f1): Likewise.
47207         (RUN_TEST_LOOP_ffI_f1): Likewise.
47208         (RUN_TEST_c_c): Likewise.
47209         (RUN_TEST_LOOP_c_c): Likewise.
47210         (RUN_TEST_cc_c): Likewise.
47211         (RUN_TEST_LOOP_cc_c): Likewise.
47212         (RUN_TEST_f_i): Likewise.
47213         (RUN_TEST_LOOP_f_i): Likewise.
47214         (RUN_TEST_f_i_tg): Likewise.
47215         (RUN_TEST_LOOP_f_i_tg): Likewise.
47216         (RUN_TEST_ff_i_tg): Likewise.
47217         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47218         (RUN_TEST_f_b): Likewise.
47219         (RUN_TEST_LOOP_f_b): Likewise.
47220         (RUN_TEST_f_b_tg): Likewise.
47221         (RUN_TEST_LOOP_f_b_tg): Likewise.
47222         (RUN_TEST_f_l): Likewise.
47223         (RUN_TEST_LOOP_f_l): Likewise.
47224         (RUN_TEST_f_L): Likewise.
47225         (RUN_TEST_LOOP_f_L): Likewise.
47226         (RUN_TEST_sincos): Likewise.
47227         (RUN_TEST_LOOP_sincos): Likewise.
47228
47229 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47230
47231         [BZ #15480]
47232         [BZ #15485]
47233         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47234         main case of finite arguments, set rounding mode to FE_TONEAREST
47235         and discard exceptions.
47236         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47237         exceptions.
47238         (remainder_tonearest_test_data): New variable.
47239         (remainder_test_tonearest): New function.
47240         (remainder_towardzero_test_data): New variable.
47241         (remainder_test_towardzero): New function.
47242         (remainder_downward_test_data): New variable.
47243         (remainder_test_downward): New function.
47244         (remainder_upward_test_data): New variable.
47245         (remainder_test_upward): New function.
47246         (main): Call the new test functions.
47247
47248         * math/libm-test.inc (struct test_f_f1_data): Remove field
47249         extra_init.
47250         (struct test_fF_f1_data): Likewise.
47251         (struct test_ffI_f1_data): Likewise.
47252         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47253         based on value of EXTRA_EXPECTED.
47254         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47255         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47256         EXTRA_VAR based on value of EXTRA_EXPECTED.
47257         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47258         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47259         EXTRA_VAR based on value of EXTRA_EXPECTED.
47260         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47261         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47262         EXTRA_VAR based on value of EXTRA_EXPECTED.
47263         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47264         * math/gen-libm-test.pl (parse_args): Don't output initializers
47265         for extra output values.
47266
47267         * math/libm-test.inc (check_int): Expect result to be exactly
47268         equal to expected value and do not handle ulps.
47269         (check_long): Likewise.
47270         (check_longlong): Likewise.
47271
47272         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47273         exceptions.
47274         (cimag_test_data): Likewise.
47275         (conj_test_data): Likewise.
47276         (copysign_test_data): Likewise.
47277         (cproj_test_data): Likewise.
47278         (creal_test_data): Likewise.
47279         (fabs_test_data): Likewise.
47280         (fdim_test_data): Likewise.
47281         (finite_test_data): Likewise.
47282         (floor_test_data): Likewise.
47283         (fmax_test_data): Likewise.
47284         (fmin_test_data): Likewise.
47285         (fmod_test_data): Likewise.
47286         (fpclassify_test_data): Likewise.
47287         (frexp_test_data): Likewise.
47288         (ilogb_test_data): Likewise.
47289         (isfinite_test_data): Likewise.
47290         (isgreater_test_data): Likewise.
47291         (isgreaterequal_test_data): Likewise.
47292         (isinf_test_data): Likewise.
47293         (isless_test_data): Likewise.
47294         (islessequal_test_data): Likewise.
47295         (islessgreater_test_data): Likewise.
47296         (isnan_test_data): Likewise.
47297         (isnormal_test_data): Likewise.
47298         (issignaling_test_data): Likewise.
47299         (isunordered_test_data): Likewise.
47300         (ldexp_test_data): Likewise.
47301         (lrint_test_data): Likewise.
47302         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47303         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47304         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47305         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47306         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47307         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47308         test input.
47309         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47310         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47311         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47312         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47313         that test input.
47314         (lrint_downward_test_data): Test for "inexact" exceptions.
47315         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47316         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47317         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47318         test input.
47319         (lrint_upward_test_data): Test for "inexact" exceptions.
47320         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47321         test input.
47322         (llrint_test_data): Test for "inexact" exceptions.
47323         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47324         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47325         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47326         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47327         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47328         (llrint_downward_test_data): Test for "inexact" exceptions.
47329         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47330         (llrint_upward_test_data): Test for "inexact" exceptions.
47331         (logb_test_data): Likewise.
47332         (logb_downward_test_data): Likewise.
47333         (nextafter_test_data): Likewise.
47334         (nexttoward_test_data): Likewise.
47335         (remainder_test_data): Likewise.
47336         (remquo_test_data): Likewise.
47337         (scalbn_test_data): Likewise.
47338         (scalbln_test_data): Likewise.
47339         (signbit_test_data): Likewise.
47340         (sqrt_test_data): Likewise.
47341         (significand_test_data): Likewise.
47342
47343 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47344
47345         [BZ #15424]
47346         * benchtests/bench-modf.c (struct args): Mark arg0 as
47347         volatile.
47348         * scripts/bench.pl: Mark members of struct args as volatile.
47349
47350 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47351
47352         [BZ # 15497]
47353         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47354         negative infinity on POWER6 or lower.
47355         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47356
47357 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47358
47359         [BZ #15442]
47360         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47361         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47362         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47363         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47364         (_FP_SETQNAN): New macro.
47365         (_FP_SETQNAN_SEMIRAW): Likewise.
47366         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47367         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47368         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47369         (FP_EXTEND): Use _FP_FRAC_SNANP.
47370         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47371         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47372         into account.
47373         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47374         New macro.
47375         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47376         Likewise.
47377
47378 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47379
47380         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47381         with DIVIDE_BY_ZERO_EXCEPTION.
47382         (gamma_test_data): Likewise.
47383         (lgamma_test_data): Likewise.
47384         (log_test_data): Likewise.
47385         (log10_test_data): Likewise.
47386         (log2_test_data): Likewise.
47387         (tgamma_test_data): Likewise.
47388
47389         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47390         (acos_test_tonearest): Likewise.
47391         (acos_test_towardzero): Likewise.
47392         (acos_test_downward): Likewise.
47393         (acos_test_upward): Likewise.
47394         (acosh_test): Likewise.
47395         (asin_test): Likewise.
47396         (asin_test_tonearest): Likewise.
47397         (asin_test_towardzero): Likewise.
47398         (asin_test_downward): Likewise.
47399         (asin_test_upward): Likewise.
47400         (asinh_test): Likewise.
47401         (atan_test): Likewise.
47402         (atanh_test): Likewise.
47403         (atan2_test): Likewise.
47404         (cabs_test): Likewise.
47405         (cacos_test): Likewise.
47406         (cacosh_test): Likewise.
47407         (casin_test): Likewise.
47408         (casinh_test): Likewise.
47409         (catan_test): Likewise.
47410         (catanh_test): Likewise.
47411         (cbrt_test): Likewise.
47412         (ccos_test): Likewise.
47413         (ccosh_test): Likewise.
47414         (cexp_test): Likewise.
47415         (clog_test): Likewise.
47416         (clog10_test): Likewise.
47417         (cos_test): Likewise.
47418         (cos_test_tonearest): Likewise.
47419         (cos_test_towardzero): Likewise.
47420         (cos_test_downward): Likewise.
47421         (cos_test_upward): Likewise.
47422         (cosh_test): Likewise.
47423         (cosh_test_tonearest): Likewise.
47424         (cosh_test_towardzero): Likewise.
47425         (cosh_test_downward): Likewise.
47426         (cosh_test_upward): Likewise.
47427         (cpow_test): Likewise.
47428         (csin_test): Likewise.
47429         (csinh_test): Likewise.
47430         (csqrt_test): Likewise.
47431         (ctan_test): Likewise.
47432         (ctan_test_tonearest): Likewise.
47433         (ctan_test_towardzero): Likewise.
47434         (ctan_test_downward): Likewise.
47435         (ctan_test_upward): Likewise.
47436         (ctanh_test): Likewise.
47437         (ctanh_test_tonearest): Likewise.
47438         (ctanh_test_towardzero): Likewise.
47439         (ctanh_test_downward): Likewise.
47440         (ctanh_test_upward): Likewise.
47441         (erf_test): Likewise.
47442         (erfc_test): Likewise.
47443         (exp_test): Likewise.
47444         (exp_test_tonearest): Likewise.
47445         (exp_test_towardzero): Likewise.
47446         (exp_test_downward): Likewise.
47447         (exp_test_upward): Likewise.
47448         (exp10_test): Likewise.
47449         (exp2_test): Likewise.
47450         (expm1_test): Likewise.
47451         (fmod_test): Likewise.
47452         (gamma_test): Likewise.
47453         (hypot_test): Likewise.
47454         (j0_test): Likewise.
47455         (j1_test): Likewise.
47456         (jn_test): Likewise.
47457         (lgamma_test): Likewise.
47458         (log_test): Likewise.
47459         (log10_test): Likewise.
47460         (log1p_test): Likewise.
47461         (log2_test): Likewise.
47462         (logb_test_downward): Likewise.
47463         (pow_test): Likewise.
47464         (pow_test_tonearest): Likewise.
47465         (pow_test_towardzero): Likewise.
47466         (pow_test_downward): Likewise.
47467         (pow_test_upward): Likewise.
47468         (remainder_test): Likewise.
47469         (remquo_test): Likewise.
47470         (sin_test): Likewise.
47471         (sin_test_tonearest): Likewise.
47472         (sin_test_towardzero): Likewise.
47473         (sin_test_downward): Likewise.
47474         (sin_test_upward): Likewise.
47475         (sincos_test): Likewise.
47476         (sinh_test): Likewise.
47477         (sinh_test_tonearest): Likewise.
47478         (sinh_test_towardzero): Likewise.
47479         (sinh_test_downward): Likewise.
47480         (sinh_test_upward): Likewise.
47481         (sqrt_test): Likewise.
47482         (tan_test): Likewise.
47483         (tan_test_tonearest): Likewise.
47484         (tan_test_towardzero): Likewise.
47485         (tan_test_downward): Likewise.
47486         (tan_test_upward): Likewise.
47487         (tanh_test): Likewise.
47488         (tgamma_test): Likewise.
47489         (y0_test): Likewise.
47490         (y1_test): Likewise.
47491         (yn_test): Likewise.
47492
47493         * math/gen-libm-test.pl (adjust_arg): Remove function.
47494         (special_function): Remove argument $in_func.  Only handle
47495         generating output for tables of tests, not inside functions.
47496         (parse_args): Likewise.
47497         (generate_testfile): Remove variable $in_func.  Update call to
47498         parse_args.
47499         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47500         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47501         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47502         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47503         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47504         (MAX_VALUE_INIT): Rename macro to max_value.
47505         (MIN_VALUE_INIT): Rename macro to min_value.
47506         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47507         (plus_zero): Remove variable.
47508         (minus_zero): Likewise.
47509         (plus_infty): Likewise.
47510         (minus_infty): Likewise.
47511         (qnan_value): Likewise.
47512         (max_value): Likewise.
47513         (min_value): Likewise.
47514         (min_subnorm_value): Likewise.
47515
47516 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47517
47518         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47519         uint64_t or uint32_t usage.
47520         * crypt/sha256-block.c: Likewise.
47521         * crypt/sha256-crypt.c: Likewise.
47522         * crypt/sha256.c: Likewise.
47523         * crypt/sha512-block.c: Likewise.
47524         * crypt/sha512-crypt.c: Likewise.
47525         * crypt/sha512.c: Likewise.
47526         * debug/backtrace-tst.c: Likewise.
47527         * debug/pcprofiledump.c: Likewise.
47528         * elf/cache.c: Likewise.
47529         * elf/dl-cache.c: Likewise.
47530         * elf/dl-misc.c: Likewise.
47531         * elf/dl-profile.c: Likewise.
47532         * elf/dl-support.c: Likewise.
47533         * elf/ldconfig.c: Likewise.
47534         * elf/sprof.c: Likewise.
47535         * iconv/dummy-repertoire.c: Likewise.
47536         * iconv/iconv_charmap.c: Likewise.
47537         * iconv/skeleton.c: Likewise.
47538         * iconvdata/8bit-generic.c: Likewise.
47539         * iconvdata/cp737.h: Likewise.
47540         * iconvdata/cp775.h: Likewise.
47541         * iconvdata/ibm1008.h: Likewise.
47542         * iconvdata/ibm1025.h: Likewise.
47543         * iconvdata/ibm1046.h: Likewise.
47544         * iconvdata/ibm1097.h: Likewise.
47545         * iconvdata/ibm1112.h: Likewise.
47546         * iconvdata/ibm1122.h: Likewise.
47547         * iconvdata/ibm1123.h: Likewise.
47548         * iconvdata/ibm1124.h: Likewise.
47549         * iconvdata/ibm1129.h: Likewise.
47550         * iconvdata/ibm1130.h: Likewise.
47551         * iconvdata/ibm1132.h: Likewise.
47552         * iconvdata/ibm1133.h: Likewise.
47553         * iconvdata/ibm1137.h: Likewise.
47554         * iconvdata/ibm1140.h: Likewise.
47555         * iconvdata/ibm1141.h: Likewise.
47556         * iconvdata/ibm1142.h: Likewise.
47557         * iconvdata/ibm1143.h: Likewise.
47558         * iconvdata/ibm1144.h: Likewise.
47559         * iconvdata/ibm1145.h: Likewise.
47560         * iconvdata/ibm1146.h: Likewise.
47561         * iconvdata/ibm1147.h: Likewise.
47562         * iconvdata/ibm1148.h: Likewise.
47563         * iconvdata/ibm1149.h: Likewise.
47564         * iconvdata/ibm1153.h: Likewise.
47565         * iconvdata/ibm1154.h: Likewise.
47566         * iconvdata/ibm1155.h: Likewise.
47567         * iconvdata/ibm1156.h: Likewise.
47568         * iconvdata/ibm1157.h: Likewise.
47569         * iconvdata/ibm1158.h: Likewise.
47570         * iconvdata/ibm1160.h: Likewise.
47571         * iconvdata/ibm1161.h: Likewise.
47572         * iconvdata/ibm1162.h: Likewise.
47573         * iconvdata/ibm1163.h: Likewise.
47574         * iconvdata/ibm1164.h: Likewise.
47575         * iconvdata/ibm1166.h: Likewise.
47576         * iconvdata/ibm1167.h: Likewise.
47577         * iconvdata/ibm12712.h: Likewise.
47578         * iconvdata/ibm1390.h: Likewise.
47579         * iconvdata/ibm1399.h: Likewise.
47580         * iconvdata/ibm16804.h: Likewise.
47581         * iconvdata/ibm4517.h: Likewise.
47582         * iconvdata/ibm4899.h: Likewise.
47583         * iconvdata/ibm4909.h: Likewise.
47584         * iconvdata/ibm4971.h: Likewise.
47585         * iconvdata/ibm5347.h: Likewise.
47586         * iconvdata/ibm803.h: Likewise.
47587         * iconvdata/ibm856.h: Likewise.
47588         * iconvdata/ibm901.h: Likewise.
47589         * iconvdata/ibm902.h: Likewise.
47590         * iconvdata/ibm9030.h: Likewise.
47591         * iconvdata/ibm9066.h: Likewise.
47592         * iconvdata/ibm921.h: Likewise.
47593         * iconvdata/ibm922.h: Likewise.
47594         * iconvdata/ibm9448.h: Likewise.
47595         * iconvdata/isiri-3342.h: Likewise.
47596         * iconvdata/jis0201.h: Likewise.
47597         * include/link.h: Likewise.
47598         * include/netdb.h: Likewise.
47599         * inet/check_native.c: Likewise.
47600         * inet/check_pf.c: Likewise.
47601         * inet/getipv4sourcefilter.c: Likewise.
47602         * inet/getnameinfo.c: Likewise.
47603         * inet/getsourcefilter.c: Likewise.
47604         * inet/htonl.c: Likewise.
47605         * inet/setipv4sourcefilter.c: Likewise.
47606         * inet/setsourcefilter.c: Likewise.
47607         * inet/test-inet6_opt.c: Likewise.
47608         * inet/tst-network.c: Likewise.
47609         * locale/C-collate.c: Likewise.
47610         * locale/C-ctype.c: Likewise.
47611         * locale/C-time.c: Likewise.
47612         * locale/C-translit.h: Likewise.
47613         * locale/loadarchive.c: Likewise.
47614         * locale/programs/3level.h: Likewise.
47615         * locale/programs/charmap.c: Likewise.
47616         * locale/programs/charmap.h: Likewise.
47617         * locale/programs/ld-address.c: Likewise.
47618         * locale/programs/ld-collate.c: Likewise.
47619         * locale/programs/ld-ctype.c: Likewise.
47620         * locale/programs/ld-identification.c: Likewise.
47621         * locale/programs/ld-measurement.c: Likewise.
47622         * locale/programs/ld-messages.c: Likewise.
47623         * locale/programs/ld-monetary.c: Likewise.
47624         * locale/programs/ld-name.c: Likewise.
47625         * locale/programs/ld-numeric.c: Likewise.
47626         * locale/programs/ld-paper.c: Likewise.
47627         * locale/programs/ld-telephone.c: Likewise.
47628         * locale/programs/ld-time.c: Likewise.
47629         * locale/programs/linereader.c: Likewise.
47630         * locale/programs/locale.c: Likewise.
47631         * locale/programs/locarchive.c: Likewise.
47632         * locale/programs/locfile.h: Likewise.
47633         * locale/programs/repertoire.c: Likewise.
47634         * locale/programs/simple-hash.c: Likewise.
47635         * locale/programs/simple-hash.h: Likewise.
47636         * malloc/memusage.c: Likewise.
47637         * malloc/memusagestat.c: Likewise.
47638         * nis/nis_defaults.c: Likewise.
47639         * nis/nis_hash.c: Likewise.
47640         * nis/nis_print.c: Likewise.
47641         * nis/nis_xdr.c: Likewise.
47642         * nscd/connections.c: Likewise.
47643         * nscd/hstcache.c: Likewise.
47644         * nscd/nscd_gethst_r.c: Likewise.
47645         * nscd/nscd_getserv_r.c: Likewise.
47646         * nscd/nscd_helper.c: Likewise.
47647         * nscd/servicescache.c: Likewise.
47648         * nss/makedb.c: Likewise.
47649         * nss/nss_db/db-XXX.c: Likewise.
47650         * nss/nss_db/db-initgroups.c: Likewise.
47651         * nss/nss_db/db-netgrp.c: Likewise.
47652         * nss/nss_files/files-network.c: Likewise.
47653         * nss/nss_files/files-parse.c: Likewise.
47654         * posix/bug-regex5.c: Likewise.
47655         * posix/fnmatch_loop.c: Likewise.
47656         * posix/regcomp.c: Likewise.
47657         * posix/regexec.c: Likewise.
47658         * posix/tst-rfc3484-2.c: Likewise.
47659         * posix/tst-rfc3484-3.c: Likewise.
47660         * posix/tst-rfc3484.c: Likewise.
47661         * resolv/nss_dns/dns-canon.c: Likewise.
47662         * resolv/nss_dns/dns-network.c: Likewise.
47663         * resolv/res_init.c: Likewise.
47664         * resolv/res_mkquery.c: Likewise.
47665         * resolv/tst-aton.c: Likewise.
47666         * stdlib/cxa_atexit.c: Likewise.
47667         * stdlib/cxa_finalize.c: Likewise.
47668         * stdlib/gen-fpioconst.c: Likewise.
47669         * stdlib/strtol_l.c: Likewise.
47670         * string/tst-endian.c: Likewise.
47671         * sunrpc/auth_des.c: Likewise.
47672         * sunrpc/clnt_udp.c: Likewise.
47673         * sunrpc/rtime.c: Likewise.
47674         * sunrpc/svcauth_des.c: Likewise.
47675         * sunrpc/xdr.c: Likewise.
47676         * sunrpc/xdr_intXX_t.c: Likewise.
47677         * sunrpc/xdr_rec.c: Likewise.
47678         * sysdeps/generic/ldconfig.h: Likewise.
47679         * sysdeps/generic/ldsodefs.h: Likewise.
47680         * sysdeps/generic/memusage.h: Likewise.
47681         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47682         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47683         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47684         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47685         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47686         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47687         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47688         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47689         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47690         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47691         * sysdeps/posix/getaddrinfo.c: Likewise.
47692         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47693         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47694         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47695         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47696         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47697         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47698         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47699         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47700         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47701         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47702         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47703         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47704         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47705         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47706         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47707         * sysdeps/x86_64/dl-tls.h: Likewise.
47708         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47709         * time/alt_digit.c: Likewise.
47710         * time/era.c: Likewise.
47711         * wcsmbs/tst-c16c32-1.c: Likewise.
47712
47713 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47714
47715         * math/libm-test.inc (struct test_sincos_data): New type.
47716         (RUN_TEST_LOOP_sincos): New macro.
47717         (sincos_test_data): New variable.
47718         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47719
47720 2013-05-16  Richard Henderson  <rth@redhat.com>
47721
47722         * math/atest-exp2.c (LIMB64): New macro.
47723         (CONSTSZ): New macro.
47724         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47725         (hexdig): Move ...
47726         (print_mpn_fp): ... to function scope.
47727         (read_mpn_hex): Remove.
47728         (get_log2): Remove.
47729         (exp2_mpn): Use mp_log2.
47730         (main): Use mp_exp1.
47731
47732 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47733
47734         * math/libm-test.inc: Remove comment about not testing "inexact"
47735         exceptions.
47736         (INEXACT_EXCEPTION): New macro.
47737         (NO_INEXACT_EXCEPTION): Likewise.
47738         (INVALID_EXCEPTION_OK): Update value.
47739         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47740         (OVERFLOW_EXCEPTION_OK): Likewise.
47741         (UNDERFLOW_EXCEPTION_OK): Likewise.
47742         (IGNORE_ZERO_INF_SIGN): Likewise.
47743         (ERRNO_UNCHANGED): Likewise.
47744         (ERRNO_EDOM): Likewise.
47745         (ERRNO_ERANGE): Likewise.
47746         (test_exceptions): Handle testing "inexact" exceptions.
47747         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47748         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47749         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47750         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47751         INEXACT_EXCEPTION.
47752         (rint_towardzero_test_data): Likewise.
47753         (rint_downward_test_data): Likewise.
47754         (rint_upward_test_data): Likewise.
47755
47756         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47757         with OVERFLOW_EXCEPTION.
47758         (exp10_test_data): Likewise.
47759         (exp2_test_data): Likewise.
47760         (expm1_test_data): Likewise.
47761         (lgamma_test_data): Likewise.
47762         (pow_test_data): Likewise.
47763         (tgamma_test_data): Likewise.
47764         (yn_test_data): Remove duplicate test of overflow.
47765
47766         * math/libm-test.inc (struct test_cc_c_data): New type.
47767         (RUN_TEST_LOOP_cc_c): New macro.
47768         (cpow_test_data): New variable.
47769         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47770
47771         * math/libm-test.inc (struct test_f_L_data): New type.
47772         (RUN_TEST_LOOP_f_L): New macro.
47773         (llrint_test_data): New variable.
47774         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47775         (llrint_tonearest_test_data): New variable.
47776         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47777         (llrint_towardzero_test_data): New variable.
47778         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47779         (llrint_downward_test_data): New variable.
47780         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47781         (llrint_upward_test_data): New variable.
47782         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47783         (llround_test_data): New variable.
47784         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47785
47786 2013-05-13  Peter Collingbourne  <pcc@google.com>
47787
47788         * math/atest-exp2.c (get_log2): Remove const attribute.
47789
47790 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47791
47792         * math/libm-test.inc (struct test_f_l_data): New type.
47793         (RUN_TEST_LOOP_f_l): New macro.
47794         (lrint_test_data): New variable.
47795         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47796         (lrint_tonearest_test_data): New variable.
47797         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47798         (lrint_towardzero_test_data): New variable.
47799         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47800         (lrint_downward_test_data): New variable.
47801         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47802         (lrint_upward_test_data): New variable.
47803         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47804         (lround_test_data): New variable.
47805         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47806
47807 2013-05-15  Peter Collingbourne  <pcc@google.com>
47808
47809         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47810         (EXTRACT_WORDS64) Use where appropriate.
47811         (INSERT_WORDS64) Likewise.
47812
47813         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47814         constraints with x constraints.
47815         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47816
47817         * malloc/obstack.c (_obstack_compat): Add initializer.
47818
47819 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47820
47821         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47822         si_trapno and add si_addr_lsb to _sifields.sigfault.
47823         (si_trapno): Remove macro.
47824         (si_addr_lsb): Define new macro.
47825         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47826
47827 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47828
47829         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47830         instead of TEST_f_l.
47831         (llrint_test_tonearest): Likewise.
47832         (llrint_test_towardzero): Likewise.
47833         (llrint_test_downward): Likewise.
47834         (llrint_test_upward): Likewise.
47835         (llround_test): Likewise.
47836
47837         * math/libm-test.inc (struct test_f_i_data): Add comment.
47838         (RUN_TEST_LOOP_f_b): New macro.
47839         (RUN_TEST_LOOP_f_b_tg): Likewise.
47840         (finite_test_data): New variable.
47841         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47842         (isfinite_test_data): New variable.
47843         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47844         (isinf_test_data): New variable.
47845         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47846         (isnan_test_data): New variable.
47847         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47848         (isnormal_test_data): New variable.
47849         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47850         (issignaling_test_data): New variable.
47851         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47852         (signbit_test_data): New variable.
47853         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47854
47855         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47856         with INVALID_EXCEPTION.
47857         (acosh_test_data): Likewise.
47858         (asin_test_data): Likewise.
47859         (atanh_test_data): Likewise.
47860         (fmod_test_data): Likewise.
47861         (log_test_data): Likewise.
47862         (log10_test_data): Likewise.
47863         (log2_test_data): Likewise.
47864         (pow_test_data): Likewise.
47865         (sqrt_test_data): Likewise.
47866         (y0_test_data): Likewise.
47867         (y1_test_data): Likewise.
47868         (yn_test_data): Likewise.
47869
47870         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47871         function contents.
47872
47873         * math/libm-test.inc (struct test_ff_i_data): New type.
47874         (RUN_TEST_LOOP_ff_i_tg): New macro.
47875         (isgreater_test_data): New variable.
47876         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47877         (isgreaterequal_test_data): New variable.
47878         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47879         (isless_test_data): New variable.
47880         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47881         (islessequal_test_data): New variable.
47882         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47883         (islessgreater_test_data): New variable.
47884         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47885         (isunordered_test_data): New variable.
47886         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47887
47888 2013-05-14  David S. Miller  <davem@davemloft.net>
47889
47890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47891
47892 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47893
47894         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47895
47896         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47897         extra_test to int.
47898         (struct test_f_i_data): Change type of max_ulp to int.
47899
47900         * math/libm-test.inc (test_ffI_f1_data): New type.
47901         (RUN_TEST_LOOP_ffI_f1): New macro.
47902         (remquo_test_data): New variable.
47903         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47904
47905         * setjmp/tst-setjmp-fp.c: New file.
47906         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47907         (link-libm): New variable.
47908         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47909
47910         * math/libm-test.inc (struct test_f_i_data): New type.
47911         (RUN_TEST_LOOP_f_i): New macro.
47912         (RUN_TEST_LOOP_f_i_tg): Likewise.
47913         (fpclassify_test_data): New variable.
47914         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47915         (ilogb_test_data): New variable.
47916         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47917
47918         * math/libm-test.inc (scalbln_test): Correct function name in END
47919         call.
47920
47921         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47922         (RUN_TEST_LOOP_fI_f1): New macro.
47923         (frexp_test_data): New variable.
47924         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47925
47926         * math/libm-test.inc (struct test_fF_f1_data): New type.
47927         (RUN_TEST_LOOP_fF_f1): New macro.
47928         (modf_test_data): New variable.
47929         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47930
47931         * math/libm-test.inc (struct test_f_f1_data): New type.
47932         (RUN_TEST_LOOP_f_f1): New macro.
47933         (gamma_test_data): New variable.
47934         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47935         (lgamma_test_data): New variable.
47936         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47937
47938 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47939
47940         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47941         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47942         (main): Comment "tls" pseudo-hwcap.
47943
47944 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47945
47946         * math/libm-test.inc (struct test_fl_f_data): New type.
47947         (RUN_TEST_LOOP_fl_f): New variable.
47948         (scalbln_test_data): New variable.
47949         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47950
47951         * math/libm-test.inc (struct test_fi_f_data): New type.
47952         (RUN_TEST_LOOP_fi_f): New macro.
47953         (ldexp_test_data): New variable.
47954         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47955         (scalbn_test_data): New variable.
47956         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47957
47958         * math/libm-test.inc (struct test_c_f_data): New type.
47959         (RUN_TEST_LOOP_c_f): New macro.
47960         (cabs_test_data): New variable.
47961         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47962         (carg_test_data): New variable.
47963         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47964         (cimag_test_data): New variable.
47965         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47966         (creal_test_data): New variable.
47967         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47968
47969         * math/libm-test.inc (struct test_if_f_data): New type.
47970         (RUN_TEST_LOOP_if_f): New macro.
47971         (jn_test_data): New variable.
47972         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47973         (yn_test_data): New variable.
47974         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47975
47976         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47977
47978 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47979
47980         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47981         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47982
47983 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47984
47985         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47986         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47987         (bench-deps): Add bench-timing.h.
47988         * benchtests-bench-skeleton.c: Include bench-timing.h.
47989         (main): Use TIMING_* macros instead of clock_gettime.
47990         * benchtests/bench-timing.h: New file.
47991
47992         [BZ #14582]
47993         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47994         Renamed from _LIB_VERSION.
47995         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47996
47997 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47998
47999         * math/libm-test.inc (struct test_fff_f_data): New type.
48000         (RUN_TEST_LOOP_fff_f): New macro.
48001         (fma_test_data): New variable.
48002         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48003         (fma_towardzero_test_data): New variable.
48004         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48005         (fma_downward_test_data): New variable.
48006         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48007         (fma_upward_test_data): New variable.
48008         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48009
48010         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48011         (struct test_c_c_data): New type.
48012         (RUN_TEST_LOOP_c_c): New macro.
48013         (cacos_test_data): New variable.
48014         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48015         (cacosh_test_data): New variable.
48016         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48017         (casin_test_data): New variable.
48018         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48019         (casinh_test_data): New variable.
48020         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48021         (catan_test_data): New variable.
48022         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48023         (catanh_test_data): New variable.
48024         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48025         (ccos_test_data): New variable.
48026         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48027         (ccosh_test_data): New variable.
48028         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48029         (cexp_test_data): New variable.
48030         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48031         (clog_test_data): New variable.
48032         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48033         (clog10_test_data): New variable.
48034         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48035         (conj_test_data): New variable.
48036         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48037         (cproj_test_data): New variable.
48038         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48039         (csin_test_data): New variable.
48040         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48041         (csinh_test_data): New variable.
48042         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48043         (csqrt_test_data): New variable.
48044         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48045         (ctan_test_data): New variable.
48046         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48047         (ctan_tonearest_test_data): New variable.
48048         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48049         (ctan_towardzero_test_data): New variable.
48050         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48051         (ctan_downward_test_data): New variable.
48052         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48053         (ctan_upward_test_data): New variable.
48054         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48055         (ctanh_test_data): New variable.
48056         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48057         (ctanh_tonearest_test_data): New variable.
48058         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48059         (ctanh_towardzero_test_data): New variable.
48060         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48061         (ctanh_downward_test_data): New variable.
48062         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48063         (ctanh_upward_test_data): New variable.
48064         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48065         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48066         of BUILD_COMPLEX.
48067
48068         * math/libm-test.inc (struct test_ff_f_data): New type.
48069         (struct test_ff_f_data_nexttoward): Likewise.
48070         (RUN_TEST_LOOP_2_f): New macro.
48071         (RUN_TEST_LOOP_ff_f): Likewise.
48072         (atan2_test_data): New variable.
48073         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48074         (copysign_test_data): New variable.
48075         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48076         (fdim_test_data): New variable.
48077         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48078         (fmax_test_data): New variable.
48079         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48080         (fmin_test_data): New variable.
48081         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48082         (fmod_test_data): New variable.
48083         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48084         (hypot_test_data): New variable.
48085         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48086         (nextafter_test_data): New variable.
48087         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48088         (nexttoward_test_data): New variable.
48089         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48090         (pow_test_data): New variable.
48091         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48092         (pow_tonearest_test_data): New variable.
48093         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48094         (pow_towardzero_test_data): New variable.
48095         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48096         (pow_downward_test_data): New variable.
48097         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48098         (pow_upward_test_data): New variable.
48099         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48100         (remainder_test_data): New variable.
48101         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48102         (scalb_test_data): New variable.
48103         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48104         * sysdeps/i386/fpu/libm-test-ulps: Update.
48105
48106 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48107
48108         * math/libm-test.inc (fma_test): Use max_value instead of local
48109         variable fltmax.
48110         (nextafter_test): Likewise.
48111
48112         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48113         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48114         (acos_downward_test_data): New variable.
48115         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48116         (acos_upward_test_data): New variable.
48117         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48118         (acosh_test_data): New variable.
48119         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48120         (asin_test_data): New variable.
48121         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48122         (asin_tonearest_test_data): New variable.
48123         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48124         (asin_towardzero_test_data): New variable.
48125         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48126         (asin_downward_test_data): New variable.
48127         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48128         (asin_upward_test_data): New variable.
48129         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48130         (asinh_test_data): New variable.
48131         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48132         (atan_test_data): New variable.
48133         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48134         (atanh_test_data): New variable.
48135         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48136         (cbrt_test_data): New variable.
48137         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48138         (ceil_test_data): New variable.
48139         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48140         (cos_test_data): New variable.
48141         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48142         (cos_tonearest_test_data): New variable.
48143         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48144         (cos_towardzero_test_data): New variable.
48145         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48146         (cos_downward_test_data): New variable.
48147         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48148         (cos_upward_test_data): New variable.
48149         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48150         (cosh_test_data): New variable.
48151         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48152         (cosh_tonearest_test_data): New variable.
48153         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48154         (cosh_towardzero_test_data): New variable.
48155         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48156         (cosh_downward_test_data): New variable.
48157         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48158         (cosh_upward_test_data): New variable.
48159         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48160         (erf_test_data): New variable.
48161         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48162         (erfc_test_data): New variable.
48163         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48164         (exp_test_data): New variable.
48165         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48166         (exp_tonearest_test_data): New variable.
48167         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48168         (exp_towardzero_test_data): New variable.
48169         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48170         (exp_downward_test_data): New variable.
48171         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48172         (exp_upward_test_data): New variable.
48173         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48174         (exp10_test_data): New variable.
48175         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48176         (exp2_test_data): New variable.
48177         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48178         (expm1_test_data): New variable.
48179         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48180         (fabs_test_data): New variable.
48181         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48182         (floor_test_data): New variable.
48183         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48184         (j0_test_data): New variable.
48185         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48186         (j1_test_data): New variable.
48187         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48188         (log_test_data): New variable.
48189         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48190         (log10_test_data): New variable.
48191         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48192         (log1p_test_data): New variable.
48193         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48194         (log2_test_data): New variable.
48195         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48196         (logb_test_data): New variable.
48197         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48198         (logb_downward_test_data): New variable.
48199         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48200         (nearbyint_test_data): New variable.
48201         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48202         (rint_test_data): New variable.
48203         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48204         (rint_tonearest_test_data): New variable.
48205         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48206         (rint_towardzero_test_data): New variable.
48207         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48208         (rint_downward_test_data): New variable.
48209         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48210         (rint_upward_test_data): New variable.
48211         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48212         (round_test_data): New variable.
48213         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48214         (sin_test_data): New variable.
48215         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48216         (sin_tonearest_test_data): New variable.
48217         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48218         (sin_towardzero_test_data): New variable.
48219         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48220         (sin_downward_test_data): New variable.
48221         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48222         (sin_upward_test_data): New variable.
48223         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48224         (sinh_test_data): New variable.
48225         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48226         (sinh_tonearest_test_data): New variable.
48227         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48228         (sinh_towardzero_test_data): New variable.
48229         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48230         (sinh_downward_test_data): New variable.
48231         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48232         (sinh_upward_test_data): New variable.
48233         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48234         (sqrt_test_data): New variable.
48235         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48236         (tan_test_data): New variable.
48237         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48238         (tan_tonearest_test_data): New variable.
48239         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48240         (tan_towardzero_test_data): New variable.
48241         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48242         (tan_downward_test_data): New variable.
48243         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48244         (tan_upward_test_data): New variable.
48245         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48246         (tanh_test_data): New variable.
48247         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48248         (tgamma_test_data): New variable.
48249         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48250         (trunc_test_data): New variable.
48251         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48252         (y0_test_data): New variable.
48253         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48254         (y1_test_data): New variable.
48255         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48256         (significand_test_data): New variable.
48257         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48258
48259 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48260
48261         [BZ #12387]
48262         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48263
48264 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48265
48266         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48267
48268 2013-05-10  Andreas Jaeger  <aj@suse.de>
48269
48270         [BZ #15448]
48271         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48272         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48273
48274 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48275
48276         * math/gen-libm-test.pl (adjust_arg): New function.
48277         (special_functions): Handle generating output in both functions
48278         and arrays.
48279         (parse_args): Likewise.
48280         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48281         $in_func argument to parse_args.
48282         * math/libm-test.inc (struct test_f_f_data): New type.
48283         (IF_ROUND_INIT_): New macro.
48284         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48285         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48286         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48287         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48288         (ROUND_RESTORE_): Likewise.
48289         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48290         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48291         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48292         (ROUND_RESTORE_FE_UPWARD): Likewise.
48293         (RUN_TEST_LOOP_f_f): New macro.
48294         (acos_test_data): New variable.
48295         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48296         (acos_tonearest_test_data): New variable.
48297         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48298
48299 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48300
48301         * benchtests/bench-skeleton.c (startup): Fix coding style.
48302
48303 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48304
48305         [BZ #6809]
48306         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48307         negative infinity argument.
48308         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48309         negative infinity argument.
48310         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48311         negative infinity argument.
48312         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48313         domain errors.
48314
48315 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48316
48317         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48318         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48319         * iconv/iconv_prog.c (main): Likewise.
48320         * locale/programs/charmap-dir.c (charmap_readdir)
48321         (fopen_uncompressed): Likewise.
48322         * locale/programs/locfile.c (siblings_uncached)
48323         (write_locale_data): Use lstat64 instead of lstat.
48324         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48325         stat.
48326
48327 2013-05-10  Andreas Jaeger  <aj@suse.de>
48328
48329         [BZ #15395]
48330         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48331         localization.
48332         Include <locale.h>.
48333
48334 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48335
48336         * elf/dl-close.c (_dl_close_worker): Add comments.
48337
48338 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48339
48340         [BZ #15359]
48341         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48342         high part of pi/2.
48343         (__ieee754_rem_pio2l): Update comments.
48344
48345         [BZ #15429]
48346         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48347         high part of pi/2.
48348         (__ieee754_rem_pio2l): Update comments.
48349
48350         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48351         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48352
48353         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48354         M_PI_4l.
48355
48356         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48357         (M_PI_34_LOG10El): Likewise.
48358         (M_PI2_LOG10El): Likewise.
48359         (M_PI4_LOG10El): Likewise.
48360         (M_PI_LOG10El): Likewise.
48361
48362 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48363
48364         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48365
48366 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48367
48368         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48369         (MINUS_ZERO_INIT): Likewise.
48370         (PLUS_INFTY_INIT): Likewise.
48371         (MINUS_INFTY_INIT): Likewise.
48372         (QNAN_VALUE_INIT): Likewise.
48373         (MAX_VALUE_INIT): Likewise.
48374         (MIN_VALUE_INIT): Likewise.
48375         (MIN_SUBNORM_VALUE_INIT): Likewise.
48376         (plus_zero): Initialize with PLUS_ZERO_INIT.
48377         (minus_zero): Initialize with MINUS_ZERO_INIT.
48378         (plus_infty): Initialize with PLUS_INFTY_INIT.
48379         (minus_infty): Initialize with MINUS_INFTY_INIT.
48380         (qnan_value): Initialize with QNAN_VALUE_INIT.
48381         (max_value): Initialize with MAX_VALUE_INIT.
48382         (min_value): Initialize with MIN_VALUE_INIT.
48383         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48384
48385         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48386         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48387         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48388         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48389
48390         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48391         (RUN_TEST_2_f): Likewise.
48392         (RUN_TEST_ff_f): Likewise.
48393         (RUN_TEST_fi_f): Likewise.
48394         (RUN_TEST_fl_f): Likewise.
48395         (RUN_TEST_fff_f): Likewise.
48396         (RUN_TEST_c_f): Likewise.
48397         (RUN_TEST_f_f1): Likewise.
48398         (RUN_TEST_fF_f1): Likewise.
48399         (RUN_TEST_fI_f1): Likewise.
48400         (RUN_TEST_ffI_f1): Likewise.
48401         (RUN_TEST_c_c): Likewise.
48402         (RUN_TEST_cc_c): Likewise.
48403         (RUN_TEST_f_i): Likewise.
48404         (RUN_TEST_f_i_tg): Likewise.
48405         (RUN_TEST_ff_i_tg): Likewise.
48406         (RUN_TEST_f_b): Likewise.
48407         (RUN_TEST_f_b_tg): Likewise.
48408         (RUN_TEST_f_l): Likewise.
48409         (RUN_TEST_f_L): Likewise.
48410         (RUN_TEST_sincos): Likewise.
48411         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48412         whether to show exceptions.  Do not include ");\n" in return
48413         value.
48414         (special_functions): Output call to RUN_TEST_sincos instead of
48415         check_float calls.  Update calls to new_test.
48416         (parse_args): Output call to single RUN_TEST_* macro instead of
48417         check_* calls and other assignments.  Update calls to new_test.
48418
48419         [BZ #2546]
48420         [BZ #2560]
48421         [BZ #5159]
48422         [BZ #15426]
48423         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48424         input to result for tgamma overflow.
48425         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48426         (gamma_coeff): New variable.
48427         (NCOEFF): New macro.
48428         (gamma_positive): New function.
48429         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48430         underflow here.  Use gamma_positive instead of exp (lgamma) for
48431         other arguments.
48432         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48433         (gamma_coeff): New variable.
48434         (NCOEFF): New macro.
48435         (gammaf_positive): New function.
48436         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48437         underflow here.  Use gamma_positive instead of exp (lgamma) for
48438         other arguments.
48439         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48440         (gamma_coeff): New variable.
48441         (NCOEFF): New macro.
48442         (gammal_positive): New function.
48443         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48444         underflow here.  Use gamma_positive instead of exp (lgamma) for
48445         other arguments.
48446         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48447         (gamma_coeff): New variable.
48448         (NCOEFF): New macro.
48449         (gammal_positive): New function.
48450         (__ieee754_gammal_r): Handle positive infinity, overflow and
48451         underflow here.  Handle NaN the same as positive infinity.  Remove
48452         check x < 0xffffffff for negative integers.  Use gamma_positive
48453         instead of exp (lgamma) for other arguments.
48454         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48455         (gamma_coeff): New variable.
48456         (NCOEFF): New macro.
48457         (gammal_positive): New function.
48458         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48459         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48460         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48461         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48462         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48463         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48464         * sysdeps/generic/math_private.h (__gamma_productf): New
48465         prototype.
48466         (__gamma_product): Likewise.
48467         (__gamma_productl): Likewise.
48468         * math/Makefile (libm-calls): Add gamma_product.
48469         * math/libm-test.inc (tgamma_test): Add more tests.
48470         * sysdeps/i386/fpu/libm-test-ulps: Update.
48471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48472
48473 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48474
48475         * benchtests/bench-skeleton.c (main): Preheat CPU.
48476
48477 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48478
48479         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48480
48481 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48482
48483         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48484         and _dl_skip_args_internal.
48485
48486 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48487
48488         * manual/message.texi (Message Translation): Talk about users.
48489         Message to key mapping impacts design.
48490
48491 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48492
48493         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48494
48495         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48496
48497         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48498         * sysdeps/wordsize-64/glob64.c: ... here.
48499
48500         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48501         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48502         New macros.
48503
48504         * debug/getlogin_r_chk.c: Moved to ...
48505         * login/getlogin_r_chk.c: ... here.
48506         * debug/Makefile (routines): Move getlogin_r_chk to ...
48507         * login/Makefile (routines): ... here.
48508         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48509         * login/Versions (libc: GLIBC_2.4): ... here.
48510
48511         * io/poll.c (__poll): Renamed from poll.
48512         Add libc_hidden_def.
48513         (poll): Define as weak alias.
48514
48515         * debug/ptsname_r_chk.c: Moved to ...
48516         * login/ptsname_r_chk.c: ... here.
48517         * debug/Makefile (routines): Move ptsname_r_chk to ...
48518         * login/Makefile (routines): ... here.
48519         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48520         * login/Versions (libc: GLIBC_2.4): ... here.
48521
48522         * posix/getlogin.c: Moved to ...
48523         * login/getlogin.c: ... here.
48524         * posix/getlogin_r.c: Moved to ...
48525         * login/getlogin_r.c: ... here.
48526         * posix/getlogin_r.c: Moved to ...
48527         * login/getlogin_r.c: ... here.
48528         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48529         * login/Makefile (routines): ... here.
48530         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48531         * login/Versions (libc: GLIBC_2.0): ... here.
48532
48533         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48534         (setrlimit): Define as weak alias.
48535
48536         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48537         Call __ names for open, ftruncate, and close.
48538         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48539         (truncate): Define as weak alias.
48540
48541 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48542
48543         * math/gen-libm-test.pl (parse_args): Initialize x before each
48544         test of frexp, modf and remquo.
48545
48546         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48547         test signgam value.
48548
48549 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48550
48551         [BZ #15418]
48552         [BZ #15419]
48553         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48554         internal tests.
48555         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48556
48557 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48558
48559         * elf/dl-writev.h: New file.
48560         * elf/dl-misc.c: Include it.
48561         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48562         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48563
48564 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48565
48566         * math/libm-test.inc (noXFails): Remove variable.
48567         (noXPasses): Likewise.
48568         (BUILD_COMPLEX_INT): Remove macro.
48569         (print_screen): Remove xfail argument.
48570         (print_screen_max_error): Likewise.
48571         (update_stats): Likewise.
48572         (print_max_error): Likewise.  Update calls to other affected
48573         functions.
48574         (print_complex_max_error): Likewise.
48575         (test_single_exception): Update calls to print_screen.
48576         (test_single_errno): Likewise.
48577         (check_float_internal): Remove xfail argument.  Update calls to
48578         other affected functions.
48579         (check_float): Likewise.
48580         (check_complex): Likewise.
48581         (check_int): Likewise.
48582         (check_long): Likewise.
48583         (check_bool): Likewise.
48584         (check_longlong): Likewise.
48585         (main): Don't print noXFails and noXPasses.
48586         * math/gen-libm-test.pl (top level): Don't mention expected
48587         failure handling in comment.
48588         (new_test): Don't handle expected failures.
48589         (parse_args): Don't mention expected failure handling in comment.
48590         (generate_testfile): Don't handle expected failures.
48591         (parse_ulps): Likewise.
48592         (print_ulps_file): Likewise.
48593         (get_failure): Remove function.
48594         (output_test): Don't handle expected failures.
48595         * make/README.libm-test: Don't mention expected failure handling.
48596
48597         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48598         (minus_zero): Likewise.
48599         (plus_infty): Likewise.
48600         (minus_infty): Likewise.
48601         (qnan_value): Likewise.
48602         (max_value): Likewise.
48603         (min_value): Likewise.
48604         (min_subnorm_value): Likewise.
48605         (initialize): Do not initialize those variables dynamically.
48606
48607 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48608
48609         * io/open.c (__open_2): Moved to ...
48610         * io/open_2.c: ... this new file.
48611         * io/open64.c (__open64_2): Moved to ...
48612         * io/open64_2.c: ... this new file.
48613         * io/openat.c (__openat_2): Moved to ...
48614         * io/openat_2.c: ... this new file.
48615         * io/openat64.c (__openat64_2): Moved to ...
48616         * io/openat64_2.c: ... this new file.
48617         * io/Makefile (routines): Add them.
48618         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48619         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48620         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48621         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48622         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48623         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48624         (__openat64): Add hidden_ver.
48625         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48626         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48627
48628         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48629         Separately conditionalize setting of GLRO(dl_sysinfo) so
48630         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48631         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48632
48633 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48634
48635         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48636         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48637         definition.
48638         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48639         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48640         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48641         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48642         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48643
48644 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48645
48646         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48647         test signgam value.
48648
48649         * math/libm-test.inc (hypot_test): Do not use
48650         IGNORE_ZERO_INF_SIGN.
48651
48652 2013-05-03  Andreas Jaeger  <aj@suse.de>
48653
48654         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48655         Linux 3.9.
48656         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48657         (PF_MAX): Adjust for VSOCK change.
48658
48659 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48660
48661         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48662
48663 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48664
48665         [BZ #15264]
48666         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48667         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48668         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48669
48670 2013-05-02  David S. Miller  <davem@davemloft.net>
48671
48672         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48673
48674 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48675
48676         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48677
48678 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48679
48680         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48681
48682 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48683
48684         [BZ #14952]
48685         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48686         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48687         Use __attribute__ ((__gnu_inline__)).
48688         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48689         Don't use __attribute__ ((__gnu_inline__)).
48690
48691 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48692
48693         [BZ #15423]
48694         * math/s_catan.c (__catan): Handle small real or imaginary part of
48695         input specially to avoid spurious underflow.
48696         * math/s_catanf.c (__catanf): Likewise.
48697         * math/s_catanh.c (__catanh): Likewise.
48698         * math/s_catanhf.c (__catanhf): Likewise.
48699         * math/s_catanhl.c (__catanhl): Likewise.
48700         * math/s_catanl.c (__catanl): Likewise.
48701         * math/libm-test.inc (catan_test): Add more tests.
48702         (catanh_test): Likewise.
48703         * sysdeps/i386/fpu/libm-test-ulps: Update.
48704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48705
48706 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48707
48708         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48709
48710 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48711
48712         [BZ #15416]
48713         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48714         accurately for denominator in atan2.
48715         * math/s_catanf.c (__catanf): Likewise.
48716         * math/s_catanh.c (__catanh): Likewise.
48717         * math/s_catanhf.c (__catanhf): Likewise.
48718         * math/s_catanhl.c (__catanhl): Likewise.
48719         * math/s_catanl.c (__catanl): Likewise.
48720         * math/libm-test.inc (catan_test): Add more tests.
48721         (catanh_test): Likewise.
48722         * sysdeps/i386/fpu/libm-test-ulps: Update.
48723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48724
48725 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48726
48727         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48728
48729         * benchtests/Makefile (bench): Remove slow benchmarks.
48730         * benchtests/atan-inputs: Add slow benchmark inputs.
48731         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48732         (BENCH_FUNC): Accept variant offset.
48733         (VARIANT): Define.
48734         * benchtests/bench-skeleton.c (main): Run benchmark for each
48735         variant.
48736         * benchtests/cos-inputs: Add slow benchmark inputs.
48737         * benchtests/exp-inputs: Likewise.
48738         * benchtests/pow-inputs: Likewise.
48739         * benchtests/sin-inputs: Likewise.
48740         * benchtests/slowatan-inputs: Remove.
48741         * benchtests/slowatan.c: Remove.
48742         * benchtests/slowcos-inputs: Remove.
48743         * benchtests/slowcos.c: Remove.
48744         * benchtests/slowexp-inputs: Remove.
48745         * benchtests/slowexp.c: Remove.
48746         * benchtests/slowpow-inputs: Remove.
48747         * benchtests/slowpow.c: Remove.
48748         * benchtests/slowsin-inputs: Remove.
48749         * benchtests/slowsin.c: Remove.
48750         * benchtests/slowtan-inputs: Remove.
48751         * benchtests/slowtan.c: Remove.
48752         * benchtests/tan-inputs: Add slow benchmark inputs.
48753         * scripts/bench.pl: Parse comments and directives.
48754
48755         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48756         in CPPFLAGS.
48757         ($(objpfx)bench-%.c): Remove *-ITER.
48758         * benchtests/bench-modf.c: Remove definition of ITER.
48759         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48760         (main): Loop for DURATION seconds instead of fixed number of
48761         iterations.
48762         * scripts/bench.pl: Don't expect iterations in parameters.
48763
48764 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48765
48766         * io/fchdir.c (__fchdir): Renamed from fchdir.
48767         (fchdir): Define as weak alias.
48768
48769 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48770
48771         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48772         (ERRNO_EDOM): Likewise.
48773         (ERRNO_ERANGE): Likewise.
48774         (noErrnoTests): New variable.
48775         (init_max_error): Set errno to 0.
48776         (test_single_errno): New function.
48777         (test_errno): Likewise.
48778         (check_float_internal): Call test_errno.  Set errno to 0.
48779         (check_complex): Refer to errno tests in comment.
48780         (check_int): Call test_errno.  Set errno to 0.
48781         (check_long): Likewise.
48782         (check_bool): Likewise.
48783         (check_longlong): Likewise.
48784         (cos_test): Use ERRNO_* flags for errno tests instead of
48785         check_int.
48786         (expm1_test): Likewise.
48787         (fmod_test): Likewise.
48788         (ilogb_test): Likewise.
48789         (lgamma_test): Likewise.
48790         (pow_test): Likewise.
48791         (remainder_test): Likewise.
48792         (sin_test): Likewise.
48793         (tan_test): Likewise.
48794         (yn_test): Likewise.
48795         (initialize): Set errno to 0.
48796         (main): Print number of errno tests.
48797         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48798
48799 2013-04-29  Andreas Jaeger  <aj@suse.de>
48800
48801         [BZ #15084]
48802         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48803         and RES_USEVC.
48804
48805         [BZ #15085]
48806         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48807         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48808         unimplemented.
48809
48810         [BZ #15380]
48811         * stdlib/random.c (__initstate): Return NULL if
48812         __initstate fails.
48813
48814         [BZ #15086]
48815         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48816         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48817         RES_SNGLKUPREOP.
48818
48819 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48820
48821         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48822
48823 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48824
48825         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48826         of individual tests.
48827         (casin_test): Likewise.
48828         (casinh_test): Likewise.
48829
48830 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48831
48832         [BZ #15409]
48833         * math/s_catan.c (__catan): Handle arguments with large real or
48834         imaginary part separately without squaring.
48835         * math/s_catanf.c (__catanf): Likewise.
48836         * math/s_catanh.c (__catanh): Likewise.
48837         * math/s_catanhf.c (__catanhf): Likewise.
48838         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48839         and redefine.
48840         (__catanhl): Handle arguments with large real or imaginary part
48841         separately without squaring.
48842         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48843         and redefine.
48844         (__catanl): Handle arguments with large real or imaginary part
48845         separately without squaring.
48846         * math/libm-test.inc (catan_test): Add more tests.
48847         (catanh_test): Likewise.
48848         * sysdeps/i386/fpu/libm-test-ulps: Update.
48849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48850
48851 2013-04-27  Andreas Jaeger  <aj@suse.de>
48852
48853         [BZ #15007]
48854         * stdlib/stdlib.h: Update guards for qecvt.
48855         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48856         <stdlib.h>.
48857
48858 2013-04-27  Allan McRae  <allan@archlinux.org>
48859
48860         * sysdeps/i386/fpu/libm-test-ulps: Update.
48861
48862 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48863
48864         [BZ #15406]
48865         * math/s_catan.c: Include <float.h>.
48866         (__catan): Ensure underflow exception occurs for underflowed
48867         result.
48868         * math/s_catanf.c: Include <float.h>.
48869         (__catanf): Ensure underflow exception occurs for underflowed
48870         result.
48871         * math/s_catanh.c: Include <float.h>.
48872         (__catanh): Ensure underflow exception occurs for underflowed
48873         result.
48874         * math/s_catanhf.c: Include <float.h>.
48875         (__catanhf): Ensure underflow exception occurs for underflowed
48876         result.
48877         * math/s_catanhl.c: Include <float.h>.
48878         (__catanhl): Ensure underflow exception occurs for underflowed
48879         result.
48880         * math/s_catanl.c: Include <float.h>.
48881         (__catanl): Ensure underflow exception occurs for underflowed
48882         result.
48883         * math/libm-test.inc (catan_test): Add more tests.
48884         (catanh_test): Likewise.
48885
48886         [BZ #15405]
48887         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48888         underflowed result.
48889         * math/s_ccoshf.c (__ccoshf): Likewise.
48890         * math/s_ccoshl.c (__ccoshl): Likewise.
48891         * math/s_csin.c (__csin): Likewise.
48892         * math/s_csinf.c (__csinf): Likewise.
48893         * math/s_csinh.c (__csinh): Likewise.
48894         * math/s_csinhf.c (__csinhf): Likewise.
48895         * math/s_csinhl.c (__csinhl): Likewise.
48896         * math/s_csinl.c (__csinl): Likewise.
48897         * math/libm-test.inc (ccos_test): Add more tests.
48898         (ccosh_test): Likewise.
48899         (csin_test): Likewise.
48900         (csinh_test): Likewise.
48901
48902 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48903
48904         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48905         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48906         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48907         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48908         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48909         powerpc/power5+/fpu folders.
48910         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48911
48912
48913 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48914
48915         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48916
48917 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48918
48919         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48920         additions to variable.
48921         [$(config-machine) = x86_64] (modules-names): Likewise.
48922         ($(objpfx)tst-audit3): Remove dependency.
48923         ($(objpfx)tst-audit3.out): Likewise.
48924         ($(objpfx)tst-audit4): Likewise.
48925         ($(objpfx)tst-audit4.out): Likewise.
48926         ($(objpfx)tst-audit5): Likewise.
48927         ($(objpfx)tst-audit5.out): Likewise.
48928         ($(objpfx)tst-audit6): Likewise.
48929         ($(objpfx)tst-audit6.out): Likewise.
48930         ($(objpfx)tst-audit7): Likewise.
48931         ($(objpfx)tst-audit7.out): Likewise.
48932         (tst-audit3-ENV): Remove variable.
48933         (tst-audit4-ENV): Likewise.
48934         (tst-audit5-ENV): Likewise.
48935         (tst-audit6-ENV): Likewise.
48936         (tst-audit7-ENV): Likewise.
48937         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48938         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48939         addition to variable.
48940         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48941         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48942         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48943         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48944         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48945         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48946         tst-audit3, tst-audit4 and tst-audit5.
48947         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48948         tst-audit6 and tst-audit7.
48949         [$(subdir) = elf] (modules-names): Add audit modules for those
48950         tests.
48951         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48952         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48953         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48954         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48955         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48956         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48957         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48958         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48959         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48960         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48961         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48962         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48963         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48964         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48965         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48966         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48967         Likewise.
48968         [$(subdir) = elf && $(config-cflags-avx) = yes]
48969         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48970         [$(subdir) = elf && $(config-cflags-avx) = yes]
48971         (CFLAGS-tst-auditmod4a.c): Likewise.
48972         [$(subdir) = elf && $(config-cflags-avx) = yes]
48973         (CFLAGS-tst-auditmod4b.c): Likewise.
48974         [$(subdir) = elf && $(config-cflags-avx) = yes]
48975         (CFLAGS-tst-auditmod6b.c): Likewise.
48976         [$(subdir) = elf && $(config-cflags-avx) = yes]
48977         (CFLAGS-tst-auditmod6c.c): Likewise.
48978         [$(subdir) = elf && $(config-cflags-avx) = yes]
48979         (CFLAGS-tst-auditmod7b.c): Likewise.
48980         * elf/tst-audit3.c: Move to ...
48981         * sysdeps/x86_64/tst-audit3.c: ... here.
48982         * elf/tst-audit4.c: Move to ...
48983         * sysdeps/x86_64/tst-audit4.c: ... here.
48984         * elf/tst-audit5.c: Move to ...
48985         * sysdeps/x86_64/tst-audit5.c: ... here.
48986         * elf/tst-audit6.c: Move to ...
48987         * sysdeps/x86_64/tst-audit6.c: ... here.
48988         * elf/tst-audit7.c: Move to ...
48989         * sysdeps/x86_64/tst-audit7.c: ... here.
48990         * elf/tst-auditmod3a.c: Move to ...
48991         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48992         * elf/tst-auditmod3b.c: Move to ...
48993         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48994         * elf/tst-auditmod4a.c: Move to ...
48995         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48996         * elf/tst-auditmod4b.c: Move to ...
48997         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48998         * elf/tst-auditmod5a.c: Move to ...
48999         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49000         * elf/tst-auditmod5b.c: Move to ...
49001         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49002         * elf/tst-auditmod6a.c: Move to ...
49003         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49004         * elf/tst-auditmod6b.c: Move to ...
49005         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49006         * elf/tst-auditmod6c.c: Move to ...
49007         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49008         * elf/tst-auditmod7a.c: Move to ...
49009         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49010         * elf/tst-auditmod7b.c: Move to ...
49011         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49012
49013 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49014
49015         [BZ #15366]
49016         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49017         define unconditionally.
49018         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49019         define unconditionally.
49020         (INT8_C, INT16_C, etc.): Likewise.
49021
49022 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49023
49024         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49025         __ehdr_start with hidden visibility.
49026
49027         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49028
49029 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49030
49031         * math/libm-test.inc (cos_test): Use accurate hex constants.
49032         (sincost_test): Likewise.
49033
49034 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49035
49036         * math/libm-test.inc (catan_test): Add more tests.
49037         (catanh_test): Likewise.
49038
49039         * math/s_catanf.c (__catanf): Use suffixed floating-point
49040         constants.
49041         * math/s_catanhf.c (__catanhf): Likewise.
49042         * math/s_catanhl.c (__catanhl): Likewise.
49043         * math/s_catanl.c (__catanl): Likewise.
49044
49045         [BZ #15394]
49046         * math/s_catan.c (__catan): Calculate imaginary part of result
49047         with log1p not log unless computing log of number close to 0.
49048         * math/s_catanf.c (__catanf): Likewise.
49049         * math/s_catanl.c (__catanl): Likewise.
49050         * math/s_catanh.c (__catanh): Calculate real part of result with
49051         log1p not log unless computing log of number close to 0.
49052         * math/s_catanhf.c (__catanhf): Likewise.
49053         * math/s_catanhl.c (__catanhl): Likewise.
49054         * math/libm-test.inc (catan_test): Add more tests.
49055         (catanh_test): Likewise.
49056         * sysdeps/i386/fpu/libm-test-ulps: Update.
49057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49058
49059 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49060
49061         * benchtests/Makefile: Mention files in which fast and slow
49062         paths of math functions are implemented.
49063
49064 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49065
49066         * sysdeps/posix/timespec_get.c: New file.
49067
49068 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49069
49070         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49071         POWER.
49072         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49073         for POWER.
49074         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49075         powerpc/power5/fpu folders.
49076         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49077         * benchtests/Makefile: Add modf testcase.
49078         * benchtests/bench-modf.c: New file: Benchmark test for mo
49079
49080 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49081
49082         [BZ #14888]
49083         * time/Makefile (tests): Add tst-strptime-whitespace.
49084         * time/strptime_l.c (get_number): Use ISSPACE.
49085         (__strptime_internal): Likewise.
49086         * time/tst-strptime-whitespace.c: New test case.
49087
49088 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49089
49090         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49091         member.
49092         (_nss_files_init): Set it here.
49093
49094 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49095
49096         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49097         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49098         unsigned.
49099
49100 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49101
49102         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49103
49104 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49105
49106         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49107         size just once.
49108
49109 2013-04-21  David S. Miller  <davem@davemloft.net>
49110
49111         * po/ru.po: Update Russion translation from translation project.
49112
49113 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49114
49115         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49116         and setfsgid.
49117
49118 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49119
49120         * configure.in: Remove i386 configure warning. Remove i386 case.
49121         * configure: Regenerate.
49122         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49123         Add example to error message.
49124         * sysdeps/i386/configure: Regenerate.
49125
49126 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49127
49128         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49129         slowtan.
49130         * benchtests/cos-inputs: New file.
49131         * benchtests/slowcos-inputs: New file.
49132         * benchtests/slowcos.c: New file.
49133         * benchtests/slowtan-inputs: New file.
49134         * benchtests/slowtan.c: New file.
49135         * benchtests/tan-inputs: New file.
49136
49137 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49138
49139         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49140         considered kosher.
49141
49142 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49143
49144         * benchtests/Makefile: Include cppflags-iterator.mk to add
49145         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49146
49147         * Makefile.in (bench-clean): New target.
49148         * benchtests/Makefile (bench-clean): Likewise.
49149
49150 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49151
49152         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49153
49154 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49155
49156         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49157
49158 2013-04-15  Andreas Schwab  <schwab@suse.de>
49159
49160         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49161         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49162         * nscd/pwdcache.c (cache_addpw): Likewise.
49163         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49164         more than recsize.
49165
49166 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49167
49168         * benchtests/Makefile (bench): Write all output to
49169         bench-out.tmp together.
49170
49171 2013-04-15  Andreas Schwab  <schwab@suse.de>
49172
49173         * nscd/nscd.c (main): Don't fork again after closing files.
49174
49175 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49176
49177         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49178
49179         * benchtests/Rules (bench-deps): Collect dependencies into a
49180         single variable.  Add Makefile to dependencies.
49181         ($(objpfx)bench-%.c): Depend on bench-deps.
49182
49183 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49184             Xavier Roche  <roche+kml2@exalead.com>
49185
49186         [BZ #15361]
49187         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49188         just that it's a file descriptor.
49189         * manual/llio.texi (Synchronizing AIO Operations): Update description
49190         for EBADF error from aio_fsync.
49191
49192 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49193
49194         * Rules (bench): Move target definition...
49195         * benchtests/Makefile: ... here.
49196
49197 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49198
49199         * math/libm-test.inc (cos_test): Fix PI/2 test.
49200         (sincos_test): Likewise.
49201         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49202         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49203
49204 2013-04-11  Andreas Schwab  <schwab@suse.de>
49205
49206         [BZ #13988]
49207         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49208         accept exponent character only when digits were seen.
49209         * stdio-common/Makefile (tests): Add bug26.
49210         * stdio-common/bug26.c: New file.
49211
49212         [BZ #14293]
49213         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49214         non-freeable.
49215
49216 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49217
49218         * Makeconfig (rtld-prefix): Define built linker prefix.
49219         * Rules (run-bench): Use it.
49220         * math/Makefile (run-regen-ulps): Likewise.
49221
49222         * Rules (bench): Remove eval.
49223
49224 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49225             Roland McGrath  <roland@hack.frob.com>
49226             Ondrej Bilka  <neleai@seznam.cz>
49227
49228         [BZ #15346]
49229         * time/getdate.c: Include ctype.h and alloca.h.
49230         (__getdate_r): Trim leading and trailing spaces of input.
49231         * time/tst-getdate.c (tests): Add tests with leading and
49232         trailing spaces.
49233
49234 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49235
49236         [BZ #14280]
49237         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49238         when computing value.
49239
49240 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49241
49242         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49243         Use testrun.sh to run libm tests.
49244
49245         [BZ #15309]
49246         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49247
49248 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49249
49250         [BZ #15264]
49251         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49252
49253 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49254
49255         * Makefile.in (regen-ulps): New target.
49256         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49257         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49258         [ifneq (no,$(PERL)] (regen-ulps): New target.
49259         [ifeq (no,$(PERL)] (regen-ulps): New target.
49260         * math/libm-test.inc (ulps_file_name): Define.
49261         (output_dir): New variable.
49262         (options): Add "output-dir" option.
49263         (parse_opt): Handle 'o' case.
49264         (main): If output_dir is non-NULL use it as a prefix
49265         otherwise use "".
49266         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49267
49268 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49269
49270         [BZ #10060, #10062]
49271         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49272         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49273         fail configure if __sync_val_compare_and_swap is not inlined.
49274         * sysdeps/i386/configure: Regenerate.
49275         * configure.in: Build for i686 when configured for i386.
49276         * configure: Regenerate.
49277         * README: Remove i386 reference.
49278
49279 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49280
49281         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49282         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49283
49284 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49285
49286         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49287         (lmsnanval): New variables.
49288         (F): Add conversion tests.
49289         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49290         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49291
49292         * stdio-common/tstdiomisc.c (F): Properly collect individual
49293         tests' results.
49294
49295         [BZ #14686, #15336]
49296         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49297         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49298         Instead, use input NaN values or generate a qNaN by arithmetic
49299         operation.  Also fix bugs to comply with the standard.
49300         * math/libm-test.inc (remainder_test): Add more tests.
49301
49302         [BZ #15335, #15342]
49303         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49304         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49305         input NaN values or generate a qNaN by arithmetic operation.
49306
49307         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49308         unreachable code.
49309
49310         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49311         definitions.
49312
49313 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49314
49315         [BZ #14478]
49316         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49317         underflowed result.
49318         * math/s_cexpf.c (__cexpf): Likewise.
49319         * math/s_cexpl.c (__cexpl): Likewise.
49320         * math/libm-test.inc (cexp_test): Add more tests.
49321
49322 2013-04-03  Andreas Schwab  <schwab@suse.de>
49323
49324         [BZ #15330]
49325         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49326         order arrays from heap if bigger than alloca cutoff.
49327
49328 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49329
49330         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49331         (SNAN_TESTS_double): Refer to GCC PR56831.
49332         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49333         GCC PR56828.
49334
49335 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49336
49337         * Rules (bench): Move bench.out after the run is complete.
49338
49339         * Rules (bench): Echo currently running benchmark.
49340
49341         * benchtests/Makefile (bench): Add atan and slowatan.
49342         * benchtests/atan-inputs: New file.
49343         * benchtests/slowatan-inputs: New file.
49344         * benchtests/slowatan.c: New file.
49345
49346         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49347         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49348         its value.
49349
49350         [BZ #15305]
49351         * sysdeps/unix/sysv/linux/kernel-features.h
49352         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49353         __ASSUME_XFS_RESTRICTED_CHOWN.
49354         * sysdeps/unix/sysv/linux/pathconf.c
49355         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49356         Save and restore errno.
49357
49358 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49359
49360         [BZ #15327]
49361         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49362         arguments using __kernel_casinh.
49363         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49364         arguments using __kernel_casinhf.
49365         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49366         arguments using __kernel_casinhl.
49367         * math/libm-test.inc (cacosh_test): Add more tests.
49368         * sysdeps/i386/fpu/libm-test-ulps: Update.
49369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49370
49371 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49372
49373         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49374         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49375
49376         * bench/Makefile (bench): Add sin and slowsin.
49377         * benchtests/sin-inputs: New file.
49378         * benchtests/slowsin-inputs: New file.
49379         * benchtests/slowsin.c: New file.
49380
49381         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49382         (bench): Add slowexp and slowpow.
49383         (exp-ITER): Increase iterations.
49384         (pow-ITER): Likewise.
49385         * benchtests/exp-inputs: Change input.
49386         * benchtests/pow-inputs: Likewise.
49387         * benchtests/slowexp-inputs: New file.
49388         * benchtests/slowexp.c: New file.
49389         * benchtests/slowpow-inputs: New file.
49390         * benchtests/slowpow.c: New file.
49391
49392 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49393
49394         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49395         instructions.
49396         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49397         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49398         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49399         * benchtests/Makefile: Add rint benchtest.
49400         * benchtests/rint-inputs: Input for rint benchtest.
49401
49402 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49403
49404         * Versions.def (libm): Add GLIBC_2.18.
49405         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49406         hidden libm prototypes.
49407         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49408         * math/Makefile (libm-calls): Add s_issignaling.
49409         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49410         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49411         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49412         declaration.
49413         * math/math.h [__USE_GNU] (issignaling): New macro.
49414         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49415         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49416         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49417         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49418         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49419         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49420         * manual/arith.texi (issignaling): New section.
49421         * manual/libm-err-tab.pl (@all_functions): Update comment.
49422         * math/gen-libm-test.pl (parse_args): Apply special handling for
49423         issignaling.
49424         * math/libm-test.inc (print_float, issignaling_test): New
49425         functions.
49426         (check_float_internal): Add issignaling checks.
49427         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49428         default definition.
49429         * sysdeps/powerpc/math-tests.h: New file.
49430         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49431         tests.
49432         * math/test-snan.c (TEST_FUNC): Likewise.
49433
49434 2013-03-30  David S. Miller  <davem@davemloft.net>
49435
49436         * po/de.po: Update from translation team.
49437
49438 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49439
49440         [BZ #10357]
49441         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49442         imaginary part less than 1.0 and real part less than 0.5
49443         specially.
49444         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49445         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49446         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49447         (cacos_test): Add more tests.
49448         (casin_test): Likewise.
49449         (casinh_test): Likewise.
49450         * sysdeps/i386/fpu/libm-test-ulps: Update.
49451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49452
49453 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49454
49455         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49456         ONE with its value.
49457
49458         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49459         (__pow_mp): Replace ONE and MONE with their values.
49460         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49461         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49462         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49463         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49464         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49465         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49466
49467         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49468
49469         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49470         (__pow_mp): Replace ZERO and MZERO with their values.
49471         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49472         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49473         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49474         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49475         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49476         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49477         (__sqr): Likewise.
49478
49479         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49480
49481         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49482
49483 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49484
49485         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49486         Declare with __attribute__ ((weak)).
49487         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49488         Call __call_tls_dtors only if it's not NULL.
49489
49490 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49491
49492         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49493         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49494         magic __ehdr_start linker symbol if it's defined.
49495         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49496         them up here if it was already done.
49497
49498         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49499         (_dl_aux_init): Use const in cast when setting it.
49500         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49501         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49502         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49503
49504         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49505         Declare them here.
49506         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49507         * csu/libc-tls.c: Nor here.
49508         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49509
49510         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49511         (__libc_message): Never call vsyslog.
49512
49513 2013-03-28  Alan Modra  <amodra@gmail.com>
49514
49515         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49516         Define as empty.
49517         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49518         Likewise.
49519
49520 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49521
49522         [BZ #15214]
49523         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49524         underflow.
49525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49526
49527 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49528
49529         [BZ #15304]
49530         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49531         Don't add gid passed as argument.
49532
49533         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49534
49535 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49536
49537         [BZ #15307]
49538         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49539         imaginary part between 1.0 and 1.5 and real part less than 0.5
49540         specially.
49541         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49542         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49543         * math/libm-test.inc (cacos_test): Add more tests.
49544         (casin_test): Likewise.
49545         (casinh_test): Likewise.
49546         * sysdeps/i386/fpu/libm-test-ulps: Update.
49547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49548
49549 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49550
49551         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49552         constants.
49553         (norm): Likewise.
49554         (denorm): Likewise.
49555         (__dbl_mp): Likewise.
49556         (add_magnitudes): Likewise.
49557         (sub_magnitudes): Likewise.
49558         (__add): Likewise.
49559         (__sub): Likewise.
49560         (__mul): Likewise.
49561         (__sqr): Likewise.
49562         (__inv): Likewise.
49563         (__dvd): Likewise.
49564
49565         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49566         commented code.
49567         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49568         (__dubcos): Likewise.
49569         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49570         (__ieee754_acos): Likewise.
49571         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49572         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49573         (__exp1): Likewise.
49574         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49575         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49576         (log1): Likewise.
49577         (my_log2): Likewise.
49578         (checkint): Likewise.
49579         * sysdeps/ieee754/dbl-64/e_remainder.c
49580         (__ieee754_remainder): Likewise.
49581         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49582         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49583         (bsloww): Likewise.
49584         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49585
49586         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49587         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49588         MANTISSA_STORE_T to store computations on mantissa.  Use
49589         macros for rounding and division.
49590         (denorm): Likewise.
49591         (__dbl_mp): Likewise.
49592         (add_magnitudes): Likewise.
49593         (sub_magnitudes): Likewise.
49594         (__mul): Likewise.
49595         (__sqr): Likewise.
49596         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49597         powers of two in terms of TWOPOW macro.
49598         (mp_no): Make type of mantissa as MANTISSA_T.
49599         [!RADIXI]: Define RADIXI.
49600         [!TWO52]: Define TWO52.
49601         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49602
49603 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49604
49605         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49606         llroundl symbol when building for PPC32.
49607
49608 2013-03-24  Mark H Weaver  <mhw@netris.org>
49609
49610         * manual/arith.texi (Normalization Functions): Fix prototypes for
49611         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49612
49613 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49614
49615         [BZ #13889]
49616         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49617         high value to check if expl overflow.
49618         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49619         to check for underflow and overflow.
49620         * math/libm-test.inc: Add exp test.
49621
49622 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49623
49624         [BZ #11120]
49625         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49626         with NOT_IN_libc.
49627
49628 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49629
49630         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49631         symbol.
49632
49633 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49634
49635         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49636         wrap blocks consisting of several statements.
49637
49638         * sysdeps/generic/math-tests.h: New file.
49639         * sysdeps/i386/fpu/math-tests.h: Likewise.
49640         * math/test-snan.c: Include it.
49641         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49642
49643 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49644
49645         [BZ #15285]
49646         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49647         (__ieee754_j0l): Do not improve calculations using cos of twice
49648         input for inputs above LDBL_MAX / 2.0L.
49649         (__ieee754_y0l): Likewise.
49650         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49651         (__ieee754_j1l): Do not improve calculations using cos of twice
49652         input for inputs above LDBL_MAX / 2.0L.
49653         (__ieee754_y1l): Likewise.
49654         * math/libm-test.inc (j0_test): Add another test.
49655         (j1_test): Likewise.
49656         (y0_test): Likewise.
49657         (y1_test): Likewise.
49658         * sysdeps/i386/fpu/libm-test-ulps: Update.
49659
49660 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49661
49662         * Rules ($(objpfx)bench-%.c): Include code from a C source
49663         file.
49664
49665 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49666
49667         [BZ #15287]
49668         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49669         imaginary part 1.0 and real part less than 0.5 specially.
49670         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49671         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49672         * math/libm-test.inc (cacos_test): Add more tests.
49673         (casin_test): Likewise.
49674         (casinh_test): Likewise.
49675         * sysdeps/i386/fpu/libm-test-ulps: Update.
49676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49677
49678 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49679
49680         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49681         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49682
49683 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49684
49685         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49686         * config.make.in (config-cflags-sse4): Remove variable.
49687         (config-cflags-avx): Likewise.
49688         (config-cflags-sse2avx): Likewise.
49689         (config-cflags-novzeroupper): Likewise.
49690         (config-asflags-i686): Likewise.
49691         (have-mfma4): Likewise.
49692         (have-as-vis3): Likewise.
49693         (MIG): Likewise.
49694         * configure.in (MIG): Do not AC_SUBST.
49695         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49696         (libc_cv_cc_sse4): Do not AC_SUBST.
49697         (libc_cv_cc_avx): Likewise.
49698         (libc_cv_cc_sse2avx): Likewise.
49699         (libc_cv_cc_novzeroupper): Likewise.
49700         (libc_cv_cc_fma4): Likewise.
49701         (libc_cv_as_i686): Likewise.
49702         (libc_cv_sparc_as_vis3): Likewise.
49703         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49704         LIBC_CONFIG_VAR.
49705         (config-asflags-i686): Likewise.
49706         (config-cflags-avx): Likewise.
49707         (config-cflags-sse2avx): Likewise.
49708         (have-mfma4): Likewise.
49709         (config-cflags-novzeroupper): Likewise.
49710         * sysdeps/mach/configure.in (MIG): Likewise.
49711         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49712         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49713         LIBC_CONFIG_VAR.
49714         (config-cflags-avx): Likewise.
49715         (config-cflags-sse2avx): Likewise.
49716         (have-mfma4): Likewise.
49717         (config-cflags-novzeroupper): Likewise.
49718         * configure: Regenerated.
49719         * sysdeps/i386/configure: Likewise.
49720         * sysdeps/mach/configure: Likewise.
49721         * sysdeps/sparc/configure: Likewise.
49722         * sysdeps/x86_64/configure: Likewise.
49723
49724 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49725
49726         [BZ #14812]
49727         * locale/programs/localedef.c (options): Put N_ translation marker
49728         on argument names, not just descriptions.
49729
49730 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49731
49732         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49733
49734 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49735
49736         [BZ #14176]
49737         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49738
49739 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49740
49741         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49742         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49743         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49744         [!BEFORE_ABORT] (before_abort): New function.
49745         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49746         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49747         (writev_for_fatal): New function.
49748         (WRITEV_FOR_FATAL): New macro; call that.
49749         (backtrace_and_maps): New function.
49750         (BEFORE_ABORT): New macro; call that.
49751         (struct str_list): Type removed.
49752         (__libc_message, __libc_fatal): Functions removed.
49753         Include <sysdeps/posix/libc_fatal.c> instead.
49754
49755 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49756
49757         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49758         constants.
49759         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49760         double constants.
49761
49762 2013-03-19  Andreas Schwab  <schwab@suse.de>
49763
49764         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49765         * sysdeps/gnu/configure: Regenerate.
49766
49767         * configure.in: Substitute libc_cv_rtlddir.
49768         * configure: Regenerate.
49769         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49770         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49771         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49772         * elf/Makefile (install-others, CFLAGS-interp.c)
49773         (ldso_install, common-ldd-rewrite): Likewise.
49774         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49775         $(inst_slibdir)/$(rtld-installed-name).
49776         * scripts/rellns-sh: Add -p option.
49777         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49778         for source.
49779
49780 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49781
49782         * manual/nptl.texi: Renamed to ...
49783         * manual/threads.texi: ... this.
49784         * manual/Makefile (chapters): Update.
49785
49786 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49787
49788         [BZ #14812]
49789         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49790         on argument names, not just descriptions.
49791         * malloc/memusagestat.c (options): Likewise.
49792         * nss/getent.c (options): Likewise.
49793
49794 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49795
49796         [BZ #14812]
49797         * iconv/iconv_prog.c (options): Put N_ translation marker
49798         on argument names, not just descriptions.
49799         * iconv/iconvconfig.c (options): Likewise.
49800
49801 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49802
49803         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49804         implementation which is faster on all x86_64 architectures.
49805         Tested on AMD, Intel Nehalem, SNB, IVB.
49806         * sysdeps/x86_64/strnlen.S: Likewise.
49807
49808         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49809         Remove all multiarch strlen and strnlen versions.
49810         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49811         Remove strlen and strnlen related parts.
49812
49813         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49814         Inline strlen part.
49815         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49816
49817         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49818         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49819         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49820         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49821         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49822         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49823
49824 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49825
49826         * manual/memory.texi (Malloc Tunable Parameters):
49827         Sort parameters alphabetically. Add comments for missing entries.
49828
49829 2013-03-17  David S. Miller  <davem@davemloft.net>
49830
49831         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49832
49833 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49834
49835         [BZ #15283]
49836         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49837         for arguments at most half maximum finite value.
49838         * math/libm-test.inc (j0_test): Add more tests.
49839         (j1_test): Likewise.
49840         (y0_test): Likewise.
49841         (y1_test): Likewise.
49842         * sysdeps/i386/fpu/libm-test-ulps: Update.
49843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49844
49845         [BZ #14155]
49846         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49847         1 / x and functions P and Q for arguments above 0x1p256L.
49848         (__ieee754_y0l): Likewise.
49849         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49850         (__ieee754_y1l): Likewise.
49851         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49852         (j1_test): Likewise.
49853         (y0_test): Likewise.
49854         (y1_test): Likewise.
49855
49856 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49857
49858         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49859         variable.
49860
49861 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49862
49863         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49864         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49865         zero since it's initialized to EXEC_PAGESIZE.
49866
49867         * sysdeps/unix/sysv/linux/ldsodefs.h
49868         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49869         * sysdeps/generic/ldsodefs.h: ... here.
49870
49871 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49872
49873         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49874
49875         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49876         math/test-snan.c.
49877         * math/test-snan.c: Renamed from
49878         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49879         * math/Makefile (tests): Add test-snan.
49880         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49881         test-powerpc-snan.
49882
49883         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49884         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49885         functions.
49886         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49887         __builtin_nan family of functions.
49888         * math/libm-test.inc (initialize): Initialize qnan_value with
49889         __builtin_nan family of functions.
49890         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49891         Remove variables.
49892         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49893         Remove functions.
49894         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49895         storage class.  Initialize qNaN_var and sNaN_var with
49896         __builtin_nan and __builtin_nans families of functions,
49897         respectively.
49898
49899         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49900         (sqrt_test): Remove duplicate test with qNaN input.
49901         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49902         (round_test, signbit_test, significand_test): Note missing +/-Inf
49903         as well as qNaN tests.
49904
49905         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49906         qNaN_var.  Fix a few strings, too.
49907         * math/libm-test.inc (nan_value): Rename to qnan_value.
49908         * math/gen-libm-test.pl (%beautify): Adjust to that.
49909         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49910         * math/test-misc.c (main): Likewise.
49911         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49912         to __qnan_bytes, and __qnan_union, respectively.
49913         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49914         Likewise.
49915         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49916         and lqnanval, respectively.
49917         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49918         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49919         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49920         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49921
49922         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49923         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49924         doubles.
49925
49926         * math/test-misc.c (main): Fix copy'n'pastos.
49927         * misc/tst-efgcvt.c (special): Likewise.
49928
49929         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49930         Remove declarations.
49931
49932 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49933
49934         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49935         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49936         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49937         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49938
49939 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49940
49941         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49942         macro to return vdso values correctly in IFUNC implementations.
49943         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49944         Optimization by using IFUNC.
49945
49946 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49947             Richard Henderson  <rth@redhat.com>
49948             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49949
49950         * Makefile.in (bench): New target.
49951         * NEWS: Mention the benchmark framework.
49952         * Rules (bench): Likewise.
49953         (binaries-bench): Generate binaries for functions to
49954         benchmark.
49955         * benchtests/Makefile: New makefile for benchmark tests.
49956         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49957         programs.
49958         * benchtests/exp-inputs: New input file for EXP function.
49959         * benchtests/pow-inputs: New input file for POW function.
49960         * scripts/bench.pl: New script to generate source files for
49961         benchmark programs.
49962
49963 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49964
49965         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49966         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49967         computations on mantissa.  Use macros for rounding and
49968         division.
49969         (denorm): Likewise.
49970         (__dbl_mp): Likewise.
49971         (add_magnitudes): Likewise.
49972         (sub_magnitudes): Likewise.
49973         (__mul): Likewise.
49974         (__sqr): Likewise.
49975         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49976         powers of two in terms of TWOPOW macro.
49977         (mp_no): Make type of mantissa as MANTISSA_T.
49978         [!RADIXI]: Define RADIXI.
49979         [!TWO52]: Define TWO52.
49980         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49981
49982         * manual/nptl.texi (cindex): Modify threads to pthreads.
49983
49984 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49985
49986         * sysdeps/x86_64/preconfigure: Regenerated.
49987
49988 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49989
49990         [BZ #14155]
49991         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49992         0x1p28 and above.
49993         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49994         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49995         0x1p28 and above.
49996         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49997         * math/libm-test.inc (j0_test): Do not allow one spurious
49998         underflow exception.
49999         (y1_test): Likewise.
50000
50001 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50002
50003         * manual/Makefile (chapters): Add nptl.
50004         * manual/debug.texi (Debugging Support): Add link to Threads
50005         chapter.
50006         * manual/nptl.texi: New file.
50007
50008         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50009
50010 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50011
50012         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50013         for non-NULL pointer before the memory validity test. Pointed
50014         out by Holger Brunck <holger.brunck@keymile.com>.
50015
50016 2013-03-13  Andreas Schwab  <schwab@suse.de>
50017
50018         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50019         instead of .os.
50020
50021 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50022
50023         * timezone/zic.c: Update from tzcode 2013b.
50024
50025 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50026
50027         * manual/install.texi (Configuring and compiling):
50028         Mention i686 and i586.
50029         * INSTALL: Regenerate.
50030
50031 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50032
50033         * sysdeps/init_array/elf-init.c: New file.
50034         * csu/elf-init.c
50035         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50036         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50037
50038         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50039         __gmon_start__ as global, but as static with a .preinit_array pointer.
50040         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50041         * sysdeps/init_array/crti.S: New file, empty except for comments.
50042         * sysdeps/init_array/crtn.S: Likewise.
50043
50044 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50045
50046         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50047         definining bcopy.
50048         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50049         Remove Prefer_SSE_for_memop.
50050         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50051         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50052         HAS_PREFER_SSE_FOR_MEMOP.
50053         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50054         memset-x86-64.
50055         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50056         Remove bzero, memset ifunc support.
50057         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50058         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50059         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50060         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50061
50062 2013-03-11  Andreas Schwab  <schwab@suse.de>
50063
50064         [BZ #15234]
50065         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50066         by SHLIB_COMPAT.
50067         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50068         (GLIBC_2.16): Remove pthread_atfork.
50069
50070 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50071
50072         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50073         (ptestcases.h): Likewise.
50074
50075 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50076
50077         * Makeconfig ($(common-objpfx)config.status): Depend on
50078         sysdeps/*/preconfigure{,.in} too.
50079
50080 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50081
50082         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50083         (__free_hook): Use void * instead of __malloc_ptr_t.
50084         (__malloc_hook): Likewise.
50085         (__realloc_hook): Likewise.
50086         (__memalign_hook): Likewise.
50087         (__after_morecore_hook): Likewise.
50088         * malloc/arena.c (save_malloc_hook): Likewise.
50089         (save_free_hook): Likewise.
50090         * malloc/hooks.c (malloc_hook_ini): Likewise.
50091         (realloc_hook_ini): Likewise.
50092         (memalign_hook_ini): Likewise.
50093         * malloc/malloc.c (malloc_hook_ini): Likewise.
50094         (realloc_hook_ini): Likewise.
50095         (memalign_hook_ini): Likewise.
50096         (__free_hook): Likewise.
50097         (__malloc_hook): Likewise.
50098         (__realloc_hook): Likewise.
50099         (__memalign_hook): Likewise.
50100         (__libc_malloc): Likewise.
50101         (__libc_free): Likewise.
50102         (__libc_realloc): Likewise.
50103         (__libc_memalign): Likewise.
50104         (__libc_valloc): Likewise.
50105         (__libc_pvalloc): Likewise.
50106         (__libc_calloc): Likewise.
50107         (__posix_memalign): Likewise.
50108         * malloc/morecore.c (__sbrk): Likewise.
50109         (__default_morecore): Likewise.
50110
50111         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50112
50113         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50114         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50115         __malloc_ptrdiff_t.
50116
50117         * malloc/malloc.h (__malloc_size_t): Remove macro.
50118         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50119         __malloc_size_t.
50120         (old_memalign_hook): Likewise.
50121         (old_realloc_hook): Likewise.
50122         (struct hdr): Likewise.
50123         (flood): Likewise.
50124         (mallochook): Likewise.
50125         (memalignhook): Likewise.
50126         (reallochook): Likewise.
50127         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50128         (tr_old_realloc_hook): Likewise.
50129         (tr_old_memalign_hook): Likewise.
50130         (tr_mallochook): Likewise.
50131         (tr_reallochook): Likewise.
50132         (tr_memalignhook): Likewise.
50133
50134 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50135
50136         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50137         default_ldbl_pack and using as default implementation.
50138         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50139         implementation.
50140         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50141         redundant definition.
50142         (ldbl_insert_mantissa): Likewise.
50143         (ldbl_canonicalize): Likewise.
50144         (ldbl_nearbyint): Likewise.
50145         (ldbl_pack): Rename to ldbl_pack_ppc.
50146         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50147         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50148         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50149
50150 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50151
50152         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50153         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50154         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50155         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50156         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50157         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50158         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50159         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50160
50161 2013-03-07  Andreas Jaeger  <aj@suse.de>
50162
50163         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50164         bits/mman-linux.h.
50165
50166 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50167
50168         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50169         Include mpa.h and declare __MPEXP.
50170         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50171         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50172         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50173         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50174         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50175         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50176         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50177
50178         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50179         (__slowpow): Use long double EXPL and LOGL functions to
50180         compute POW.
50181         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50182         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50183         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50184         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50185         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50186         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50187
50188         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50189         intermediate variable to calculate exponent.
50190         (__sqr): Likewise.
50191         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50192         Likewise.
50193         (__sqr): Likewise.
50194
50195         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50196         [!NO__SQR]: Define __sqr.
50197         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50198         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50199         sysdeps/ieee754/dbl-64/mpa.c.
50200         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50201
50202         [BZ #12723]
50203         * posix/Makefile (tests): Add tst-pathconf.
50204         * posix/tst-pathconf.c: New test case.
50205         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50206         _PC_PIPE_BUF.
50207         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50208
50209 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50210
50211         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50212
50213 2013-03-06  Andreas Jaeger  <aj@suse.de>
50214
50215         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50216         definition via __MAP_ANONYMOUS.
50217
50218         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50219         it's not part of Linux headers.
50220
50221         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50222         (MAP_HUGE_MASK): Define.
50223
50224         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50225         Define.
50226         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50227         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50228         Define.
50229         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50230         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50231         Define.
50232         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50233         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50234         Define.
50235         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50236
50237         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50238         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50239         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50240         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50241         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50242         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50243
50244         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50245         Handle f2fs.
50246
50247         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50248         Handle f2fs and efivarfs.
50249
50250         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50251         f2fs.
50252
50253         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50254         (EFIVARFS_MAGIC): Add.
50255         (F2FS_LINK_MAX): Add.
50256
50257 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50258
50259         * stdio-common/vfprintf.c: Replace __builtin_expect with
50260         __glibc_unlikely.
50261
50262 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50263
50264         [BZ #13550]
50265         * sysdeps/generic/bp-sym.h: Remove file.
50266         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50267         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50268         <bp-sym.h> and <bp-asm.h>.
50269         (__longjmp): Don't use BP_SYM.
50270         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50271         and <bp-asm.h>.
50272         (memcpy): Don't use BP_SYM.
50273         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50274         <bp-sym.h> and <bp-asm.h>.
50275         (memcpy): Don't use BP_SYM.
50276         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50277         <bp-asm.h>.
50278         (memcpy): Don't use BP_SYM.
50279         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50280         <bp-asm.h>.
50281         (memset): Don't use BP_SYM.
50282         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50283         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50284         (__bzero): Don't use BP_SYM.
50285         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50286         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50287         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50288         <bp-sym.h> and <bp-asm.h>.
50289         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50290         pointers.
50291         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50292         <bp-sym.h> and <bp-asm.h>.
50293         (memcpy): Don't use BP_SYM.
50294         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50295         <bp-sym.h> and <bp-asm.h>.
50296         (memset): Don't use BP_SYM.
50297         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50298         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50299         (__bzero): Don't use BP_SYM.
50300         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50301         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50302         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50303         <bp-sym.h> and <bp-asm.h>.
50304         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50305         pointers.
50306         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50307         <bp-sym.h> and <bp-asm.h>.
50308         (memcpy): Don't use BP_SYM.
50309         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50310         <bp-sym.h> and <bp-asm.h>.
50311         (memset): Don't use BP_SYM.
50312         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50313         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50314         (__bzero): Don't use BP_SYM.
50315         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50316         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50317         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50318         <bp-sym.h> and <bp-asm.h>.
50319         (__memchr): Don't use BP_SYM.
50320         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50321         <bp-sym.h> and <bp-asm.h>.
50322         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50323         pointers.
50324         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50325         <bp-sym.h> and <bp-asm.h>.
50326         (memcpy): Don't use BP_SYM.
50327         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50328         <bp-sym.h> and <bp-asm.h>.
50329         (__mempcpy): Don't use BP_SYM.
50330         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50331         <bp-sym.h> and <bp-asm.h>.
50332         (__memrchr): Don't use BP_SYM.
50333         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50334         <bp-sym.h> and <bp-asm.h>.
50335         (memset): Don't use BP_SYM.
50336         (__bzero): Likewise.
50337         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50338         <bp-sym.h> and <bp-asm.h>.
50339         (__rawmemchr): Don't use BP_SYM.
50340         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50341         <bp-sym.h> and <bp-asm.h>.
50342         (__STRCMP): Don't use BP_SYM.
50343         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50344         <bp-sym.h> and <bp-asm.h>.
50345         (strchr): Don't use BP_SYM.
50346         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50347         <bp-sym.h> and <bp-asm.h>.
50348         (__strchrnul): Don't use BP_SYM.
50349         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50350         <bp-sym.h> and <bp-asm.h>.
50351         (strlen): Don't use BP_SYM.
50352         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50353         <bp-sym.h> and <bp-asm.h>.
50354         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50355         pointers.
50356         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50357         <bp-sym.h> and <bp-asm.h>.
50358         (__strnlen): Don't use BP_SYM.
50359         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50360         <bp-sym.h> and <bp-asm.h>.
50361         (__GI__setjmp): Don't use BP_SYM.
50362         (_setjmp): Likewise.
50363         (__sigsetjmp): Likewise.
50364         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50365         (L(start_addresses)): Don't use BP_SYM.
50366         (_start): Likewise.
50367         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50368         <bp-asm.h>.
50369         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50370         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50371         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50372         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50373         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50374         <bp-asm.h>.
50375         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50376         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50377         about bounded pointers.
50378         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50379         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50380         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50381         <bp-asm.h>.
50382         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50383         about bounded pointers.  Remove GKM FIXME comments.
50384         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50385         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50386         <bp-asm.h>.
50387         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50388         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50389         Remove GKM FIXME comments.
50390         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50391         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50392         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50393         <bp-asm.h>.
50394         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50395         about bounded pointers.  Remove GKM FIXME comment.
50396         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50397         and <bp-asm.h>.
50398         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50399         pointers.
50400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50401         <bp-sym.h> and <bp-asm.h>.
50402         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50404         <bp-sym.h> and <bp-asm.h>.
50405         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50406         comment.
50407
50408 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50409
50410         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50411         call free(NULL).
50412
50413 2013-03-05  David S. Miller  <davem@davemloft.net>
50414
50415         * po/es.po: Update from translation team.
50416
50417 2013-03-05  Andreas Jaeger  <aj@suse.de>
50418
50419         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50420         <bits/mman-linux.h>.
50421         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50422         is fine.
50423         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50424         <bits/mman-linux.h> to end of file.
50425         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50426         is fine.
50427         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50428         <bits/mman-linux.h> to end of file.
50429         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50430         is fine.
50431         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50432         <bits/mman-linux.h> to end of file.
50433
50434         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50435         (MCL_CURRENT, MCL_FUTURE): Define here.
50436
50437 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50438
50439         [BZ #15232]
50440         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50441         attribute_hidden.
50442         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50443
50444 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50445
50446         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50447         fourth parameter needed for rt_sigprocmask syscall.
50448         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50449         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50450         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50451         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50452         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50453         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50454
50455 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50456
50457         [BZ #13550]
50458         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50459         comment about bounded pointers.
50460         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50461         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50462
50463 2013-03-04  Andreas Jaeger  <aj@suse.de>
50464
50465         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50466         common definitions.
50467
50468         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50469         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50470         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50471         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50472         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50473         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50474
50475 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50476
50477         [BZ #15055]
50478         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50479         __ieee754_sqrl instead of __sqrl.
50480
50481 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50482
50483         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50484         * sysdeps/powerpc/fpu_control.h: ... here.
50485         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50486         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50487         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50488         * sysdeps/powerpc/bits/mathinline.h: ... here.
50489
50490 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50491
50492         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50493         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50494         to just [NEED_DL_SYSINFO_DSO].
50495         * elf/dl-support.c: Likewise.
50496         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50497         * elf/rtld.c (dl_main): Likewise.
50498         * elf/setup-vdso.h (setup_vdso): Likewise.
50499         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50500         * sysdeps/unix/sysv/linux/dl-sysdep.c
50501         (_dl_discover_osversion): Likewise.
50502
50503 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50504
50505         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50506         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50507
50508 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50509
50510         * NEWS: Mention libm performance improvements and non-x86 PI
50511         futex support.
50512
50513         * csu/libc-start.c (__pthread_initialize_minimal): Change
50514         function arguments.
50515         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50516
50517 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50518
50519         [BZ #13550]
50520         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50521         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50522         <bp-sym.h> and <bp-asm.h>.
50523         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50524         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50525         and <bp-asm.h>.
50526         (memcpy): Don't use BP_SYM.
50527         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50528         <bp-asm.h>.
50529         (__mpn_add_n): Don't use BP_SYM.
50530         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50531         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50532         and <bp-asm.h>.
50533         (__mpn_addmul_1): Don't use BP_SYM.
50534         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50535         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50536         <bp-sym.h>.
50537         (_setjmp): Don't use BP_SYM.
50538         (__novmx_setjmp): Likewise.
50539         (__GI__setjmp): Likewise.
50540         (__vmx_setjmp): Likewise.
50541         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50542         <bp-sym.h>.
50543         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50544         (__bzero): Don't use BP_SYM.
50545         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50546         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50547         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50548         <bp-sym.h> and <bp-asm.h>.
50549         (memcpy): Don't use BP_SYM.
50550         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50551         <bp-sym.h> and <bp-asm.h>.
50552         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50553         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50554         <bp-sym.h> and <bp-asm.h>.
50555         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50556         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50557         <bp-asm.h>.
50558         (__mpn_lshift): Don't use BP_SYM.
50559         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50560         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50561         <bp-asm.h>.
50562         (memset): Don't use BP_SYM.
50563         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50564         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50565         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50566         <bp-asm.h>.
50567         (__mpn_mul_1): Don't use BP_SYM.
50568         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50569         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50570         <bp-sym.h> and <bp-asm.h>.
50571         (memcmp): Don't use BP_SYM.
50572         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50573         <bp-sym.h> and <bp-asm.h>.
50574         (memcpy): Don't use BP_SYM.
50575         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50576         <bp-sym.h> and <bp-asm.h>.
50577         (memset): Don't use BP_SYM.
50578         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50579         <bp-sym.h> and <bp-asm.h>.
50580         (strncmp): Don't use BP_SYM.
50581         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50582         <bp-sym.h> and <bp-asm.h>.
50583         (memcpy): Don't use BP_SYM.
50584         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50585         <bp-sym.h> and <bp-asm.h>.
50586         (memset): Don't use BP_SYM.
50587         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50588         <bp-sym.h> and <bp-asm.h>.
50589         (__memchr): Don't use BP_SYM.
50590         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50591         <bp-sym.h> and <bp-asm.h>.
50592         (memcmp): Don't use BP_SYM.
50593         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50594         <bp-sym.h> and <bp-asm.h>.
50595         (memcpy): Don't use BP_SYM.
50596         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50597         <bp-sym.h> and <bp-asm.h>.
50598         (__mempcpy): Don't use BP_SYM.
50599         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50600         <bp-sym.h> and <bp-asm.h>.
50601         (__memrchr): Don't use BP_SYM.
50602         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50603         <bp-sym.h> and <bp-asm.h>.
50604         (memset): Don't use BP_SYM.
50605         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50606         <bp-sym.h> and <bp-asm.h>.
50607         (__rawmemchr): Don't use BP_SYM.
50608         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50609         <bp-sym.h> and <bp-asm.h>.
50610         (__STRCMP): Don't use BP_SYM.
50611         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50612         <bp-sym.h> and <bp-asm.h>.
50613         (strchr): Don't use BP_SYM.
50614         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50615         <bp-sym.h> and <bp-asm.h>.
50616         (__strchrnul): Don't use BP_SYM.
50617         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50618         <bp-sym.h> and <bp-asm.h>.
50619         (strlen): Don't use BP_SYM.
50620         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50621         <bp-sym.h> and <bp-asm.h>.
50622         (strncmp): Don't use BP_SYM.
50623         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50624         <bp-sym.h> and <bp-asm.h>.
50625         (__strnlen): Don't use BP_SYM.
50626         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50627         <bp-asm.h>.
50628         (__mpn_rshift): Don't use BP_SYM.
50629         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50630         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50631         <bp-sym.h> and <bp-asm.h>.
50632         (__sigsetjmp): Don't use BP_SYM.
50633         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50634         (L(start_addresses)): Don't use BP_SYM.
50635         (_start): Likewise.
50636         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50637         <bp-asm.h>.
50638         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50639         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50640         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50641         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50642         <bp-asm.h>.
50643         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50644         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50645         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50646         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50647         <bp-asm.h>.
50648         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50649         comments.
50650         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50651         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50652         <bp-asm.h>.
50653         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50654         FIXME comments.
50655         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50656         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50657         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50658         <bp-asm.h>.
50659         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50660         comment.
50661         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50662         and <bp-asm.h>.
50663         (strncmp): Don't use BP_SYM,
50664         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50665         <bp-asm.h>.
50666         (__mpn_sub_n): Don't use BP_SYM.
50667         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50668         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50669         and <bp-asm.h>.
50670         (__mpn_submul_1): Don't use BP_SYM.
50671         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50673         <bp-sym.h> and <bp-asm.h>.
50674         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50676         <bp-sym.h> and <bp-asm.h>.
50677         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50678         comment.
50679
50680 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50681
50682         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50683         Use ZK to minimize writes to Z.
50684         (sub_magnitudes): Simplify code a bit.
50685         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50686         Use ZK to minimize writes to Z.
50687         (sub_magnitudes): Simplify code a bit.
50688
50689 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50690
50691         * csu/gmon-start.c: Add special exception to license text.
50692
50693 2013-02-27  Richard Henderson  <rth@redhat.com>
50694
50695         * scripts/config.guess: Update from config.git.
50696         * scripts/config.sub: Likewise.
50697
50698 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50699
50700         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50701
50702         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50703
50704         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50705
50706         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50707
50708         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50709
50710 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50711
50712         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50713         [$(build-shared = yes].
50714
50715 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50716
50717         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50718         (__mul): Reduce iterations for calculating mantissa.
50719
50720         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50721         MPTWO.
50722         (__mpranred): Likewise.
50723
50724         [BZ #15160]
50725         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50726         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50727
50728 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50731         Define __attribute__.
50732
50733 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50734
50735         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50736         unused.
50737         * posix/regex_internal.h (__attribute): Remove.
50738         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50739         (re_string_context_at): Likewise.
50740         (bitset_not): Use __attribute__ and mark function as possibly
50741         unused.
50742         (bitset_merge): Likewise.
50743         (bitset_mask): Likewise.
50744         (re_string_char_size_at): Likewise.
50745         (re_string_wchar_at): Likewise.
50746         (re_string_elem_size_at): Likewise.
50747
50748 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50749
50750         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50751         code.
50752         (cc32): Likewise.
50753
50754         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50755         (__acr): Likewise.
50756         (__cpy): Likewise.
50757         (norm): Likewise.
50758         (denorm): Likewise.
50759         (__dbl_mp): Likewise.
50760         (add_magnitudes): Likewise.
50761         (sub_magnitudes): Likewise.
50762         (__mul): Likewise.
50763         (__inv): Likewise.
50764
50765         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50766         style.
50767
50768         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50769         style.
50770
50771         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50772         code.
50773
50774         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50775         up changes with default code.
50776         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50777         Likewise.
50778
50779 2013-02-24  Allan McRae  <allan@archlinux.org>
50780
50781         * manual/socket.texi (The Internet Namespace): Order menu items
50782         to match that in the file.
50783
50784         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50785         node listing of the info page menu.
50786
50787 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50788
50789         [BZ #13550]
50790         * sysdeps/i386/bp-asm.h: Remove file.
50791         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50792         (PARMS): Do not use macros from bp-asm.h.
50793         (S1): Likewise.
50794         (S2): Likewise.
50795         (SIZE): Likewise.
50796         (__mpn_add_n): Do not use BP_SYM
50797         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50798         "bp-asm.h".
50799         (PARMS): Do not use macros from bp-asm.h.
50800         (S1): Likewise.
50801         (SIZE): Likewise.
50802         (__mpn_addmul_1): Do not use BP_SYM
50803         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50804         "bp-asm.h".
50805         (PARMS): Do not use macros from bp-asm.h.
50806         (SIGMSK): Likewise.
50807         (_setjmp): Likewise.  Do not use BP_SYM.
50808         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50809         "bp-asm.h".
50810         (PARMS): Do not use macros from bp-asm.h.
50811         (SIGMSK): Likewise.
50812         (setjmp): Likewise.  Do not use BP_SYM.
50813         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50814         "bp-asm.h".
50815         (PARMS): Do not use macros from bp-asm.h.
50816         (__frexp): Do not use BP_SYM.
50817         (frexp): Likewise.
50818         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50819         "bp-asm.h".
50820         (PARMS): Do not use macros from bp-asm.h.
50821         (__frexpf): Do not use BP_SYM.
50822         (frexpf): Likewise.
50823         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50824         "bp-asm.h".
50825         (PARMS): Do not use macros from bp-asm.h.
50826         (__frexpl): Do not use BP_SYM.
50827         (frexpl): Likewise.
50828         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50829         "bp-asm.h".
50830         (PARMS): Do not use macros from bp-asm.h.
50831         (__remquo): Do not use BP_SYM.
50832         (remquo): Likewise.
50833         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50834         "bp-asm.h".
50835         (PARMS): Do not use macros from bp-asm.h.
50836         (__remquof): Do not use BP_SYM.
50837         (remquof): Likewise.
50838         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50839         "bp-asm.h".
50840         (PARMS): Do not use macros from bp-asm.h.
50841         (__remquol): Do not use BP_SYM.
50842         (remquol): Likewise.
50843         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50844         "bp-asm.h".
50845         (PARMS): Do not use macros from bp-asm.h.
50846         (DEST): Likewise.
50847         (SRC): Likewise.
50848         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50849         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50850         "bp-asm.h".
50851         (PARMS): Do not use macros from bp-asm.h.
50852         (strlen): Do not use BP_SYM.
50853         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50854         "bp-asm.h".
50855         (PARMS): Do not use macros from bp-asm.h.
50856         (S1): Likewise.
50857         (S2): Likewise.
50858         (SIZE): Likewise.
50859         (__mpn_add_n): Do not use BP_SYM.
50860         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50861         "bp-asm.h".
50862         (PARMS): Do not use macros from bp-asm.h.
50863         (S1): Likewise.
50864         (SIZE): Likewise.
50865         (__mpn_addmul_1): Do not use BP_SYM.
50866         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50867         weak_alias.
50868         (bzero): Likewise.
50869         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50870         "bp-asm.h".
50871         (PARMS): Do not use macros from bp-asm.h.
50872         (S): Likewise.
50873         (SIZE): Likewise.
50874         (__mpn_lshift): Do not use BP_SYM.
50875         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50876         "bp-asm.h".
50877         (PARMS): Do not use macros from bp-asm.h.
50878         (DEST): Likewise.
50879         (SRC): Likewise.
50880         (LEN): Likewise.
50881         (memcpy): Likewise.  Do not use BP_SYM.
50882         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50883         libc_hidden_def and weak_alias.
50884         (mempcpy): Do not use BP_SYM in weak_alias.
50885         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50886         "bp-asm.h".
50887         (PARMS): Do not use macros from bp-asm.h.
50888         (DEST): Likewise.
50889         (LEN): Likewise.
50890         [!BZERO_P] (CHR): Likewise.
50891         (memset): Likewise.  Do not use BP_SYM.
50892         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50893         "bp-asm.h".
50894         (PARMS): Do not use macros from bp-asm.h.
50895         (S1): Likewise.
50896         (SIZE): Likewise.
50897         (__mpn_mul_1): Do not use BP_SYM.
50898         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50899         "bp-asm.h".
50900         (PARMS): Do not use macros from bp-asm.h.
50901         (S): Likewise.
50902         (SIZE): Likewise.
50903         (__mpn_rshift): Do not use BP_SYM.
50904         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50905         "bp-asm.h".
50906         (PARMS): Do not use macros from bp-asm.h.
50907         (STR): Likewise.
50908         (CHR): Likewise.
50909         (strchr): Likewise.  Do not use BP_SYM.
50910         (index): Do not use BP_SYM in weak_alias.
50911         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50912         "bp-asm.h".
50913         (PARMS): Do not use macros from bp-asm.h.
50914         (DEST): Likewise.
50915         (SRC): Likewise.
50916         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50917         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50918         "bp-asm.h".
50919         (PARMS): Do not use macros from bp-asm.h.
50920         (strlen): Do not use BP_SYM.
50921         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50922         "bp-asm.h".
50923         (PARMS): Do not use macros from bp-asm.h.
50924         (S1): Likewise.
50925         (S2): Likewise.
50926         (SIZE): Likewise.
50927         (__mpn_sub_n): Do not use BP_SYM.
50928         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50929         "bp-asm.h".
50930         (PARMS): Do not use macros from bp-asm.h.
50931         (S1): Likewise.
50932         (SIZE): Likewise.
50933         (__mpn_submul_1): Do not use BP_SYM.
50934         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50935         "bp-asm.h".
50936         (PARMS): Do not use macros from bp-asm.h.
50937         (S1): Likewise.
50938         (S2): Likewise.
50939         (SIZE): Likewise.
50940         (__mpn_add_n): Do not use BP_SYM.
50941         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50942         weak_alias.
50943         (bzero): Likewise.
50944         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50945         "bp-asm.h".
50946         (PARMS): Do not use macros from bp-asm.h.
50947         (BLK2): Likewise.
50948         (LEN): Likewise.
50949         (memcmp): Do not use BP_SYM.
50950         (bcmp): Do not use BP_SYM in weak_alias.
50951         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50952         "bp-asm.h".
50953         (PARMS): Do not use macros from bp-asm.h.
50954         (DEST): Likewise.
50955         (SRC): Likewise.
50956         (LEN): Likewise.
50957         (memcpy): Likewise.  Do not use BP_SYM.
50958         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50959         "bp-asm.h".
50960         (PARMS): Do not use macros from bp-asm.h.
50961         (DEST): Likewise.
50962         (SRC): Likewise.
50963         (LEN): Likewise.
50964         (memmove): Likewise.  Do not use BP_SYM.
50965         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50966         "bp-asm.h".
50967         (PARMS): Do not use macros from bp-asm.h.
50968         (DEST): Likewise.
50969         (SRC): Likewise.
50970         (LEN): Likewise.
50971         (__mempcpy): Likewise.  Do not use BP_SYM.
50972         (mempcpy): Do not use BP_SYM in weak_alias.
50973         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50974         "bp-asm.h".
50975         (PARMS): Do not use macros from bp-asm.h.
50976         (DEST): Likewise.
50977         (LEN): Likewise.
50978         [!BZERO_P] (CHR): Likewise.
50979         (memset): Likewise.  Do not use BP_SYM.
50980         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50981         "bp-asm.h".
50982         (PARMS): Do not use macros from bp-asm.h.
50983         (STR2): Likewise.
50984         (strcmp): Do not use BP_SYM.
50985         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50986         "bp-asm.h".
50987         (PARMS): Do not use macros from bp-asm.h.
50988         (STR): Likewise.
50989         (DELIM): Likewise.
50990         [USE_AS_STRTOK_R] (SAVE): Likewise.
50991         (FUNCTION): Likewise.  Do not use BP_SYM.
50992         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50993         aliases.
50994         (strtok_r): Likewise.
50995         (__GI___strtok_r): Likewise.
50996         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50997         (PARMS): Do not use macros from bp-asm.h.
50998         (S): Likewise.
50999         (SIZE): Likewise.
51000         (__mpn_lshift): Do not use BP_SYM.
51001         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51002         (PARMS): Do not use macros from bp-asm.h.
51003         (STR): Likewise.
51004         (CHR): Likewise.
51005         (__memchr): Do not use BP_SYM.
51006         (memchr): Do not use BP_SYM in weak_alias.
51007         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51008         (PARMS): Do not use macros from bp-asm.h.
51009         (BLK2): Likewise.
51010         (LEN): Likewise.
51011         (memcmp): Do not use BP_SYM.
51012         (bcmp): Do not use BP_SYM in weak_alias.
51013         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51014         (PARMS): Do not use macros from bp-asm.h.
51015         (S1): Likewise.
51016         (SIZE): Likewise.
51017         (__mpn_mul_1): Do not use BP_SYM.
51018         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51019         "bp-asm.h".
51020         (PARMS): Do not use macros from bp-asm.h.
51021         (STR): Likewise.
51022         (CHR): Likewise.
51023         (__rawmemchr): Do not use BP_SYM.
51024         (rawmemchr): Do not use BP_SYM in weak_alias.
51025         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51026         (PARMS): Do not use macros from bp-asm.h.
51027         (S): Likewise.
51028         (SIZE): Likewise.
51029         (__mpn_rshift): Do not use BP_SYM.
51030         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51031         (PARMS): Do not use macros from bp-asm.h.
51032         (SIGMSK): Likewise.
51033         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51034         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51035         (_start): Do not use BP_SYM.
51036         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51037         (PARMS): Do not use macros from bp-asm.h.
51038         (DEST): Likewise.
51039         (SRC): Likewise.
51040         (__stpcpy): Likewise.  Do not use BP_SYM.
51041         (stpcpy): Do not use BP_SYM in weak_alias.
51042         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51043         "bp-asm.h".
51044         (PARMS): Do not use macros from bp-asm.h.
51045         (DEST): Likewise.
51046         (SRC): Likewise.
51047         (LEN): Likewise.
51048         (__stpncpy): Likewise.  Do not use BP_SYM.
51049         (stpncpy): Do not use BP_SYM in weak_alias.
51050         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51051         (PARMS): Do not use macros from bp-asm.h.
51052         (STR): Likewise.
51053         (CHR): Likewise.
51054         (strchr): Likewise.  Do not use BP_SYM.
51055         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51056         "bp-asm.h".
51057         (PARMS): Do not use macros from bp-asm.h.
51058         (STR): Likewise.
51059         (CHR): Likewise.
51060         (__strchrnul): Likewise.  Do not use BP_SYM.
51061         (strchrnul): Do not use BP_SYM in weak_alias.
51062         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51063         "bp-asm.h".
51064         (PARMS): Do not use macros from bp-asm.h.
51065         (STOP): Likewise.
51066         (strcspn): Do not use BP_SYM.
51067         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51068         "bp-asm.h".
51069         (PARMS): Do not use macros from bp-asm.h.
51070         (STR): Likewise.
51071         (STOP): Likewise.
51072         (strpbrk): Likewise.  Do not use BP_SYM.
51073         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51074         "bp-asm.h".
51075         (PARMS): Do not use macros from bp-asm.h.
51076         (STR): Likewise.
51077         (CHR): Likewise.
51078         (strrchr): Likewise.  Do not use BP_SYM.
51079         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51080         (PARMS): Do not use macros from bp-asm.h.
51081         (SKIP): Likewise.
51082         (strspn): Do not use BP_SYM.
51083         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51084         (PARMS): Do not use macros from bp-asm.h.
51085         (STR): Likewise.
51086         (DELIM): Likewise.
51087         (SAVE): Likewise.
51088         (FUNCTION): Likewise.  Do not use BP_SYM.
51089         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51090         aliases.
51091         (strtok_r): Likewise.
51092         (__GI___strtok_r): Likewise.
51093         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51094         (PARMS): Do not use macros from bp-asm.h.
51095         (S1): Likewise.
51096         (S2): Likewise.
51097         (SIZE): Likewise.
51098         (__mpn_sub_n): Do not use BP_SYM.
51099         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51100         "bp-asm.h".
51101         (PARMS): Do not use macros from bp-asm.h.
51102         (S1): Likewise.
51103         (SIZE): Likewise.
51104         (__mpn_submul_1): Do not use BP_SYM.
51105         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51106         <bp-sym.h>.
51107         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51108         and <bp-asm.h>.
51109         (PARMS): Do not use macros from bp-asm.h.
51110         (FLAGS): Likewise.
51111         (PTID): Likewise.
51112         (TLS): Likewise.
51113         (CTID): Likewise.
51114         (__clone): Do not use BP_SYM.
51115         (clone): Do not use BP_SYM in weak_alias.
51116         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51117         and <bp-asm.h>.
51118         (PARMS): Do not use macros from bp-asm.h.
51119         (LEN): Likewise.
51120         (__mmap64): Do not use BP_SYM.
51121         (mmap64): Do not use BP_SYM in weak_alias.
51122         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51123         <bp-sym.h> and <bp-asm.h>.
51124         (PARMS): Do not use macros from bp-asm.h.
51125         (__posix_fadvise64_l64): Do not use BP_SYM.
51126         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51127         (PARMS): Do not use macros from bp-asm.h.
51128         (NSOPS): Likewise.
51129         (semtimedop): Do not use BP_SYM.
51130         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51131         and <bp-asm.h>.
51132
51133 2013-02-21  Allan McRae  <allan@archlinux.org>
51134
51135         * manual/message.texi (Charset conversion in gettext):
51136         Move @end statement to beginning of line.
51137
51138 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51139
51140         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51141         static.
51142         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51143         Likewise.
51144
51145         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51146         (denorm): Likewise.
51147         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51148         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51149
51150 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51151
51152         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51153         tail-call to the resolved function if pltexit isn't needed.
51154
51155 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51156
51157         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51158         or Y being zero as being unlikely.
51159         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51160         Likewise.
51161
51162 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51163
51164         * manual/nss.texi (System Databases and Name Service Switch):
51165         Remove frobnicate @pxref.
51166
51167 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51168
51169         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51170         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51171
51172 2013-02-20  Petr Machata  <pmachata@redhat.com>
51173
51174         * elf/elf.h (R_ARM_TARGET1): New macro.
51175         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51176         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51177         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51178         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51179         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51180         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51181         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51182         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51183         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51184         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51185         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51186         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51187         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51188         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51189         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51190         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51191         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51192         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51193         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51194         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51195         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51196         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51197         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51198         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51199         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51200         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51201         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51202         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51203         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51204         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51205         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51206         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51207         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51208         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51209         (R_ARM_THM_GOT_BREL12): Likewise.
51210         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51211         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51212         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51213         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51214         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51215         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51216         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51217         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51218         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51219
51220 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51221
51222         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51223         __attribute_used__ to __attribute__ ((unused)).
51224
51225 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51226
51227         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51228         powerpc mpa.c.
51229         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51230         comment formatting.
51231         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51232
51233 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51234
51235         [BZ #13550]
51236         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51237         Remove macro.
51238         (ENTER): Remove both macro definitions.
51239         (LEAVE): Likewise.
51240         (CHECK_BOUNDS_LOW): Likewise.
51241         (CHECK_BOUNDS_HIGH): Likewise.
51242         (CHECK_BOUNDS_BOTH): Likewise.
51243         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51244         (RETURN_BOUNDED_POINTER): Likewise.
51245         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51246         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51247         (POP_ERRNO_LOCATION_RETURN): Likewise.
51248         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51249         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51250         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51251         macros.
51252         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51253         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51254         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51255         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51256         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51257         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51258         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51259         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51260         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51261         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51262         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51263         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51264         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51265         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51266         removed macros.
51267         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51268         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51269         macros.
51270         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51271         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51272         * sysdeps/i386/i586/memset.S (memset): Likewise.
51273         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51274         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51275         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51276         macros.
51277         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51278         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51279         Change uses of L(2) to L(out).
51280         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51281         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51282         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51283         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51284         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51285         removed macros.
51286         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51287         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51288         macros.
51289         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51290         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51291         (RETURN): Do not use macro LEAVE.
51292         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51293         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51294         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51295         * sysdeps/i386/i686/memset.S (memset): Likewise.
51296         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51297         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51298         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51299         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51300         Likewise.
51301         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51302         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51303         L(1_2) and L(1_3) into L(1).
51304         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51305         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51306         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51307         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51308         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51309         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51310         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51311         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51312         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51313         macros.
51314         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51315         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51316         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51317         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51318         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51319         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51320         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51321         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51322         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51323         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51324         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51325         * sysdeps/i386/strspn.S (strspn): Likewise.
51326         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51327         conditional code.
51328         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51329         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51330         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51331         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51332         L(1_3) into L(1_1).
51333         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51334         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51335         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51336         macros.
51337         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51338
51339 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51340
51341         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51342         macro.
51343
51344 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51345
51346         * math/atest-exp.c (exp_mpn): Remove ROUND.
51347         * math/atest-exp2.c (exp_mpn): Likewise.
51348         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51349
51350         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51351         * stdlib/tst-tls-atexit-lib.c: Likewise.
51352         * stdlib/tst-tls-atexit.c: Likewise.
51353
51354 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51355
51356         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51357         and __attribute_alloc_size__.
51358
51359 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51360
51361         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51362         __attribute_alloc_size__.
51363         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51364         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51365
51366 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51367
51368         * include/programs/xmalloc.h: New file.
51369         * catgets/gencat.c: Include it.
51370         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51371         * elf/pldd.c: Likewise.
51372         * iconv/iconv_charmap.c: Likewise.
51373         * iconv/iconvconfig.c: Likewise.
51374         * iconv/strtab.c: Likewise.
51375         * locale/programs/locale.c: Likewise.
51376         * locale/programs/localedef.h: Likewise.
51377         * locale/programs/simple-hash.c: Likewise.
51378         * nscd/nscd.h: Likewise.
51379         * nss/makedb.c: Likewise.
51380         * sysdeps/generic/ldconfig.h: Likewise.
51381
51382 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51383
51384         * Versions.def: Add GLIBC_2.18.
51385         * include/link.h (struct link_map): New member l_tls_dtor_count.
51386         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51387         (__call_tls_dtors): Likewise.
51388         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51389         __cxa_thread_atexit_impl.
51390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51391         Likewise.
51392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51393         Likewise.
51394         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51395         Likewise.
51396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51397         Likewise.
51398         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51399         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51400         Likewise.
51401         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51402         Likewise.
51403         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51404         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51405         Likewise.
51406         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51407         (tests): Add test case tst-tls-atexit.
51408         (modules-names): Add shared library for tst-tls-atexit.
51409         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51410         (GLIBC_PRIVATE): Add __call_tls_dtors.
51411         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51412         for libstdc++.
51413         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51414         * stdlib/tst-tls-atexit.c: New test case.
51415         * stdlib/tst-tls-atexit-lib.c: New test case.
51416
51417         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51418
51419         * elf/Versions (ld): Add _dl_find_dso_for_object.
51420         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51421         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51422         (dl_open_worker): Use _dl_find_dso_for_object.
51423         * elf/dl-sym.c (do_sym): Likewise.
51424         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51425
51426 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51427
51428         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51429         Syntactic changes only.
51430         (_dl_runtime_profile): Do a tail-call to the resolved function.
51431
51432 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51433
51434         [BZ #13550]
51435         * sysdeps/x86_64/bp-asm.h: Remove file.
51436         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51437         <bp-sym.h> and <bp-asm.h>.
51438         (__clone): Do not use BP_SYM.
51439         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51440         <bp-sym.h> and <bp-asm.h>.
51441         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51442         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51443         "bp-asm.h".
51444         (_setjmp): Do not use BP_SYM.
51445         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51446         "bp-asm.h".
51447         (setjmp): Do not use BP_SYM.
51448         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51449         libc_hidden_def.
51450         (mempcpy): Do not use BP_SYM in weak_alias.
51451         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51452         "bp-asm.h".
51453         (strchr): Do not use BP_SYM.
51454         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51455         "bp-asm.h".
51456         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51457         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51458         (_start): Do not use BP_SYM.
51459         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51460         "bp-asm.h".
51461         (strcat): Do not use BP_SYM.
51462         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51463         "bp-asm.h".
51464         (STRCMP): Do not use BP_SYM.
51465         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51466         "bp-asm.h".
51467         (STRCPY): Do not use BP_SYM.
51468         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51469         "bp-asm.h".
51470         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51471         "bp-asm.h".
51472         (FUNCTION): Do not use BP_SYM.
51473         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51474         weak_alias.
51475         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51476
51477 2013-02-17  Andreas Jaeger  <aj@suse.de>
51478
51479         * time/Versions: Sort entries.
51480         * string/Versions: Likewise.
51481         * resolv/Versions: Likewise.
51482         * posix/Versions: Likewise.
51483         * iconv/Versions: Likewise.
51484         * elf/Versions: Likewise.
51485         * wcsmbs/Versions: Likewise.
51486
51487 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51488
51489         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51490         loop termination condition.
51491
51492         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51493         variable to calculate EZ.
51494         (__sqr): Likewise.
51495
51496         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51497         the lower precision input.
51498
51499 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51500
51501         [BZ #13550]
51502         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51503         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51504         (run-via-rtld-prefix): Do not handle %-bp tests.
51505         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51506         (all-object-suffixes): Remove .ob.
51507         (bppfx): Remove variable.
51508         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51509         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51510         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51511         [$(build-bounded) = yes] (libtype.ob): Likewise.
51512         * Makerules (elide-routines.ob): Remove variable.
51513         (do-tests-clean): Do not handle *-bp.out.
51514         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51515         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51516         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51517         (tests): Do not include $(tests-bp.out).
51518         (xtests): Do not include $(xtests-bp.out).
51519         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51520         [$(build-bounded) = yes] ($(addprefix
51521         $(objpfx),$(binaries-bounded))): Remove rule.
51522         ($(objpfx)%-bp.out): Remove rule.
51523         * config.make.in (build-bounded): Remove variable.
51524         * crypt/Makefile [$(build-bounded) = yes]
51525         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51526         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51527         append to variable.
51528         [$(build-bounded) = yes] (install-lib): Likewise.
51529         [$(build-bounded) = yes] (generated): Likewise.
51530         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51531         Remove rule.
51532         * intl/Makefile [$(build-bounded) = yes]
51533         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51534         * math/Makefile [$(build-bounded) = yes]
51535         ($(tests:%=$(objpfx)%-bp): Likewise.
51536         * misc/Makefile [$(build-bounded) = yes]
51537         ($(objpfx)tst-tsearch-bp): Likewise.
51538         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51539         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51540         Remove dependency.
51541         * string/Makefile (o-objects.ob): Remove variable.
51542         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51543         (CFLAGS-.ob): Remove variable.
51544         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51545         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51546         both definitions of variable.
51547         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51548         (ASFLAGS-.ob): Remove variable.
51549
51550 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51551
51552         [BZ #13550]
51553         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51554         Remove __BOUNDED_POINTERS__ from condition.
51555         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51556         * string/bits/string2.h [!__NO_STRING_INLINES &&
51557         !__BOUNDED_POINTERS__]: Likewise.
51558         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51559         Likewise.
51560         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51561         Remove conditional code.
51562         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51563         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51564         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51565         condition.
51566
51567         [BZ #13550]
51568         * csu/libc-start.c: Do not include <bp-sym.h>.
51569         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51570         * elf/dl-open.c: Do not include <bp-sym.h>.
51571         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51572         * math/fegetenv.c: Do not include <bp-sym.h>.
51573         (fegetenv): Do not use BP_SYM in versioned symbols.
51574         * nptl/sysdeps/pthread/bits/libc-lockP.h
51575         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51576         <bp-sym.h>.
51577         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51578         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51579         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51580         (__pthread_mutex_destroy): Likewise.
51581         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51582         (__pthread_mutex_lock): Likewise.
51583         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51584         (__pthread_mutex_trylock): Likewise.
51585         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51586         (__pthread_mutex_unlock): Likewise.
51587         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51588         (__pthread_mutexattr_init): Likewise.
51589         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51590         (__pthread_mutexattr_destroy): Likewise.
51591         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51592         (__pthread_mutexattr_settype): Likewise.
51593         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51594         (__pthread_rwlock_init): Likewise.
51595         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51596         (__pthread_rwlock_destroy): Likewise.
51597         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51598         (__pthread_rwlock_rdlock): Likewise.
51599         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51600         (__pthread_rwlock_tryrdlock): Likewise.
51601         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51602         (__pthread_rwlock_wrlock): Likewise.
51603         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51604         (__pthread_rwlock_trywrlock): Likewise.
51605         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51606         (__pthread_rwlock_unlock): Likewise.
51607         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51608         (__pthread_key_create): Likewise.
51609         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51610         (__pthread_setspecific): Likewise.
51611         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51612         (__pthread_getspecific): Likewise.
51613         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51614         Likewise.
51615         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51616         (_pthread_cleanup_push_defer): Likewise.
51617         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51618         (_pthread_cleanup_pop_restore): Likewise.
51619         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51620         (pthread_setcancelstate): Likewise.
51621         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51622         <bp-sym.h>.
51623         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51624         (memchr): Do not use BP_SYM in weak_alias.
51625         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51626         (fegetenv): Do not use BP_SYM in versioned symbols.
51627         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51628         (fesetenv): Do not use BP_SYM in versioned symbols.
51629         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51630         (feupdateenv): Do not use BP_SYM in versioned symbols.
51631         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51632         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51633         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51634         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51635         (open64): Do not use BP_SYM in weak_alias.
51636         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51637         (fegetenv): Do not use BP_SYM in versioned symbols.
51638         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51639         (fesetenv): Do not use BP_SYM in versioned symbols.
51640         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51641         (feupdateenv): Do not use BP_SYM in versioned symbols.
51642         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51643         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51644         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51645         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51646         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51647         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51648         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51649         <bp-sym.h>.
51650         (__libc_start_main): Do not use BP_SYM.
51651
51652 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51653
51654         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51655         redundant return line.
51656         (norm): Likewise.
51657         (denorm): Likewise.
51658         (dbl_mp): Likewise.
51659         (sub_magnitudes): Likewise.
51660         (__add): Likewise.
51661         (__sub): Likewise.
51662         (__mul): Likewise.
51663         (__inv): Likewise.
51664         (__dvd): Likewise.
51665         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51666         (norm): Likewise.
51667         (denorm): Likewise.
51668         (dbl_mp): Likewise.
51669         (sub_magnitudes): Likewise.
51670         (__add): Likewise.
51671         (__sub): Likewise.
51672         (__mul): Likewise.
51673         (__inv): Likewise.
51674         (__dvd): Likewise.
51675
51676         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51677         instead of __mul.
51678         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51679         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51680         (cc32): Likewise.
51681
51682         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51683         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51684         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51685         of __mul for squares.
51686         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51687         function
51688         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51689         Likewise.
51690         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51691         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51692
51693 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51694
51695         [BZ #13550]
51696         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51697         code.
51698         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51699         prototype or function definition.  Rename ubp_* variables and
51700         parameters.  Remove argv definitions conditional on
51701         [__BOUNDED_POINTERS__].
51702         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51703         * elf/dl-runtime.c (_dl_fixup): Likewise.
51704         * include/set-hooks.h (RUN_HOOK): Likewise.
51705         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51706         definition.
51707         * string/strcpy.c (strcpy): Do not use __unbounded.
51708         * sysdeps/generic/frame.h (struct layout): Likewise.
51709         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51710         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51711         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51712         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51713         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51714         (__backtrace): Likewise.
51715         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51716         use __ptrvalue.
51717         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51718         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51719         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51720         Likewise.
51721         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51722         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51723         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51724         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51725         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51726         Do not use __unbounded.
51727         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51728         Rename __unboundedrlimits parameter to rlimits in prototype.
51729         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51730         Do not use __unbounded.
51731         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51732         not use __ptrvalue.
51733         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51734         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51735         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51736         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51737         __ptrvalue or __unbounded.
51738         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51739         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51740         use __unbounded.
51741         (__new_msgctl): Do not use __ptrvalue.
51742         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51743         __unbounded.
51744         (__libc_msgrcv): Do not use __ptrvalue.
51745         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51746         startup_info): Do not use __unbounded.
51747         (__libc_start_main): Likewise.  Rename ubp_* variables and
51748         parameters.  Remove argv definitions conditional on
51749         [__BOUNDED_POINTERS__].
51750         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51751         __ptrvalue.
51752         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51753         use __unbounded.
51754         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51755         or __ptrvalue.
51756         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51757         use __unbounded.
51758         (__new_shmctl): Do not use __ptrvalue.
51759         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51760         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51761         Likewise.
51762         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51763         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51764         (__libc_sigaction): Likewise.
51765         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51766         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51767         Likewise.
51768         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51769
51770 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51771
51772         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51773
51774         * string/mempcpy.c: Implement by calling memcpy.
51775
51776 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51777
51778         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51779
51780         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51781         evaluation.
51782
51783         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51784         values in the mantissa.
51785
51786         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51787         minimize writes to Z.
51788         (sub_magnitudes): Simplify code a bit.
51789
51790 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51791
51792         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51793         from the message.  The linker prefixes all warnings with that already.
51794
51795 2013-02-12  Andreas Schwab  <schwab@suse.de>
51796
51797         [BZ #15078]
51798         * posix/regexec.c (extend_buffers): Add parameter min_len.
51799         (check_matching): Pass minimum needed length.
51800         (clean_state_log_if_needed): Likewise.
51801         (get_subexp): Likewise.
51802         * posix/Makefile (tests): Add bug-regex34.
51803         (bug-regex34-ENV): Define.
51804         * posix/bug-regex34.c: New file.
51805
51806         [BZ #11561]
51807         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51808         elements compare against the byte sequence of it, not its name.
51809         * posix/Makefile (tests): Add bug-regex35.
51810         (bug-regex35-ENV): Define.
51811         * posix/bug-regex35.c: New file.
51812
51813 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51814
51815         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51816         comment.
51817         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51818         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51819         (CHECK_EOL): Add undef.
51820
51821 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51822
51823         * bits/stdlib-bsearch.h: New file.
51824         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51825         * stdlib/stdlib.h: Likewise.
51826
51827 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51828
51829         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51830         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51831         declaration.
51832         * manual/search.texi (Array Search Function): Add missing const in
51833         lfind prototype.
51834         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51835         declaration to use rlim_t.
51836         (Basic Scheduling Functions): Remove erroneous const from
51837         sched_getparam prototype.  Remove erroneous * from
51838         sched_get_priority_max and sched_get_priority_min prototypes.
51839         (Resource Usage): Fix summary @comment on vtimes to refer to
51840         sys/vtimes.h rather than vtimes.h.
51841         Add missing *s in vtimes prototype.
51842         (Limits on Resources): Fix ulimit prototype to return long int.
51843         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51844         prototypes to use long int rather than double.
51845         (BSD Random): Fix initstate and setstate to use char *, not void *.
51846         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51847         prototype to make second argument 'struct aiocb64 *const[]'.
51848         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51849         (Status of AIO Operations): Remove erroneous const in aio_return and
51850         aio_return64 prototypes.
51851         (Synchronizing I/O): Fix sync prototype to return void.
51852         * manual/startup.texi (Suboptions): Remove an erroneous const in
51853         getsubopt prototype.
51854         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51855         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51856         use size_t rather than int.
51857         (Scanning All Users): Likewise for getpwent_r.
51858         (Setting Groups): Add missing const to setgroups prototype.
51859         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51860         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51861         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51862         'const void *' rather than 'const char *'.
51863         (Host Address Functions): Likewise for inet_ntop.
51864         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51865         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51866         ssize_t for return value.
51867         (Sending Data): Likewise for send, sendto, sendmsg.
51868         (Socket Option Functions): Add a missing const in setsockopt prototype.
51869         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51870         use wchar_t for the argument.
51871         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51872         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51873         take no arguments.
51874         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51875         double/float/long double for second argument.
51876         Fix return types of significand, significandf, significandl.
51877         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51878         argument in fchmod prototype.
51879         (File Owner): Use uid_t and gid_t in fchown prototype.
51880         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51881         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51882         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51883         use 'const struct dirent **' as argument types to CMP function pointer
51884         argument.
51885         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51886         (File Times): Fix summary magic @comment for struct utimbuf and utime
51887         to refer to utime.h, not time.h.
51888         * manual/string.texi (Argz Functions): Add missing const in
51889         argz_extract and argz_next prototypes.
51890         (Finding Tokens in a String): Likewise for basename.
51891         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51892         (Copying and Concatenation): Fix typo in wmemmove prototype.
51893         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51894         (Signal Stack): Remove erroneous const in sigstack prototype.
51895         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51896         prototype.
51897         (Simple Calendar Time): Likewise for stime.
51898         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51899         prototype.
51900         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51901         say sys/sysctl.h instead.
51902         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51903         and vsyslog prototypes.
51904
51905 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51906
51907         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51908         Remove.
51909
51910 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51911
51912         * misc/sys/mman.h: Fix typo in mremap comment.
51913
51914 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51915
51916         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51917         the '\0' terminator.
51918
51919 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51920
51921         [BZ #13550]
51922         * debug/segfault.c: Don't include <bp-checks.h>.
51923         * sysdeps/generic/bp-checks.h: Remove file.
51924         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51925         (__GETDENTS): Don't use CHECK_N.
51926         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51927         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51928         (__getgroups): Don't use CHECK_N.
51929         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51930         (setgroups): Don't use CHECK_N.
51931         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51932         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51933         (__libc_msgrcv): Don't use CHECK_N.
51934         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51935         (__libc_msgsnd): Don't use CHECK_N.
51936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51937         <bp-checks.h>.
51938         (__libc_pread): Don't use CHECK_N.
51939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51940         include <bp-checks.h>.
51941         (__libc_pread64): Don't use CHECK_N.
51942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51943         include <bp-checks.h>.
51944         (__libc_pwrite): Don't use CHECK_N.
51945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51946         include <bp-checks.h>.
51947         (__libc_pwrite64): Don't use CHECK_N.
51948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51949         <bp-checks.h>.
51950         (__libc_pread): Don't use CHECK_N.
51951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51952         include <bp-checks.h>.
51953         (__libc_pread64): Don't use CHECK_N.
51954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51955         include <bp-checks.h>.
51956         (__libc_pwrite): Don't use CHECK_N.
51957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51958         include <bp-checks.h>.
51959         (__libc_pwrite64): Don't use CHECK_N.
51960         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51961         (do_pread): Don't use CHECK_N.
51962         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51963         (do_pread64): Don't use CHECK_N.
51964         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51965         (do_pwrite): Don't use CHECK_N.
51966         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51967         (do_pwrite64): Don't use CHECK_N.
51968         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51969         (__libc_readv): Don't use CHECK_N.
51970         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51971         (semop): Don't use CHECK_N.
51972         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51973         <bp-checks.h>.
51974         (semtimedop): Don't use CHECK_N.
51975         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51976         (__libc_pread): Don't use CHECK_N.
51977         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51978         <bp-checks.h>.
51979         (__libc_pread64): Don't use CHECK_N.
51980         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51981         <bp-checks.h>.
51982         (__libc_pwrite): Don't use CHECK_N.
51983         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51984         <bp-checks.h>.
51985         (__libc_pwrite64): Don't use CHECK_N.
51986         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51987         <bp-checks.h>.
51988         (__libc_msgrcv): Don't use CHECK_N.
51989         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51990         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51991         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51992         (__libc_writev): Don't use CHECK_N.
51993
51994 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51995
51996         * string/strcpy.c: Removed unused variable.
51997
51998         * Makeconfig (+sysdep-includes): Define with := rather than =.
51999         Use an existing include/ subdir of each sysdeps dir before it.
52000
52001 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52002
52003         * nscd/connection.c (register_traced_file): Comment function.
52004         [HAVE_INOTIFY] (union __inev): Define.
52005         [HAVE_INOTIFY] (inotify_check_files): New function.
52006         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52007         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52008         clear_db_cache.
52009         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52010
52011 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52012
52013         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52014         loaded if not already and that a failure is permanent.
52015
52016 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52017
52018         [BZ #15006]
52019         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52020         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52021
52022 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52023
52024         [BZ #13550]
52025         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52026         (CHECK_1_NULL_OK): Likewise.
52027         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52028         (__fxstat): Do not use CHECK_1.
52029         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52030         <bp-checks.h>.
52031         (___fxstat64): Do not use CHECK_1.
52032         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52033         <bp-checks.h>.
52034         (__fxstatat): Do not use CHECK_1.
52035         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52036         <bp-checks.h>.
52037         (__fxstatat64): Do not use CHECK_1.
52038         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52039         <bp-checks.h>.
52040         (__fxstat): Do not use CHECK_1.
52041         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52042         <bp-checks.h>.
52043         (__fxstatat): Do not use CHECK_1.
52044         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52045         <bp-checks.h>.
52046         (__getresgid): Do not use CHECK_1.
52047         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52048         <bp-checks.h>.
52049         (__getresuid): Do not use CHECK_1.
52050         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52051         <bp-checks.h>.
52052         (__lxstat): Do not use CHECK_1.
52053         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52054         <bp-checks.h>.
52055         (__old_msgctl): Do not use CHECK_1.
52056         (__new_msgctl): Likewise.
52057         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52058         <bp-checks.h>.
52059         (__new_setrlimit): Do not use CHECK_1.
52060         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52061         <bp-checks.h>.
52062         (__old_shmctl): Do not use CHECK_1.
52063         (__new_shmctl): Likewise.
52064         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52065         <bp-checks.h>.
52066         (__xstat): Do not use CHECK_1.
52067         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52068         (__lxstat): Do not use CHECK_1.
52069         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52070         <bp-checks.h>.
52071         (___lxstat64): Do not use CHECK_1.
52072         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52073         (__old_msgctl): Do not use CHECK_1.
52074         (__new_msgctl): Likewise.
52075         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52076         <bp-checks.h>.
52077         (__gettimeofday): Do not use CHECK_1.
52078         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52079         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52080         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52081         <bp-checks.h>.
52082         (__gettimeofday): Do not use CHECK_1.
52083         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52084         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52085         (__new_shmctl): Do not use CHECK_1.
52086         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52087         <bp-checks.h>.
52088         (do_sigtimedwait): Do not use CHECK_1.
52089         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52090         <bp-checks.h>.
52091         (do_sigwaitinfo): Do not use CHECK_1.
52092         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52093         <bp-checks.h>.
52094         (msgctl): Do not use CHECK_1.
52095         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52096         <bp-checks.h>.
52097         (shmctl): Do not use CHECK_1.
52098         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52099         (ustat): Do not use CHECK_1.
52100         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52101         <bp-checks.h>.
52102         (__fxstat): Do not use CHECK_1.
52103         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52104         <bp-checks.h>.
52105         (__fxstatat): Do not use CHECK_1.
52106         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52107         <bp-checks.h>.
52108         (__lxstat): Do not use CHECK_1.
52109         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52110         <bp-checks.h>.
52111         (__xstat): Do not use CHECK_1.
52112         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52113         (__xstat): Do not use CHECK_1.
52114         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52115         (___xstat64): Do not use CHECK_1.
52116
52117         [BZ #13550]
52118         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52119         definitions.
52120         (CHECK_BOUNDS_HIGH): Likewise.
52121         * string/strcpy.c: Do not include <bp-checks.h>.
52122         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52123
52124 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52125
52126         * nscd/nscd-client.h (__nscd_drop_map_ref):
52127         Add __attribute__ ((unused)).
52128         * nis/nss-nisplus.h (niserr2nss): Likewise.
52129
52130         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52131         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52132
52133         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52134         Remove inline keyword.
52135         * include/rounding-mode.h (round_away): Likewise.
52136         * libio/wfileops.c (adjust_wide_data): Likewise.
52137         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52138         (__m128i_strloadu_tolower): Likewise.
52139         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52140         (__m128i_strloadu_tolower): Likewise.
52141         * time/mktime.c (ydhms_diff): Likewise.
52142         * locale/elem-hash.h (elem_hash): Likewise.
52143         * locale/setlocale.c (setdata): Likewise.
52144         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52145         (re_string_wchar_at): Likewise.
52146         (bitset_not, bitset_merge, bitset_mask): Likewise.
52147         [!(__GNUC__ > 3)] (inline): Remove macro.
52148         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52149         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52150         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52151         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52152         * string/memcmp.c (memcmp_bytes): Likewise.
52153         * locale/programs/locarchive.c (compute_hashval): Likewise.
52154         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52155         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52156         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52157         * nss/getent.c (print_rpc, print_protocols): Likewise.
52158         (print_passwd, print_group, print_aliases): Likewise.
52159         * nis/nss-nisplus.h (niserr2nss): Likewise.
52160         * nscd/connections.c (restart_p): Likewise.
52161         Change return type to bool.
52162
52163 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52164
52165         * Makeconfig (all-Depend-files): Add existing
52166         $(sorted-subdirs:=/Depend) files.
52167         (all-subdirs): Remove nss.
52168         * sysdeps/unix/inet/Subdirs: Add it here instead.
52169         * hesiod/Depend: New file.
52170
52171         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52172         instead of calling alloca.
52173
52174         * io/lseek.c (__lseek): Rename to __libc_lseek.
52175         Define __lseek as an alias.
52176
52177         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52178
52179 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52180
52181         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52182         else clause and remove check for non-standard endianness.
52183
52184 2013-02-04  David S. Miller  <davem@davemloft.net>
52185
52186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52187
52188 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52189
52190         [BZ #13550]
52191         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52192         (__ubp_memchr): Remove prototype.
52193         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52194         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52195         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52196         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52197         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52198         Remove alias.
52199         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52200         (__ubp_memchr): Likewise.
52201         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52202         (__ubp_memchr): Likewise.
52203         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52204         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52205         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52206         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52207         CHECK_STRING.
52208         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52209         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52210         (__getcwd): Do not use CHECK_STRING.
52211         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52212         <bp-checks.h>.
52213         (__real_chown): Do not use CHECK_STRING.
52214         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52215         <bp-checks.h>.
52216         (fchownat): Do not use CHECK_STRING.
52217         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52218         CHECK_STRING.
52219         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52220         <bp-checks.h>.
52221         (__lchown): Do not use CHECK_STRING.
52222         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52223         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52224         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52225         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52227         include <bp-checks.h>.
52228         (truncate64): Do not use CHECK_STRING.
52229         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52230         <bp-checks.h>.
52231         (__real_chown): Do not use CHECK_STRING.
52232         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52233         <bp-checks.h>.
52234         (__lchown): Do not use CHECK_STRING.
52235         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52236         <bp-checks.h>.
52237         (__chown): Do not use CHECK_STRING.
52238         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52239         <bp-checks.h>.
52240         (truncate64): Do not use CHECK_STRING.
52241         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52242         Likewise.
52243         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52244         (__xmknod): Do not use CHECK_STRING.
52245         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52246         <bp-checks.h>.
52247         (__xmknodat): Do not use CHECK_STRING.
52248         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52249         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52250
52251 2013-02-04  Andreas Schwab  <schwab@suse.de>
52252
52253         [BZ #14142]
52254         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52255         * include/netdb.h: Likewise for h_errno.
52256         * elf/tst-stackguard1.c: Include <tls.h>.
52257
52258 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52259
52260         * elf/link.h (struct link_map): Extend the l_addr comment.
52261         * include/link.h (struct link_map): Likewise.
52262
52263 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52264
52265         [BZ #13550]
52266         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52267         (BOUNDED_1): Remove macro.
52268         * debug/backtrace.c: Don't include <bp-checks.h>.
52269         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52270         (__backtrace): Likewise.
52271         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52272         <bp-checks.h>.
52273         (__backtrace): Don't use BOUNDED_1.
52274         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52275         <bp-checks.h>.
52276         (__backtrace): Don't use BOUNDED_1.
52277         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52278         (__backtrace): Don't use BOUNDED_1.
52279         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52280         (shmat): Don't use BOUNDED_N.
52281
52282 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52283
52284         [BZ #13550]
52285         * sysdeps/generic/bp-start.h: Remove file.
52286         * csu/libc-start.c: Don't include <bp-start.h>.
52287         (LIBC_START_MAIN): Set up __environ directly instead of using
52288         INIT_ARGV_and_ENVIRON.
52289         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52290         <bp-start.h>.
52291
52292         [BZ #13550]
52293         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52294         definitions.
52295         (CHECK_FCNTL): Likewise.
52296         (CHECK_N_PAGES): Likewise.
52297
52298         [BZ #13550]
52299         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52300         definitions.
52301         (CHECK_SIGSET_NULL_OK): Likewise.
52302         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52303         <bp-checks.h>.
52304         (sigpending): Don't use CHECK_SIGSET.
52305         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52306         <bp-checks.h>.
52307         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52308         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52309         <bp-checks.h>.
52310         (do_sigsuspend): Don't use CHECK_SIGSET.
52311         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52312         use CHECK_SIGSET.
52313         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52314         (do_sigwait): Don't use CHECK_SIGSET.
52315         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52316         use CHECK_SIGSET.
52317         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52318         include <bp-checks.h>.
52319         (sigpending): Don't use CHECK_SIGSET.
52320         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52321         include <bp-checks.h>.
52322         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52323         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52324         <bp-checks.h>.
52325         (sigpending): Don't use CHECK_SIGSET.
52326         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52327         <bp-checks.h>.
52328         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52329
52330         [BZ #13550]
52331         * sysdeps/generic/bp-semctl.h: Remove file.
52332         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52333         <bp-checks.h> and <bp-semctl.h>.
52334         (__old_semctl): Don't use CHECK_SEMCTL.
52335         (__new_semctl): Likewise.
52336         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52337         and <bp-semctl.h>.
52338         (__old_semctl): Don't use CHECK_SEMCTL.
52339         (__new_semctl): Likewise.
52340         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52341         <bp-checks.h> and <bp-semctl.h>.
52342         (__old_semctl): Don't use CHECK_SEMCTL.
52343         (__new_semctl): Likewise.
52344         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52345         <bp-checks.h> and <bp-semctl.h>.
52346         (semctl): Don't use CHECK_SEMCTL.
52347
52348         [BZ #13550]
52349         * Makerules (elide-bp-thunks): Remove variable.
52350         (elide-routines.oS): Don't use $(elide-bp-thunks).
52351         (elide-routines.os): Likewise.
52352         (elide-routines.o): Likewise.
52353         (elide-routines.op): Likewise.
52354         (elide-routines.og): Likewise.
52355         (objects): Don't use $(bp-thunks).
52356         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52357         include.
52358         (common-generated): Do not add s-proto-bp.d.
52359         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52360         (int): Likewise.
52361         (typ): Likewise.
52362         Do not generate makefile rules for bounded-pointer thunks.
52363         * sysdeps/generic/bp-thunks.h: Remove file.
52364         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52365         * sysdeps/unix/s-proto-bp.S: Likewise.
52366
52367         [BZ #15062]
52368         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52369         parts of result separately when argument is not close to line from
52370         -i to i and one part of argument is small.
52371         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52372         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52373         * math/libm-test.inc (cacos_test): Add more tests.
52374         (casin_test): Likewise.
52375         (casinh_test): Likewise.
52376         * sysdeps/i386/fpu/libm-test-ulps: Update.
52377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52378
52379 2013-01-31  David S. Miller  <davem@davemloft.net>
52380
52381         * po/de.po: Update from translation team.
52382
52383 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52384
52385         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52386
52387 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52388
52389         * configure.in (_AC_PROG_CC_C89): New definition.
52390         * configure: Regenerate.
52391
52392         * configure.in (AC_PROG_CPP): New definition.
52393         * configure: Regenerate.
52394
52395 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52396
52397         * debug/tst-backtrace.h: New file.
52398         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52399         (ret): Remove variable.
52400         (x): Likewise.
52401         (FAIL): Remove macro.
52402         (NO_INLINE): Likewise.
52403         (fn1): Use match function instead of strstr.
52404         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52405         (ret): Remove variable.
52406         (x): Likewise.
52407         (FAIL): Remove macro.
52408         (NO_INLINE): Likewise.
52409         (fn): Use match function instead of strstr.
52410         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52411         (ret): Remove variable.
52412         (x): Likewise.
52413         (FAIL): Remove macro.
52414         (NO_INLINE): Likewise.
52415         (handle_signal): Use match function instead of strstr.
52416         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52417         (ret): Remove variable.
52418         (x): Likewise.
52419         (FAIL): Remove macro.
52420         (NO_INLINE): Likewise.
52421         (handle_signal): Use match function instead of strstr.
52422
52423 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52424
52425         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52426
52427 2013-01-23  David S. Miller  <davem@davemloft.net>
52428
52429         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52430         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52431         argument of CAS if possible.
52432         * sysdeps/sparc/sparc64/bits/atomic.h
52433         (__arch_compare_and_exchange_val_32_acq): Likewise.
52434         (__arch_compare_and_exchange_val_64_acq): Likewise.
52435
52436 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52437
52438         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52439         * sysdeps/posix/ulimit.c: ... this.
52440         Include <limits.h>.
52441         * sysdeps/unix/bsd/ulimit.c: Remove file.
52442
52443 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52444
52445         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52446         (LDFLAGS-tst-array5): Likewise.
52447
52448 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52449
52450         [BZ #15036]
52451         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52452         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52453         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52454         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52455
52456 2013-01-21  David S. Miller  <davem@davemloft.net>
52457
52458         * sysdeps/sparc/backtrace.c: New file.
52459         * sysdeps/sparc/sparc32/backtrace.h: New file.
52460         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52461         * sysdeps/sparc/sparc64/backtrace.h: New file.
52462         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52463         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52464         -funwind-tables.
52465
52466 2013-01-21  Andreas Schwab  <schwab@suse.de>
52467
52468         [BZ #15020]
52469         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52470         closed its stdout.
52471
52472 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52473
52474         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52475         "mpa2.h".
52476         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52477
52478 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52479             Mark Mitchell  <mark@codesourcery.com>
52480             Tom de Vries  <tom@codesourcery.com>
52481             Paul Pluzhnikov  <ppluzhnikov@google.com>
52482
52483         * debug/tst-backtrace2.c: New file.
52484         * debug/tst-backtrace3.c: Likewise.
52485         * debug/tst-backtrace4.c: Likewise.
52486         * debug/tst-backtrace5.c: Likewise.
52487         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52488         (CFLAGS-tst-backtrace3.c): Likewise.
52489         (CFLAGS-tst-backtrace4.c): Likewise.
52490         (CFLAGS-tst-backtrace5.c): Likewise.
52491         (LDFLAGS-tst-backtrace2): Likewise.
52492         (LDFLAGS-tst-backtrace3): Likewise.
52493         (LDFLAGS-tst-backtrace4): Likewise.
52494         (LDFLAGS-tst-backtrace5): Likewise.
52495         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52496         tst-backtrace4 and tst-backtrace5.
52497
52498 2013-01-18  Anton Blanchard  <anton@samba.org>
52499             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52500
52501         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52502         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52503         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52504         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52506         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52507         "+r" and remove output regs list as redundant.  Add explicit inline
52508         asm to specify register of return val to work around compiler codegen
52509         bug.  Remove (int) cast on return value.  Add return type parameter to
52510         use in macro so that this macro does not truncate return value for
52511         64-bit values.
52512         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52513         pass to INTERNAL_VSYSCALL_NCS.
52514         (INLINE_VSYSCALL): Add 'long int' as return type to
52515         INTERNAL_VSYSCALL_NCS macro invocation.
52516         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52517         INTERNAL_VSYSCALL_NCS macro invocation.
52518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52519
52520 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52521
52522         [BZ #14496]
52523         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52524         Fix application of SIMD FP exception mask.
52525
52526         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52527         mp_no from a power of two.
52528         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52529         __mpexp_twomm1.  Use __pow_mp.
52530
52531         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52532         multiplication.
52533
52534 2013-01-17  David S. Miller  <davem@davemloft.net>
52535
52536         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52537
52538 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52539
52540         [BZ #15023]
52541         * include/complex.h: Condition contents on [!_COMPLEX_H].
52542         (__kernel_casinhf): New prototype.
52543         (__kernel_casinh): Likewise.
52544         (__kernel_casinhl): Likewise.
52545         * math/Makefile (libm_calls): Add k_casinh.
52546         * math/k_casinh.c: New file.
52547         * math/k_casinhf.c: Likewise.
52548         * math/k_casinhl.c: Likewise.
52549         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52550         finite nonzero arguments.
52551         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52552         finite nonzero arguments.
52553         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52554         finite nonzero arguments.
52555         * math/s_casinh.c: Do not include <float.h>.
52556         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52557         * math/s_casinhf.c: Do not include <float.h>.
52558         (__casinhf): Move code for finite nonzero arguments to
52559         k_casinhf.c.
52560         * math/s_casinhl.c: Do not include <float.h>.
52561         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52562         redefine.
52563         (__casinhl): Move code for finite nonzero arguments to
52564         k_casinhl.c.
52565         * math/libm-test.inc (cacos_test): Add more tests.
52566         * sysdeps/i386/fpu/libm-test-ulps: Update.
52567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52568
52569 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52570
52571         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52572         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52573         [!HAVE_MREMAP]: Remove [defined linux] case.
52574         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52575
52576 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52577
52578         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52579
52580 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52581
52582         * elf/elf.h (R_386_SIZE32): New relocation.
52583         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52584         R_386_SIZE32.
52585         (elf_machine_rela): Likewise.
52586         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52587         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52588
52589 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52590
52591         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52592         (FP_FAST_FMA): Do not define.
52593         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52594         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52595         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52596         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52597         !_SOFT_FLOAT]: Likewise.
52598         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52599         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52600         value.
52601         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52602         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52603         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52604         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52605         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52606         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52607         file.
52608
52609 2013-01-16  Andreas Schwab  <schwab@suse.de>
52610
52611         [BZ #14327]
52612         * include/stdlib.h (__mktemp): Add declaration.
52613         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52614         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52615
52616 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52617
52618         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52619         definitions.
52620         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52621         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52622         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52623         definitions here.
52624         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52625         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52626         definitions.
52627         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52628         and ONE.
52629         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52630         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52631         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52632         definitions.
52633         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52634         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52635         definitions.
52636         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52637
52638         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52639
52640 2013-01-15  David S. Miller  <davem@davemloft.net>
52641
52642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52643         trunc{,f} to libm-sysdep_routes.
52644         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52646         file.
52647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52649         file.
52650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52651         file.
52652         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52653         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52654         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52655         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52656         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52657         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52658         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52659         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52660
52661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52662         nearbyint{,f} to libm-sysdep_routes.
52663         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52665         New file.
52666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52667         file.
52668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52669         New file.
52670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52671         file.
52672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52674         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52675         file.
52676         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52677         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52678         file.
52679         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52680         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52681         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52682
52683         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52684         libc_feholdexcept and libc_fesetenv.
52685
52686 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52687
52688         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52689
52690 2013-01-14  David S. Miller  <davem@davemloft.net>
52691
52692         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52693         (SPARC_ASM_VIS2_IFUNC): Likewise.
52694         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52696         use of 'siam' instruction.
52697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52698         Likewise.
52699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52700         Likewise.
52701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52702         Likewise.
52703         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52704         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52705         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52706         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52708         file.
52709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52710         file.
52711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52712         file.
52713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52714         file.
52715         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52716         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52717         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52718         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52720         new VIS2 routines.
52721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52724         Likewise.
52725         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52726         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52727         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52728         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52730         routines to libm-sysdep_routines.
52731         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52732
52733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52734         fdim/fdimf to libm-sysdep_routines.
52735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52736         file.
52737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52739         file.
52740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52743         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52744         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52745         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52746         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52747
52748 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52749
52750         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52751         to optimize copies.
52752
52753         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52754         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52755         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52756
52757         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52758         local variable MPTWO.
52759         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52760         Likewise.
52761
52762 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52763
52764         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52765         GLOB_NOESCAPE.
52766
52767 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52768
52769         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52770
52771 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52772
52773         * manual/pattern.texi (glob_t): Document gl_flags.
52774         (glob64_t): Likewise.
52775
52776 2013-01-11  David S. Miller  <davem@davemloft.net>
52777
52778         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52779         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52780         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52781         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52782         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52783         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52784         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52785         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52786         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52787         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52788         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52789         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52790         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52791
52792         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52793         sparc V9 rather than using V8 code.
52794         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52795         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52796
52797         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52798         Move to...
52799         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52800         Here.
52801
52802 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52803
52804         [BZ #14941]
52805         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52806         not in the main loop.
52807         * configure: Regenerated.
52808
52809 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52810
52811         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52812         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52813         to just #else.
52814         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52815         [!__GLIBC_HAVE_LONG_LONG] case.
52816         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52817         condition to just #else.
52818         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52819         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52820         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52821         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52822         unconditional.
52823         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52824         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52825         #elif condition to just #else.
52826         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52827         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52828         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52829         #elif condition to just #else.
52830
52831 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52832
52833         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52834         (EF_MIPS_ARCH_64): Fix value.
52835         (EF_MIPS_ARCH_32R2): New.
52836         (EF_MIPS_ARCH_64R2): New.
52837
52838 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52839
52840         * Makeconfig (+link-pie-before-libc): New.
52841         (+link-pie-after-libc): Likewise.
52842         (+link-pie-tests): Likewise.
52843         (+link-pie): Rewritten.
52844         (link-before-libc): Remove $(config-LDFLAGS).
52845         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52846         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52847         (config-LDFLAGS): Renamed to ...
52848         (rtld-LDFLAGS): This.
52849         (rtld-tests-LDFLAGS): New macro.
52850         (link-libc-rpath-link): Likewise.
52851         (link-libc-tests-rpath-link): Likewise.
52852         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52853         (link-libc): Prepand $(link-libc-rpath-link).
52854         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52855         (test-program-prefix): New macro.
52856         (test-via-rtld-prefix): Likewise.
52857         (test-program-cmd): Likewise.
52858         (host-test-program-cmd): Likewise.
52859         * Makefile ($(common-objpfx)testrun.sh): Replace
52860         $(run-program-prefix) with $(test-program-prefix).
52861         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52862         $(rtld-LDFLAGS).
52863         ($(common-objpfx)shlib.lds): Likewise.
52864         (build-module-helper): Likewise.
52865         ($(common-objpfx)format.lds): Likewise.
52866         * Rules (binaries-pie-tests): New.
52867         (binaries-pie-notests): Likewise.
52868         (binaries-pie): Rewritten.
52869         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52870         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52871         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52872         (make-test-out): Replace $(host-built-program-cmd) with
52873         $(host-test-program-cmd).
52874         * config.make.in (build-hardcoded-path-in-tests): New variable.
52875         * configure.in (--enable-hardcoded-path-in-tests): New configure
52876         option.
52877         (hardcoded_path_in_tests): New AC_SUBST.
52878         * configure: Regenerated.
52879         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52880         $(built-program-cmd) with $(test-program-cmd).
52881         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52882         (test_program_cmd): This.
52883         * elf/Makefile ($(objpfx)order.out): Run test with
52884         $(test-program-prefix).
52885         ($(objpfx)order2.out): Likewise.
52886         ($(objpfx)tst-initorder.out): Likewise.
52887         ($(objpfx)tst-initorder2.out): Likewise.
52888         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52889         $(test-program-cmd).
52890         ($(objpfx)tst-array1-static.out): Likewise.
52891         ($(objpfx)tst-array2.out): Likewise.
52892         ($(objpfx)tst-array3.out): Likewise.
52893         ($(objpfx)tst-array4.out): Likewise.
52894         ($(objpfx)tst-array5.out): Likewise.
52895         ($(objpfx)tst-array5-static.out): Likewise.
52896         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52897         $(test-program-cmd).
52898         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52899         $(run-program-prefix) with $(test-program-prefix).
52900         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52901         (test_program_prefix): This.
52902         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52903         $(run-program-prefix) with $(test-program-prefix).
52904         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52905         (test_program_prefix): This.
52906         * iconvdata/tst-tables.sh: Likewise.
52907         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52908         $(run-program-prefix) with $(test-program-prefix).
52909         ($(objpfx)tst-translit.out): Likewise.
52910         ($(objpfx)tst-gettext2.out): Likewise.
52911         ($(objpfx)tst-gettext4.out): Likewise.
52912         ($(objpfx)tst-gettext6.out): Likewise.
52913         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52914         (test_program_prefix): This.
52915         * intl/tst-gettext2.sh: Likewise.
52916         * intl/tst-gettext4.sh  Likewise.
52917         * intl/tst-gettext6.sh: Likewise.
52918         * intl/tst-translit.sh: Likewise.
52919         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52920         with $(test-program-cmd).
52921         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52922         $(run-program-prefix) with $(test-program-prefix).
52923         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52924         (test_program_prefix): This.
52925         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52926         $(run-program-prefix) with $(test-program-prefix).
52927         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52928         (test_program_prefix): This.
52929         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52930         * posix/Makefile ($(objpfx)globtest.out): Replace
52931         $(run-via-rtld-prefix) and $(test-wrapper) with
52932         $(test-program-prefix) and $(test-via-rtld-prefix).
52933         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52934         $(test-program-prefix).
52935         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52936         $(host-test-program-cmd).
52937         (tst-spawn-ARGS): Likewise.
52938         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52939         $(test-program-prefix).
52940         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52941         (test_via_rtld_prefix): This.
52942         (test_wrapper): Renamed to ...
52943         (test_program_prefix): This.
52944         (run_program_prefix): Replaced by test_program_prefix.
52945         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52946         (test_program_prefix): This.
52947         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52948         with $(host-test-program-cmd).
52949         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52950         $(run-program-prefix) with $(test-program-prefix).
52951         ($(objpfx)tst-printf.out): Likewise.
52952         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52953         $(test-program-cmd).
52954         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52955         (test_program_prefix): This.
52956         * stdio-common/tst-unbputc.sh: Likewise.
52957         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52958         $(run-program-prefix) with $(test-program-prefix).
52959         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52960         (test_program_prefix): This.
52961         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52962         $(built-program-cmd) with $(test-program-cmd).
52963
52964 2013-01-11  Andreas Jaeger  <aj@suse.de>
52965
52966         [BZ #15003]
52967         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52968         value. Sync with Linux 3.7.
52969
52970 2013-01-10  David S. Miller  <davem@davemloft.net>
52971
52972         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52973         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52974         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52975
52976 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52977
52978         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52979         never set.
52980         * configure: Regenerated.
52981
52982 2013-01-10  David S. Miller  <davem@davemloft.net>
52983
52984         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52985         sparc V9 rather than using V8 code.
52986         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52987         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52988
52989 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52990
52991         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52992         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52993         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52994         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52995         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52996         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52997         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52998         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52999         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53000         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53001         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53002         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53003         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53004         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53005         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53006         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53007         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53008         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53009         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53010         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53011         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53012         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53013         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53014         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53015         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53016         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53017         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53018
53019 2013-01-10  David S. Miller  <davem@davemloft.net>
53020
53021         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53022
53023 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53024
53025         * posix/Makefile (tests-static): New variable.
53026         (tests): Add $(tests-static).
53027         (tst-exec-static-ARGS): New variable.
53028         (tst-spawn-static-ARGS): Likewise.
53029         * posix/tst-exec-static.c: New file.
53030         * posix/tst-spawn-static.c: Likewise.
53031         * posix/tst-exec.c: Support run directly.
53032         * posix/tst-spawn.c: Likewise.
53033
53034 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53035
53036         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53037         long.
53038         * math/bits/mathcalls.h (llrint): Likewise.
53039         (llround): Likewise.
53040         * stdlib/stdlib.h (struct drand48_data): Likewise.
53041         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53042         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53043         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53044         Likewise.
53045         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53046         Likewise.
53047         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53048         (elf_greg_t): Likewise.
53049         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53050         (__jmp_buf): Likewise.
53051         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53052         definitions.
53053         (llrint): Likewise, for all definitions.
53054         (llrintl): Likewise.
53055
53056         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53057         Remove [__GNUC__] condition.
53058         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53059         condition to just [__USE_ISOC99].
53060         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53061
53062 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53063
53064         [BZ #14200]
53065         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53066         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53067         defined.
53068         (_POSIX_V6_ILP32_OFF32): Likewise.
53069         (_XBS5_ILP32_OFF32): Likewise.
53070         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53071         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53072
53073 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53074
53075         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53076
53077         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53078         doubles __mpexp_twomm1.  Adjust usage.
53079         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53080         Remove.
53081
53082 2013-01-10  Andreas Schwab  <schwab@suse.de>
53083
53084         [BZ #14964]
53085         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53086         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53087
53088 2013-01-09  David S. Miller  <davem@davemloft.net>
53089
53090         [BZ #15003]
53091         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53092         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53093         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53094         (TCP_FASTOPEN): Define.
53095         (tcp_repair_opt): New structure.
53096         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53097         enum values.
53098         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53099         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53100         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53101         (tcp_cookie_transactions): New structure.
53102
53103 2013-01-09  Anton Blanchard  <anton@samba.org>
53104
53105         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53106         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53107         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53108         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53109
53110 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53111
53112         * include/features.h (__USE_ANSI): Remove.
53113
53114 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53115
53116         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53117
53118         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53119
53120 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53121
53122         * sysdeps/s390/fpu/libm-test-ulps: Update.
53123
53124         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53125
53126         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53127         (__acr): Likewise.
53128         (__cpy): Likewise.
53129         (norm): Likewise.
53130         (denorm): Likewise.
53131         (__mp_dbl): Likewise.
53132         (__dbl_mp): Likewise.
53133         (add_magnitudes): Likewise.
53134         (sub_magnitudes): Likewise.
53135         (__add): Likewise.
53136         (__sub): Likewise.
53137         (__mul): Likewise.
53138         (__inv): Likewise.
53139         (__dvd): Likewise.
53140         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53141         (__acr): Likewise.
53142         (__cpy): Likewise.
53143         (norm): Likewise.
53144         (denorm): Likewise.
53145         (__mp_dbl): Likewise.
53146         (__dbl_mp): Likewise.
53147         (add_magnitudes): Likewise.
53148         (sub_magnitudes): Likewise.
53149         (__add): Likewise.
53150         (__sub): Likewise.
53151         (__mul): Likewise.
53152         (__inv): Likewise.
53153         (__dvd): Likewise.
53154         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53155         (__acr): Likewise.
53156         (__cpy): Likewise.
53157         (norm): Likewise.
53158         (denorm): Likewise.
53159         (__mp_dbl): Likewise.
53160         (__dbl_mp): Likewise.
53161         (add_magnitudes): Likewise.
53162         (sub_magnitudes): Likewise.
53163         (__add): Likewise.
53164         (__sub): Likewise.
53165         (__mul): Likewise.
53166         (__inv): Likewise.
53167         (__dvd): Likewise.
53168
53169 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53170
53171         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53172         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53173         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53174         2 && __USE_EXTERN_INLINES]: Likewise.
53175
53176 2013-01-08  Andreas Jaeger  <aj@suse.de>
53177
53178         [BZ# 14985]
53179         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53180         Remove.
53181         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53182         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53183
53184 2013-01-07  Anton Blanchard  <anton@samba.org>
53185
53186         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53187         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53188         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53189         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53190         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53191         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53192         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53193         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53194         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53195         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53196         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53197         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53198         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53199         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53200         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53201         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53202         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53203         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53204         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53205         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53206         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53207         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53208         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53209         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53210         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53211         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53212         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53213         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53214         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53215         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53216         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53217         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53218         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53219         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53220         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53221         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53222         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53223         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53224         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53225         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53226         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53227         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53228         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53229
53230 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53231
53232         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53233         (__MALLOC_PMT): Likewise.
53234         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53235         [__GNUC__], only on [_LIBC].
53236         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53237         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53238         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53239         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53240         forward declaration.
53241         (realloc_hook_ini): Likewise.
53242         (memalign_hook_ini): Likewise.
53243         (__libc_memalign): Do not use __MALLOC_PMT in variable
53244         declaration.
53245         (__libc_valloc): Likewise.
53246         (__libc_pvalloc): Likewise.
53247         (__libc_calloc): Likewise.
53248         (__posix_memalign): Likewise.
53249
53250         [BZ #14996]
53251         * math/s_casinh.c: Include <float.h>.
53252         (__casinh): Do not do computation with squaring and square root
53253         for large arguments.
53254         * math/s_casinhf.c: Include <float.h>.
53255         (__casinhf): Do not do computation with squaring and square root
53256         for large arguments.
53257         * math/s_casinhl.c: Include <float.h>.
53258         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53259         (__casinhl): Do not do computation with squaring and square root
53260         for large arguments.
53261         * math/libm-test.inc (casin_test): Add more tests.
53262         (casinh_test): Likewise.
53263         * sysdeps/i386/fpu/libm-test-ulps: Update.
53264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53265
53266 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53267
53268         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53269         (__x86_64_raw_data_cache_size): Likewise.
53270         (__x86_64_data_cache_size_half): Likewise.
53271         (__x86_64_raw_data_cache_size_half): Likewise.
53272         (__x86_64_shared_cache_size): Likewise.
53273         (__x86_64_raw_shared_cache_size): Likewise.
53274         (__x86_64_shared_cache_size_half): Likewise.
53275         (__x86_64_raw_shared_cache_size_half): Likewise.
53276         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53277         to ...
53278         (__x86_data_cache_size): This.
53279         (__x86_64_raw_data_cache_size): Renamed to ...
53280         (__x86_raw_data_cache_size): This.
53281         (__x86_64_data_cache_size_half): Renamed to ...
53282         (__x86_data_cache_size_half): This.
53283         (__x86_64_raw_data_cache_size_half): Renamed to ...
53284         (__x86_raw_data_cache_size_half): This.
53285         (__x86_64_shared_cache_size): Renamed to ...
53286         (__x86_shared_cache_size): This.
53287         (__x86_64_raw_shared_cache_size): Renamed to ...
53288         (__x86_raw_shared_cache_size): This.
53289         (__x86_64_shared_cache_size_half): Renamed to ...
53290         (__x86_shared_cache_size_half): This.
53291         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53292         (__x86_raw_shared_cache_size_half): This.
53293         * sysdeps/x86_64/memcpy.S: Updated.
53294         * sysdeps/x86_64/memset.S: Likewise.
53295         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53296         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53297         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53298
53299 2013-01-04  David S. Miller  <davem@davemloft.net>
53300
53301         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53302
53303 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53304
53305         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53306         1 to avoid redefinition warning.
53307         (__USE_GNU): Don't define.
53308         (init_signaling_nan): Protoize.
53309
53310         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53311
53312 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53313
53314         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53315         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53316         (__cpymn): Likewise.
53317         (norm): Remove commented code.
53318         (denorm): Likewise.
53319         (__mp_dbl): Likewise.
53320         (__inv): Likewise.
53321         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53322         (__cpymn): Likewise.
53323         (norm): Remove commented code.
53324         (denorm): Likewise.
53325         (__mp_dbl): Likewise.
53326         (__inv): Likewise.
53327
53328         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53329         mp_no value for 1.0 and 2.0.
53330         (norm): Use RADIXI instead of radixi.d.
53331         (denorm): Likewise.
53332         (__mul): Use 0.0 instead of zero.d.
53333         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53334         mp_no value for 1.0 and 2.0.
53335         (norm): Use RADIXI instead of radixi.d.
53336         (denorm): Likewise.
53337         (__mul): Use 0.0 instead of zero.d.
53338
53339 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53340
53341         [BZ #14994]
53342         * math/s_casinh.c (__casinh): Reduce finite argument to first
53343         quadrant then set signs of results at the end.
53344         * math/s_casinhf.c (__casinhf): Likewise.
53345         * math/s_casinhl.c (__casinhl): Likewise.
53346         * math/libm-test.inc (casin_test): Add more tests.
53347         (casinh_test): Likewise.
53348         * sysdeps/i386/fpu/libm-test-ulps: Update.
53349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53350
53351 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53352
53353         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53354
53355         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53356
53357         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53358         declarations.
53359         (denorm): Likewise.
53360         (__mp_dbl): Likewise.
53361         (__inv): Likewise.
53362
53363         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53364         and adjust the header comment.
53365
53366         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53367         variable name from declaration.
53368
53369 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53370
53371         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53372         Initialize COMMON_CPUID_INDEX_7 element.
53373         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53374         (CPUID_RTM): Likewise.
53375         (HAS_RTM): Likewise.
53376         (COMMON_CPUID_INDEX_7): New enum.
53377
53378 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53379
53380         [BZ #14981]
53381         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53382         size is zero, record memory as freed.
53383
53384 2013-01-03  Andreas Jaeger  <aj@suse.de>
53385
53386         * po/ia.po: Add new Interlingua translation.
53387
53388 2012-01-03  Allan McRae  <allan@archlinux.org>
53389
53390         * locale/programs/localedef.c: Fix description of '--posix' flag.
53391
53392 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53393
53394         * NEWS: Update dates in second copyright notice.
53395         * README: Update copyright dates in example.
53396         * manual/libc.texinfo: Update copyright dates.
53397         * scripts/test-installation.pl: Update copyright date in --version
53398         output.
53399
53400         * hurd/ctty-input.c: Fix copyright notice formatting.
53401         * hurd/ctty-output.c: Likewise.
53402         * hurd/dtable.c: Likewise.
53403         * hurd/hurd-raise.c: Likewise.
53404         * hurd/hurdprio.c: Likewise.
53405         * hurd/msgportdemux.c: Likewise.
53406         * misc/sys/file.h: Likewise.
53407         * misc/sys/ioctl.h: Likewise.
53408         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53409         * sysdeps/mach/hurd/chdir.c: Likewise.
53410         * sysdeps/mach/hurd/fchdir.c: Likewise.
53411         * sysdeps/mach/hurd/rename.c: Likewise.
53412         * sysdeps/mach/hurd/rmdir.c: Likewise.
53413         * sysdeps/mach/hurd/seekdir.c: Likewise.
53414         * sysdeps/mach/hurd/setsid.c: Likewise.
53415         * sysdeps/posix/wait3.c: Likewise.
53416
53417         * All files with FSF copyright notices: Update copyright dates
53418         using scripts/update-copyrights.
53419         * intl/plural.c: Regenerated.
53420         * locale/programs/charmap-kw.h: Likewise.
53421         * locale/programs/locfile-kw.h: Likewise.
53422
53423 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53424
53425         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53426         four values.
53427
53428         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53429         calculation loop and add branch prediction.
53430
53431         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53432         check access beyond bounds of m1np.
53433
53434         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53435         MPTWO.
53436         (__inv): Remove local variable MPTWO to use the global
53437         constant.
53438         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53439         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53440         variable MPTWO.
53441         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53442         MP3HALFS static const.
53443
53444 2013-01-01  David S. Miller  <davem@davemloft.net>
53445
53446         * po/ca.po: Update from translation team.
53447
53448 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53449
53450         * scripts/update-copyrights: New file.
53451         * Makeconfig: Reformat copyright notice.
53452         * ctype/ctype.h: Likewise.
53453         * debug/swprintf_chk.c: Likewise.
53454         * elf/dl-cache.c: Likewise.
53455         * elf/dl-debug.c: Likewise.
53456         * elf/dl-object.c: Likewise.
53457         * grp/initgroups.c: Likewise.
53458         * hurd/Makefile: Likewise.
53459         * hurd/hurd/signal.h: Likewise.
53460         * hurd/hurdfault.c: Likewise.
53461         * hurd/hurdioctl.c: Likewise.
53462         * hurd/hurdlookup.c: Likewise.
53463         * hurd/intr-msg.c: Likewise.
53464         * iconv/gconv_open.c: Likewise.
53465         * libio/swprintf.c: Likewise.
53466         * locale/lc-ctype.c: Likewise.
53467         * locale/nl_langinfo.c: Likewise.
53468         * mach/Machrules: Likewise.
53469         * mach/Makefile: Likewise.
53470         * malloc/obstack.h: Likewise.
53471         * manual/Makefile: Likewise.
53472         * manual/tsort.awk: Likewise.
53473         * misc/bits/stab.def: Likewise.
53474         * nis/nis_print_group_entry.c: Likewise.
53475         * nis/nis_table.c: Likewise.
53476         * nis/nss_compat/compat-pwd.c: Likewise.
53477         * nis/nss_compat/compat-spwd.c: Likewise.
53478         * po/Makefile: Likewise.
53479         * posix/fnmatch.c: Likewise.
53480         * posix/regex.h: Likewise.
53481         * resolv/Makefile: Likewise.
53482         * resolv/nss_dns/dns-network.c: Likewise.
53483         * resolv/res_hconf.c: Likewise.
53484         * scripts/gen-sorted.awk: Likewise.
53485         * soft-fp/soft-fp.h: Likewise.
53486         * stdio-common/printf.h: Likewise.
53487         * stdlib/monetary.h: Likewise.
53488         * stdlib/random.c: Likewise.
53489         * stdlib/random_r.c: Likewise.
53490         * sysdeps/generic/Makefile: Likewise.
53491         * sysdeps/gnu/Makefile: Likewise.
53492         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53493         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53494         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53495         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53496         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53497         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53498         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53499         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53500         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53501         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53502         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53503         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53504         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53505         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53506         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53507         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53508         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53509         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53510         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53511         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53512         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53513         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53514         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53515         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53516         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53517         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53518         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53519         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53520         * sysdeps/mach/hurd/errnos.awk: Likewise.
53521         * sysdeps/mach/hurd/fork.c: Likewise.
53522         * sysdeps/mach/hurd/getcwd.c: Likewise.
53523         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53524         * sysdeps/mach/hurd/mmap.c: Likewise.
53525         * sysdeps/mach/hurd/utimes.c: Likewise.
53526         * sysdeps/mach/hurd/xmknod.c: Likewise.
53527         * sysdeps/posix/profil.c: Likewise.
53528         * sysdeps/posix/readdir_r.c: Likewise.
53529         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53530         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53531         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53532         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53533         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53534         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53535         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53536         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53537         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53538         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53539         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53540         * sysdeps/pthread/lio_listio.c: Likewise.
53541         * sysdeps/sparc/dl-procinfo.h: Likewise.
53542         * sysdeps/unix/i386/sysdep.S: Likewise.
53543         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53544         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53545         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53546         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53548         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53549         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53550         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53551         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53552         * sysdeps/wordsize-32/divdi3.c: Likewise.
53553         * time/sys/time.h: Likewise.
53554         * wcsmbs/Makefile: Likewise.
53555
53556 2013-01-01  David S. Miller  <davem@davemloft.net>
53557
53558         * po/fr.po: Update from translation team.
53559
53560         * catgets/gencat.c: Update copyright year.
53561         * csu/version.c: Likewise.
53562         * debug/catchsegv.sh: Likewise.
53563         * debug/pcprofiledump.c: Likewise.
53564         * debug/xtrace.sh: Likewise.
53565         * elf/ldconfig.c: Likewise.
53566         * elf/ldd.bash.in: Likewise.
53567         * elf/pldd.c: Likewise.
53568         * elf/sotruss.ksh: Likewise.
53569         * elf/sprof.c: Likewise.
53570         * iconv/iconv_prog.c: Likewise.
53571         * iconv/iconvconfig.c: Likewise.
53572         * locale/programs/locale.c: Likewise.
53573         * locale/programs/localedef.c: Likewise.
53574         * login/programs/pt_chown.c: Likewise.
53575         * malloc/memusage.sh: Likewise.
53576         * malloc/memusagestat.c: Likewise.
53577         * malloc/mtrace.pl: Likewise.
53578         * nscd/nscd.c: Likewise.
53579         * nss/getent.c: Likewise.
53580         * nss/makedb.c: Likewise.
53581         * posix/getconf.c: Likewise.
53582
53583 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53584
53585         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53586         numbers.
53587
53588 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53589
53590         * math/bits/mathcalls.h (modf): Use __nonnull.
53591
53592 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53593
53594         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53595         (split): Use macro CN instead of the bare value.
53596         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53597         could be used.
53598         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53599         instead of the bare value.
53600         (power1): Likewise.
53601
53602 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53603
53604         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53605         __ATAN_TWOM.
53606         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53607
53608         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53609         their values.
53610         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53611         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53612         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53613         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53614
53615 2012-12-28  Andreas Jaeger  <aj@suse.de>
53616
53617         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53618         values are from Linux 3.7.
53619
53620         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53621         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53622
53623 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53624
53625         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53626         TRUE case.
53627
53628         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53629         (norm): Likewise.
53630         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53631         variables with preprocessor constants.
53632         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53633         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53634         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53635
53636 2012-12-27  Bruno Haible  <bruno@clisp.org>
53637
53638         [BZ #14317]
53639         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53640         only if needed.
53641
53642 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53643
53644         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53645         and use variable directly.
53646         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53647
53648         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53649         MPONE.
53650         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53651         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53652         variable MPONE.
53653         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53654         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53655         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53656         include directive.  Remove local variable MPONE.
53657         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53658         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53659         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53660
53661 2012-12-25  David S. Miller  <davem@davemloft.net>
53662
53663         * version.h (RELEASE): Set to "development".
53664         (VERSION): Set to "2.17.90".
53665         * NEWS: Add 2.18 section.
53666
53667 2012-12-21  David S. Miller  <davem@davemloft.net>
53668
53669         * po/hr.po: Update from translation team.
53670
53671 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53672
53673         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53674
53675 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53676
53677         * NEWS:  Mention new memcpy for MIPS.
53678
53679 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53680
53681         * manual/contrib.texi (Contributors): Spelling correction.
53682
53683 2012-12-15  David S. Miller  <davem@davemloft.net>
53684
53685         * po/ru.po: Update from translation team.
53686
53687 2012-12-13  David S. Miller  <davem@davemloft.net>
53688
53689         * NEWS: Mention IFUNC testsuite enhancements.
53690
53691         * po/pl.po: Update from translation team.
53692         * po/bg.po: Likewise.
53693
53694         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53695         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53696
53697 2012-12-11  David S. Miller  <davem@davemloft.net>
53698
53699         * po/sv.po: Update from translation team.
53700
53701         * po/vi.po: Update from translation team.
53702
53703         * po/cs.po: Update from translation team.
53704
53705         * po/de.po: Update from translation team.
53706         * po/eo.po: Likewise.
53707         * po/nl.po: Likewise.
53708
53709 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53710
53711         [BZ #14246]
53712         * manual/argp.texi (Argp Helper Functions): Move node to follow
53713         Argp Parsing State.
53714
53715         [BZ #14872]
53716         * manual/conf.texi (Limits on File System Capacity): Mention if
53717         terminating null is included in the max size.
53718
53719 2012-12-10  Andreas Jaeger  <aj@suse.de>
53720
53721         * po/cs.po: Update from translation team.
53722
53723 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53724
53725         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53726         void pointer and cast to uintptr_t.
53727         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53728         path.
53729         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53730         * sysdeps/s390/s390-64/memset.S: Likewise.
53731
53732 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53733
53734         [BZ #14833]
53735         * menual/message.texi (Message Translation): Fix typos.
53736         (Helper programs for gettext): Likewise.
53737
53738 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53739
53740         [BZ #14898]
53741         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53742         Change to -1.
53743
53744 2012-12-07  David S. Miller  <davem@davemloft.net>
53745
53746         * po/libc.pot: Update.
53747
53748 2012-12-07  Richard Henderson  <rth@redhat.com>
53749
53750         [BZ #10114]
53751         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53752         normal/normal case to before the switch.
53753         (_FP_DIV): Likewise.
53754
53755 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53756             Mike Frysinger  <vapier@gentoo.org>
53757
53758         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53759         check for __NR_fadvise64_64.
53760
53761 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53762
53763         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53764         0, not just to plain "0" as a statement.
53765         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53766         with cw.
53767
53768 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53769
53770         * NEWS: Use sourceware.org in Bugzilla URL.
53771
53772 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53773
53774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53775         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53776
53777         * stdio-common/tst-put-error.c (do_test): Add newline to the
53778         padded test to ensure flush.
53779
53780 2012-12-05  Jeff Law  <law@redhat.com>
53781
53782         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53783
53784 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53785
53786         * README: Don't refer to ports add-on as distributed separately.
53787         Mention AArch64 in list of systems supported in the ports add-on.
53788
53789         * LICENSES: Add more non-FSF copyright and license notices.
53790
53791         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53792         ((unused)).
53793
53794         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53795
53796         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53797         10000 as width of padded output.
53798
53799 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53800
53801         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53802
53803         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53804         variable LX with __attribute__ ((unused)).
53805         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53806         Likewise.
53807         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53808         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53809         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53810         with __attribute__ ((unused)).
53811
53812 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53813
53814         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53815
53816 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53817
53818         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53819         (CFLAGS-nldbl-acos.c): New variable.
53820         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53821         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53822         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53823         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53824         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53825         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53826         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53827         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53828         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53829         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53830         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53831         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53832         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53833         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53834         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53835         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53836         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53837         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53838         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53839         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53840         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53841         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53842         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53843         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53844         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53845         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53846         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53847         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53848         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53849         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53850         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53851         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53852         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53853         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53854         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53855         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53856         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53857         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53858         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53859         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53860         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53861         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53862         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53863         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53864         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53865         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53866         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53867         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53868         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53869         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53870         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53871         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53872         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53873         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53874         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53875         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53876         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53877         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53878         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53879         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53880         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53881         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53882         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53883         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53884         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53885         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53886         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53887         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53888         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53889         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53890         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53891         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53892         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53893         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53894         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53895         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53896         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53897         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53898         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53899         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53900         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53901         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53902         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53903         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53904         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53905         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53906         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53907         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53908         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53909         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53910         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53911         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53912         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53913         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53914         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53915         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53916         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53917
53918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53919         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53920
53921         [BZ #14914]
53922         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53923         whole low double instead of just low 47 bits when splitting values
53924         into two parts.
53925
53926 2012-12-03  Allan McRae  <allan@archlinux.org>
53927
53928         * manual/stdio.texi (Predefined Printf Handlers): Remove
53929         @hsep and @vsep usage.
53930
53931 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53932
53933         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53934         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53935
53936 2012-12-03  Jeff Law  <law@redhat.com>
53937
53938         * time/sys/time.h (settimeofday): Do not mark TV argument
53939         as __nonnull.
53940
53941 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53942
53943         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53944         when currently writing and seek to current position when not.
53945         * libio/Makefile (tests): Remove bug-fclose1.
53946         * libio/bug-fclose1.c: Delete.
53947
53948 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53949
53950         * manual/arith.texi (feenableexcept): Fix typo.
53951         (fedisableexcept): Likewise.
53952
53953 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53954
53955         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53956         second, differently-typed declaration, rather than a cast.
53957
53958 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53959
53960         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53961         * include/rpc/svc.h: ... here.
53962
53963 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53964
53965         [BZ #13013]
53966         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53967         depending n and resplen2 to catch cases where answer
53968         equals answerp2.
53969
53970 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53971
53972         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53973         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53974
53975 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53976
53977         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53978
53979 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53980
53981         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53982
53983 2012-11-28  Jeff Law  <law@redhat.com>
53984
53985         [BZ #13761]
53986         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53987         dataset_temporary.  Track alloca usage into alloca_used.
53988         If dataset is large allocate and release it via malloc/free.
53989
53990 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53991
53992         [BZ #14197]
53993         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53994
53995 2012-11-28  David S. Miller  <davem@davemloft.net>
53996
53997         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53998
53999 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54000
54001         [BZ #14803]
54002         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54003         of pi/2 rounded to nearest to 64 bits.
54004         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54005         nearest to 64 bits.
54006         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54007         bits.
54008
54009 2012-11-28  Jeff Law <law@redhat.com>
54010             Martin Osvald <mosvald@redhat.com>
54011
54012         [BZ #14889]
54013         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54014         * sunrpc/svc.c: Include time.h.
54015         (__svc_accept_failed): New function.
54016         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54017         any reason other than EINTR, call __svc_accept_failed.
54018         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54019         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54020
54021 2012-11-28  Andreas Schwab  <schwab@suse.de>
54022
54023         * scripts/abilist.awk: Also handle indirect functions in .opd
54024         section.
54025
54026 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54027
54028         [BZ #13881]
54029         * sysdeps/x86/fpu/powl_helper.c: New file.
54030         * sysdeps/x86/fpu/Makefile: Likewise.
54031         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54032         (p3): New object.
54033         (__ieee754_powl): Use __powl_helper for finite arguments except
54034         integer exponents below 8.
54035         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54036         (p3): New object.
54037         (__ieee754_powl): Use __powl_helper for finite arguments except
54038         integer exponents below 8.
54039         * math/libm-test.inc (pow_test): Add more tests and enable some
54040         previously disabled tests.
54041         * sysdeps/i386/fpu/libm-test-ulps: Update.
54042         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54043
54044 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54045             Carlos O'Donell  <carlos_odonell@mentor.com>
54046
54047         * nss/makedb.c (is_prime): Assert that input is odd and greater
54048         than 4.  Note that fact in a comment too.
54049         (next_prime): Add 4 to input.
54050
54051 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54052
54053         [BZ #11741]
54054         * libio/Makefile (tests): Add test case tst-fwrite-error.
54055         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54056         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54057         * libio/tst-fwrite-error.c: New test case.
54058
54059 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54060
54061         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54062         before casting to void *.
54063         * include/libc-internal.h (__pointer_type): New macro.
54064         (__integer_if_pointer_type_sub): Likewise.
54065         (__integer_if_pointer_type): Likewise.
54066         (cast_to_integer): Likewise.
54067         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54068         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54069         before casting to atomic64_t.
54070         (atomic_exchange_acq): Likewise.
54071         (__arch_exchange_and_add_body): Likewise.
54072         (__arch_add_body): Likewise.
54073         (atomic_add_negative): Likewise.
54074         (atomic_add_zero): Likewise.
54075
54076 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54077
54078         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54079         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54080         (add_fdes): Likewise.
54081         (linear_search_fdes): Likewise.
54082         (binary_search_unencoded_fdes): Likewise.
54083
54084 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54085
54086         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54087
54088 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54089
54090         * configure.in: Autodetect C++ header directories.
54091         * configure: Regenerated.
54092
54093 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54094
54095         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54096
54097 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54098
54099         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54100
54101 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54102
54103         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54104         LDBL_MANT_DIG == 106]: Disable some tests.
54105         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54106         Likewise.
54107         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54108         Likewise.
54109
54110         [BZ #14871]
54111         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54112         input for small inputs.  Return +/- pi/2 for large inputs.
54113         * math/libm-test.inc (atan_test): Add more tests.
54114
54115         * sysdeps/generic/unwind-dw2-fde-glibc.c
54116         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54117         __attribute__ ((unused)).
54118
54119         [BZ #14645]
54120         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54121         x * y if x and y are nonzero and z is zero.
54122
54123         [BZ #14811]
54124         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54125         nonzero exponents with absolute value below 0x1p-117 to +/-
54126         0x1p-117.
54127
54128         [BZ #14869]
54129         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54130         up arguments below 2**-450, not just those below 2**-500.
54131         * math/libm-test.inc (hypot_test): Add another test.
54132
54133         [BZ #14868]
54134         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54135         Return a+b for ratio over 2**120, not 2**60.
54136         * math/libm-test.inc (hypot_test): Add another test.
54137
54138         * math/libm-test.inc (clog_test): Use
54139         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54140         (clog10_test): Likewise.
54141
54142         [BZ #6778]
54143         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54144
54145 2012-11-22  Andreas Schwab  <schwab@suse.de>
54146
54147         * sysdeps/i386/fpu/libm-test-ulps: Update.
54148
54149 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54150
54151         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54152         printf output with newline.
54153
54154 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54155
54156         [BZ #14865]
54157         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54158         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54159         -z nodlopen, -z initfirst and -z execstack support.
54160         * configure: Regenerated.
54161
54162         * elf/elf.h (DF_1_NODIRECT): New macro.
54163         (DF_1_IGNMULDEF): Likewise.
54164         (DF_1_NOKSYMS): Likewise.
54165         (DF_1_NOHDR): Likewise.
54166         (DF_1_EDITED): Likewise.
54167         (DF_1_NORELOC): Likewise.
54168         (DF_1_SYMINTPOSE): Likewise.
54169         (DF_1_GLOBAUDIT): Likewise.
54170         (DF_1_SINGLETON): Likewise.
54171         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54172         DT_1_SUPPORTED_MASK bits.
54173         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54174
54175 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54176
54177         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54178
54179 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54180
54181         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54182         macro.
54183
54184         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54185         (sendmmsg): Move declarations...
54186         * socket/sys/socket.h: ... here.
54187         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54188         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54189         include it from...
54190         * socket/recvmmsg.c: ... this new file.
54191         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54192         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54193         definition of __sendmmsg hidden.
54194         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54195         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54196         Move ENOSYS stub into and include it from...
54197         * socket/sendmmsg.c: ... this new file.
54198         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54199         (sysdep_routines): Move recvmmsg and sendmmsg...
54200         * socket/Makefile (routines): ... here.
54201         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54202         (GLIBC_PRIVATE): Add __sendmmsg.
54203         * include/sys/socket.h (__sendmmsg): Add declarations.
54204         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54205         sendmmsg.
54206
54207 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54208
54209         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54210         variable I1 with __attribute__ ((unused)).
54211         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54212
54213 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54214
54215         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54216         DUMMY variables with __attribute__ ((unused)).
54217
54218         * bits/byteswap.h: Include <bits/types.h>.
54219         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54220
54221 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54222
54223         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54224         string_t.  Do not manually set errno.
54225         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54226         length with __strnlen.  Make sure to both set errno and return it on
54227         failure.
54228
54229 2012-11-19  David S. Miller  <davem@davemloft.net>
54230
54231         With help from Joseph Myers.
54232         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54233         very large arguments properly.
54234         * math/libm-test.inc (atan_test): New tests.
54235         (atan2_test): New tests.
54236         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54237         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54238
54239 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54240
54241         [BZ #14856]
54242         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54243         Define to 3.
54244
54245         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54246         [POSIX] (EADDRNOTAVAIL): Likewise.
54247         [POSIX] (EAFNOSUPPORT): Likewise.
54248         [POSIX] (EALREADY): Likewise.
54249         [POSIX] (ECONNABORTED): Likewise.
54250         [POSIX] (ECONNREFUSED): Likewise.
54251         [POSIX] (ECONNRESET): Likewise.
54252         [POSIX] (EDESTADDRREQ): Likewise.
54253         [POSIX] (EDQUOT): Likewise.
54254         [POSIX] (EHOSTUNREACH): Likewise.
54255         [POSIX] (EIDRM): Likewise.
54256         [POSIX] (EISCONN): Likewise.
54257         [POSIX] (ELOOP): Likewise.
54258         [POSIX] (EMULTIHOP): Likewise.
54259         [POSIX] (ENETDOWN): Likewise.
54260         [POSIX] (ENETUNREACH): Likewise.
54261         [POSIX] (ENOBUFS): Likewise.
54262         [POSIX] (ENODATA): Likewise.
54263         [POSIX] (ENOLINK): Likewise.
54264         [POSIX] (ENOMSG): Likewise.
54265         [POSIX] (ENOPROTOOPT): Likewise.
54266         [POSIX] (ENOSR): Likewise.
54267         [POSIX] (ENOSTR): Likewise.
54268         [POSIX] (ENOTCONN): Likewise.
54269         [POSIX] (ENOTSOCK): Likewise.
54270         [POSIX] (EOPNOTSUPP): Likewise.
54271         [POSIX] (EOVERFLOW): Likewise.
54272         [POSIX] (EPROTO): Likewise.
54273         [POSIX] (EPROTONOSUPPORT): Likewise.
54274         [POSIX] (EPROTOTYPE): Likewise.
54275         [POSIX] (ESTALE): Likewise.
54276         [POSIX] (ETIME): Likewise.
54277         [POSIX] (ETXTBSY): Likewise.
54278         [POSIX] (EWOULDBLOCK): Likewise.
54279         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54280         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54281         [POSIX] (SEEK_CUR): Likewise.
54282         [POSIX] (SEEK_END): Likewise.
54283         [POSIX || UNIX98] (mode_t): Do not require.
54284         [POSIX] (off_t): Likewise.
54285         [POSIX] (pid_t): Likewise.
54286         [POSIX] (sys/stat.h): Do not allow header.
54287         [POSIX] (unistd.h): Likewise.
54288         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54289         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54290         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54291         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54292         require.
54293         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54294         sigevent): Specify elements.
54295         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54296         entry.
54297         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54298         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54299
54300         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54301         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54302         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54303         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54304         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54305         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54306         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54307         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54308         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54309         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54310         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54311         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54312         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54313         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54314         Likewise.
54315         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54316         Likewise.
54317         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54318         Likewise.
54319         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54320         Likewise.
54321         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54322         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54323         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54324         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54325         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54326         Specify lower bound on value.
54327         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54328         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54329         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54330         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54331         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54332         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54333         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54334         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54335         value.
54336         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54337         as optional.
54338         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54339         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54340         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54341         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54342         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54343         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54344         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54345         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54346         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54347         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54348         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54349         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54350         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54351         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54352         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54353         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54354         entry.
54355         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54356         optional.
54357         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54358         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54359         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54360         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54361         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54362         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54363         Likewise.
54364         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54365         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54366         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54367         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54368         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54369         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54370         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54371         as optional.
54372         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54373         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54374         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54375         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54376         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54377         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54378         specify as optional.
54379         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54380         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54381         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54382         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54383         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54384         [XPG3] (NL_LANGMAX): Likewise.
54385         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54386         [POSIX || XPG3] (NL_NMAX): Likewise.
54387         [POSIX || XPG3] (NL_SETMAX): Likewise.
54388         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54389         [XPG3] (NZERO): Likewise.
54390         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54391         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54392         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54393         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54394         (REG_ERANGE): Expect.
54395         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54396         optional-constant.
54397         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54398         Use (void) in prototype.
54399         [POSIX] (*_t): Allow.
54400         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54401         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54402         (WRDE_BADVAL): Expect.
54403
54404         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54405         expect.
54406         [XPG3 || XPG4] (O_RSYNC): Likewise.
54407         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54408         Likewise.
54409         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54410         [XPG3 || XPG4] (sigqueue): Likewise.
54411         [XPG3 || XPG4] (sigtimedwait): Likewise.
54412         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54413         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54414         [XPG3 || XPG4] (vsnprintf): Likewise.
54415         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54416         Likewise.
54417         [XPG3 || XPG4] (blksize_t): Likewise.
54418         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54419         Likewise.
54420         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54421         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54422         [XPG3 || XPG4] (struct itimerspec): Likewise.
54423         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54424         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54425         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54426         [XPG3 || XPG4] (clockid_t): Likewise.
54427         [XPG3 || XPG4] (timer_t): Likewise.
54428         [XPG3 || XPG4] (clock_getres): Likewise.
54429         [XPG3 || XPG4] (clock_gettime): Likewise.
54430         [XPG3 || XPG4] (clock_settime): Likewise.
54431         [XPG3 || XPG4] (nanosleep): Likewise.
54432         [XPG3 || XPG4] (timer_create): Likewise.
54433         [XPG3 || XPG4] (timer_delete): Likewise.
54434         [XPG3 || XPG4] (timer_gettime): Likewise.
54435         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54436         [XPG3 || XPG4] (timer_settime): Likewise.
54437         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54438         [XPG3 || XPG4] (getlogin_r): Likewise.
54439         [XPG3 || XPG4] (pread): Likewise.
54440         [XPG3 || XPG4] (pthread_atfork): Likewise.
54441         [XPG3 || XPG4] (pwrite): Likewise.
54442
54443         [BZ #14835]
54444         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54445         <bits/siginfo.h>.
54446
54447 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54448
54449         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54450         finalizing MALLSTREAM.
54451
54452         * sysdeps/mach/hurd/syncfs.c: New file.
54453
54454 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54455
54456         [BZ #14719]
54457         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54458         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54459         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54460         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54461         (_nss_dns_gethostbyname4_r): Likewise.
54462         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54463         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54464
54465 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54466
54467         [BZ #13763]
54468         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54469
54470 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54471
54472         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54473         * elf/cache.c (print_entry): Print ",AArch64" for
54474         FLAG_AARCH64_LIB64
54475
54476         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54477         * elf/cache.c (print_entry): Print ",hard-float" for
54478         FLAG_ARM_LIBHF.
54479
54480 2012-11-18  David S. Miller  <davem@davemloft.net>
54481
54482         With help from Joseph Myers.
54483         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54484         cutoff to 2**-13.
54485         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54486         cutoff to 2**-25.
54487         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54488         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54489         small.
54490         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54491         * math/libm-test.inc (y0_test): New tests.
54492         (y1_test): New tests.
54493         * sysdeps/i386/fpu/libm-test-ulps: Update.
54494         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54495         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54496
54497 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54498
54499         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54500         64-bit targets.
54501         * configure: Regenerated.
54502
54503 2012-11-17  David S. Miller  <davem@davemloft.net>
54504
54505         [BZ #14811]
54506         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54507         nonzero exponents with absolute value below 0x1p-128 to +/-
54508         0x1p-128.
54509
54510 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54511
54512         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54513
54514         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54515
54516         * posix/getconf-speclist.c: New file.
54517         * posix/posix-envs.def: Likewise.
54518         * posix/confstr.c (START_ENV_GROUP): New macro.
54519         (END_ENV_GROUP): Likewise.
54520         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54521         (KNOWN_PRESENT_ENV_STRING): Likewise.
54522         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54523         (UNKNOWN_ENVIRONMENT): Likewise.
54524         (confstr): Include posix-envs.def instead of handling
54525         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54526         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54527         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54528         (END_ENV_GROUP): Likewise.
54529         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54530         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54531         (UNKNOWN_ENVIRONMENT): Likewise.
54532         (__sysconf): Include posix-envs.def instead of handling associated
54533         cases directly here.
54534         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54535         preprocessing getconf-speclist.c rather than running getconf or
54536         generating empty file.
54537
54538 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54539
54540         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54541
54542 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54543
54544         [BZ #14672]
54545         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54546
54547 2012-11-16  David S. Miller  <davem@davemloft.net>
54548
54549         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54550         smaller than LDBL_EPSILON/2.0L, just return xm1.
54551
54552 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54553
54554         * elf/tst-array1.c (init): Set constructor priority to 1000.
54555         (fini): Set destructor priority to 1000.
54556         * elf/tst-array2dep.c: Likewise.
54557
54558 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54559
54560         [BZ #11741]
54561         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54562         (_IO_new_file_xsputn): Also return EOF if none of the input
54563         data was written when overflow failed.
54564         * libio/iopadn.c (_IO_padn): Likewise.
54565         * libio/iowpadn.c (_IO_wpadn): Likewise.
54566         * stdio-common/tst-put-error.c: Add copyright notice.
54567         (do_test): Add case for printing padded string.
54568         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54569         _IO_padn returned error.
54570         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54571         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54572         return EOF.
54573
54574 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54575
54576         * libio/libioP.h: Add comment note that the references to C++
54577         bits are now obsolete.
54578
54579 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54580
54581         * math/libm-test.inc (check_complex): Use asprintf.
54582
54583 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54584
54585         * debug/pcprofiledump.c (print_version): Update copyright year.
54586         * malloc/memusagestat.c (print_version): Likewise.
54587
54588 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54589
54590         [BZ #14831]
54591         * elf/Makefile (tests): Add tst-audit8.
54592         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54593         ($(objpfx)tst-audit8.out): New target.
54594         (tst-audit8-ENV): New variable.
54595         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54596         audit if l_reloc_result is NULL.
54597         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54598         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54599         * elf/tst-audit8.c: New file.
54600
54601 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54602
54603         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54604         * misc/Makefile (CFLAGS-select.c): Define.
54605         * posix/Makefile (CFLAGS-pause.c): Define.
54606
54607 2012-11-13  David S. Miller  <davem@davemloft.net>
54608
54609         * crypt/Makefile: Move test targets after toplevel Rules
54610         inclusion.  Grab any necessary sysdep routines when linking.
54611         * crypt/md5.c (md5_process_block): Remove define, we will always
54612         name it __md5_process_block.
54613         (md5_finish_ctx): Update md5_process_block call.
54614         (md5_stream): Likewise.
54615         (md5_process_bytes): Likewise.
54616         (md5_process_block): Rename to __md5_process_block and move to ...
54617         * crypt/md5-block.c: ... here.
54618         * crypt/sha256.c (sha256_process_block): Move to ...
54619         * crypt/sha256-block.c: ... here.
54620         * crypt/sha512.c (sha512_process_block): Move to ...
54621         * crypt/sha512-block.c: ... here.
54622         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54623         path.
54624         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54625         * sysdeps/sparc/sparc64/multiarch/Makefile
54626         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54627         crypt subdir.
54628         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54629         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54630         multiarch changes.
54631         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54632         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54633         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54634         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54635         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54636         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54637         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54638         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54639         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54640         file.
54641         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54642         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54643         file.
54644         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54645
54646 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54647
54648         * timezone/tzselect.ksh: Update from tzcode git revision
54649         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54650         * timezone/zdump.c: Likewise.
54651         * timezone/zic.c: Likewise.
54652         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54653         in TZVERSION setting, not $(PKGVERSION).
54654         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54655         REPORT_BUGS_TO settings.
54656
54657         [BZ #14838]
54658         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54659         macro.
54660
54661 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54662
54663         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54664         detection to immediately after _FP_ROUND().
54665         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54666         bits are 0.
54667
54668 2012-11-11  David S. Miller  <davem@davemloft.net>
54669
54670         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54671         inttypes.h
54672         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54673         __close rather than their public counterparts.
54674
54675 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54676
54677         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54678         file.
54679         [UNIX98] (sem_timedwait): Do not expect.
54680         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54681         [XPG4 || UNIX98] (sockatmark): Do not expect.
54682         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54683         (clock_getcpuclockid): Do not expect.
54684         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54685         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54686         Do not expect.
54687         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54688         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54689         [UNIX98] (vwscanf): Likewise.
54690         [UNIX98] (vswscanf): Likewise.
54691
54692 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54693
54694         * timezone/version.h: Remove file.
54695         * timezone/README: Do not refer to version.h.
54696         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54697         $(objpfx)version.h.
54698         ($(objpfx)zdump.o): Likewise.
54699         ($(objpfx)version.h): New target.
54700
54701         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54702         2012i.
54703         * timezone/README: Don't mention modification to tzselect.ksh.
54704         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54705         work on unmodified tzselect.ksh.  Substitute version numbers in
54706         tzselect.ksh.
54707
54708         * Makefile (format-me): Remove.
54709         (INSTALL): Adjust indentation.  Use commands directly instead of
54710         using $(format-me).
54711
54712         * aclocal.m4 (ACX_PKGVERSION): New macro.
54713         (ACX_BUGURL): Likewise.
54714         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54715         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54716         (REPORT_BUGS_TO): Likewise.
54717         * configure: Regenerated.
54718         * config.h.in (PKGVERSION): New macro.
54719         (REPORT_BUGS_TO): Likewise.
54720         * config.make.in (PKGVERSION): New variable.
54721         (PKGVERSION_TEXI): Likewise.
54722         (REPORT_BUGS_TO): Likewise.
54723         (REPORT_BUGS_TEXI): Likewise.
54724         * Makefile (format-me): Use -I$(common-objpfx)manual.
54725         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54726         ($(common-objpfx)manual/%): New target.
54727         (manual/%): Remove target.
54728         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54729         (print_version): Use PKGVERSION.
54730         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54731         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54732         and REPORT_BUGS_TO.
54733         ($(objpfx)xtrace): Likewise.
54734         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54735         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54736         (print_version): Use PKGVERSION.
54737         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54738         (do_version): Use PKGVERSION.
54739         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54740         REPORT_BUGS_TO.
54741         (common-ldd-rewrite): Likewise.
54742         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54743         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54744         (print_version): Use PKGVERSION.
54745         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54746         * elf/pldd.c (argp_program_bug_address): Remove variable.
54747         (more_help): New function.
54748         (argp): Use more_help.
54749         (print_version): Use PKGVERSION.
54750         * elf/sln.c (main): Use PKGVERSION.
54751         (usage): Use REPORT_BUGS_TO.
54752         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54753         (top level): Use PKGVERSION.
54754         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54755         (print_version): Use PKGVERSION.
54756         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54757         (print_version): Use PKGVERSION.
54758         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54759         (print_version): Use PKGVERSION.
54760         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54761         (print_version): Use PKGVERSION.
54762         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54763         (print_version): Use PKGVERSION.
54764         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54765         (print_version): Use PKGVERSION.
54766         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54767         and BUGURL.
54768         ($(objpfx)memusage): Likewise.
54769         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54770         (do_version): Use PKGVERSION.
54771         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54772         (print_version): Use PKGVERSION.
54773         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54774         ($PKGVERSION): New variable.
54775         ($REPORT_BUGS_TO): Likewise.
54776         (usage): Use $REPORT_BUGS_TO.
54777         (top level): Use $PKGVERSION.
54778         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54779         ($(objpfx)pkgvers.texi): New rule.
54780         ($(objpfx)stamp-pkgvers): Likewise.
54781         * manual/install.texi: Include pkgvers.texi.
54782         (--with-pkgversion): Document new configure option.
54783         (--with-bugurl): Likewise.
54784         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54785         than necessarily for this particular distribution.  Use
54786         REPORT_BUGS_TO for where to report bugs.
54787         * INSTALL: Regenerated.
54788         * manual/libc.texinfo: Include pkgvers.texi.
54789         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54790         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54791         (print_version): Use PKGVERSION.
54792         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54793         (print_version): Use PKGVERSION.
54794         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54795         (print_version): Use PKGVERSION.
54796         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54797         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54798         macro.
54799         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54800         (print_version): Use PKGVERSION.
54801         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54802         (print_version): Use PKGVERSION.
54803         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54804         and PKGVERSION.
54805
54806         * timezone/checktab.awk: Update from tzcode 2012i.
54807         * timezone/ialloc.c: Likewise.
54808         * timezone/private.h: Likewise.
54809         * timezone/scheck.c: Likewise.
54810         * timezone/tzfile.h: Likewise.
54811         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54812         (TZVERSION): Hardcode tzcode version number.
54813         * timezone/zdump.c: Update from tzcode 2012i.
54814         * timezone/zic.c: Likewise.
54815         * timezone/version.h: New file.
54816         * timezone/README: Describe version.h.  Update upstream location.
54817
54818         [BZ #14824]
54819         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54820         (mktemp): Enable declaration.
54821         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54822         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54823         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54824         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54825         Likewise.
54826         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54827         Likewise.
54828         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54829         Likewise.
54830         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54831         Likewise.
54832         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54833         Likewise.
54834         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54835         Likewise.
54836
54837         [BZ #14821]
54838         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54839         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54840         for copies of such integer values.
54841         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54842         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54843
54844 2012-11-09  Andreas Jaeger  <aj@suse.de>
54845
54846         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54847         definitions and declarations that are provided by
54848         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54849
54850 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54851
54852         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54853         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54854         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54855         definition.
54856
54857 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54858
54859         * elf/elf.h: Update comment before AArch64 relocations.
54860
54861 2012-11-07  David S. Miller  <davem@davemloft.net>
54862
54863         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54864         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54865         (__start_context): Declare.
54866         (__makecontext_ret): Delete.
54867         (__makecontext): Hook up __start_context instead of
54868         __makecontext_ret.
54869         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54870         (sysdep_routines): Add __start_context when in stdlib.
54871
54872 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54873
54874         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54875         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54876         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54877         hardcoded "nm".
54878         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54879         (READELF): New variable.  Use it instead of hardcoded "readelf".
54880
54881 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54882
54883         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54884         * sysdeps/x86/Makefile: Here.
54885         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54886         * sysdeps/x86/tst-xmmymm.sh: This.
54887
54888 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54889
54890         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54891         expectations.
54892         [UNIX98] (pthread_barrier_t): Do not expect.
54893         [UNIX98] (pthread_barrierattr_t): Likewise.
54894         [UNIX98] (pthread_spinlock_t): Likewise.
54895         [UNIX98] (pthread_barrier_destroy): Likewise.
54896         [UNIX98] (pthread_barrier_init): Likewise.
54897         [UNIX98] (pthread_barrier_wait): Likewise.
54898         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54899         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54900         [UNIX98] (pthread_barrierattr_init): Likewise.
54901         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54902         [UNIX98] (pthread_getcpuclockid): Likewise.
54903         [UNIX98] (pthread_mutex_timedlock): Likewise.
54904         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54905         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54906         [UNIX98] (pthread_sigmask): Likewise.
54907         [UNIX98] (pthread_spin_destroy): Likewise.
54908         [UNIX98] (pthread_spin_init): Likewise.
54909         [UNIX98] (pthread_spin_lock): Likewise.
54910         [UNIX98] (pthread_spin_trylock): Likewise.
54911         [UNIX98] (pthread_spin_unlock): Likewise.
54912         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54913         Do not expect.
54914         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54915         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54916         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54917         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54918         [XPG3 || XPG4] (pthread_key_t): Likewise.
54919         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54920         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54921         [XPG3 || XPG4] (pthread_once_t): Likewise.
54922         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54923         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54924         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54925         [XPG3 || XPG4] (pthread_t): Likewise.
54926
54927         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54928         not expect.
54929         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54930
54931         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54932         Change function return type to int.
54933
54934         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54935         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54936         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54937         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54938         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54939         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54940         [!POSIX] (posix_madvise): Likewise.
54941         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54942         && !UNIX98].
54943         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54944         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54945         (mode_t): Likewise.
54946         (posix_mem_offset): Likewise.
54947         (posix_typed_mem_get_info): Likewise.
54948         (posix_typed_mem_open): Likewise.
54949
54950         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54951         Change condition to [XOPEN2K8].
54952
54953         * conform/conformtest.pl: Preprocess allow-header data with -x c
54954         instead of from stdin.
54955         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54956         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54957         [C99-based standards] (cerfc): Likewise.
54958         [C99-based standards] (cexp2): Likewise.
54959         [C99-based standards] (cexpm1): Likewise.
54960         [C99-based standards] (clog10): Likewise.
54961         [C99-based standards] (clog1p): Likewise.
54962         [C99-based standards] (clog2): Likewise.
54963         [C99-based standards] (clgamma): Likewise.
54964         [C99-based standards] (ctgamma): Likewise.
54965         [C99-based standards] (cerff): Likewise.
54966         [C99-based standards] (cerfcf): Likewise.
54967         [C99-based standards] (cexp2f): Likewise.
54968         [C99-based standards] (cexpm1f): Likewise.
54969         [C99-based standards] (clog10f): Likewise.
54970         [C99-based standards] (clog1pf): Likewise.
54971         [C99-based standards] (clog2f): Likewise.
54972         [C99-based standards] (clgammaf): Likewise.
54973         [C99-based standards] (ctgammaf): Likewise.
54974         [C99-based standards] (cerfl): Likewise.
54975         [C99-based standards] (cerfcl): Likewise.
54976         [C99-based standards] (cexp2l): Likewise.
54977         [C99-based standards] (cexpm1l): Likewise.
54978         [C99-based standards] (clog10l): Likewise.
54979         [C99-based standards] (clog1pl): Likewise.
54980         [C99-based standards] (clog2l): Likewise.
54981         [C99-based standards] (clgammal): Likewise.
54982         [C99-based standards] (ctgammal): Likewise.
54983         * conform/data/inttypes.h-data [C99-based standards]: Include
54984         stdint.h-data.  Remove all expectations for stdint.h contents.
54985         [C99-based standards] (PRI*): Do not allow.
54986         [C99-based standards] (SCN*): Likewise.
54987         [C99-based standards] (*_t): Likewise.
54988         [C99-based-standards] (PRId8): Expect macro.
54989         [C99-based-standards] (PRIi8): Likewise.
54990         [C99-based-standards] (PRIo8): Likewise.
54991         [C99-based-standards] (PRIu8): Likewise.
54992         [C99-based-standards] (PRIx8): Likewise.
54993         [C99-based-standards] (PRIX8): Likewise.
54994         [C99-based-standards] (SCNd8): Likewise.
54995         [C99-based-standards] (SCNi8): Likewise.
54996         [C99-based-standards] (SCNo8): Likewise.
54997         [C99-based-standards] (SCNu8): Likewise.
54998         [C99-based-standards] (SCNx8): Likewise.
54999         [C99-based-standards] (PRIdLEAST8): Likewise.
55000         [C99-based-standards] (PRIiLEAST8): Likewise.
55001         [C99-based-standards] (PRIoLEAST8): Likewise.
55002         [C99-based-standards] (PRIuLEAST8): Likewise.
55003         [C99-based-standards] (PRIxLEAST8): Likewise.
55004         [C99-based-standards] (PRIXLEAST8): Likewise.
55005         [C99-based-standards] (SCNdLEAST8): Likewise.
55006         [C99-based-standards] (SCNiLEAST8): Likewise.
55007         [C99-based-standards] (SCNoLEAST8): Likewise.
55008         [C99-based-standards] (SCNuLEAST8): Likewise.
55009         [C99-based-standards] (SCNxLEAST8): Likewise.
55010         [C99-based-standards] (PRIdFAST8): Likewise.
55011         [C99-based-standards] (PRIiFAST8): Likewise.
55012         [C99-based-standards] (PRIoFAST8): Likewise.
55013         [C99-based-standards] (PRIuFAST8): Likewise.
55014         [C99-based-standards] (PRIxFAST8): Likewise.
55015         [C99-based-standards] (PRIXFAST8): Likewise.
55016         [C99-based-standards] (SCNdFAST8): Likewise.
55017         [C99-based-standards] (SCNiFAST8): Likewise.
55018         [C99-based-standards] (SCNoFAST8): Likewise.
55019         [C99-based-standards] (SCNuFAST8): Likewise.
55020         [C99-based-standards] (SCNxFAST8): Likewise.
55021         [C99-based-standards] (PRId16): Likewise.
55022         [C99-based-standards] (PRIi16): Likewise.
55023         [C99-based-standards] (PRIo16): Likewise.
55024         [C99-based-standards] (PRIu16): Likewise.
55025         [C99-based-standards] (PRIx16): Likewise.
55026         [C99-based-standards] (PRIX16): Likewise.
55027         [C99-based-standards] (SCNd16): Likewise.
55028         [C99-based-standards] (SCNi16): Likewise.
55029         [C99-based-standards] (SCNo16): Likewise.
55030         [C99-based-standards] (SCNu16): Likewise.
55031         [C99-based-standards] (SCNx16): Likewise.
55032         [C99-based-standards] (PRIdLEAST16): Likewise.
55033         [C99-based-standards] (PRIiLEAST16): Likewise.
55034         [C99-based-standards] (PRIoLEAST16): Likewise.
55035         [C99-based-standards] (PRIuLEAST16): Likewise.
55036         [C99-based-standards] (PRIxLEAST16): Likewise.
55037         [C99-based-standards] (PRIXLEAST16): Likewise.
55038         [C99-based-standards] (SCNdLEAST16): Likewise.
55039         [C99-based-standards] (SCNiLEAST16): Likewise.
55040         [C99-based-standards] (SCNoLEAST16): Likewise.
55041         [C99-based-standards] (SCNuLEAST16): Likewise.
55042         [C99-based-standards] (SCNxLEAST16): Likewise.
55043         [C99-based-standards] (PRIdFAST16): Likewise.
55044         [C99-based-standards] (PRIiFAST16): Likewise.
55045         [C99-based-standards] (PRIoFAST16): Likewise.
55046         [C99-based-standards] (PRIuFAST16): Likewise.
55047         [C99-based-standards] (PRIxFAST16): Likewise.
55048         [C99-based-standards] (PRIXFAST16): Likewise.
55049         [C99-based-standards] (SCNdFAST16): Likewise.
55050         [C99-based-standards] (SCNiFAST16): Likewise.
55051         [C99-based-standards] (SCNoFAST16): Likewise.
55052         [C99-based-standards] (SCNuFAST16): Likewise.
55053         [C99-based-standards] (SCNxFAST16): Likewise.
55054         [C99-based-standards] (PRId32): Likewise.
55055         [C99-based-standards] (PRIi32): Likewise.
55056         [C99-based-standards] (PRIo32): Likewise.
55057         [C99-based-standards] (PRIu32): Likewise.
55058         [C99-based-standards] (PRIx32): Likewise.
55059         [C99-based-standards] (PRIX32): Likewise.
55060         [C99-based-standards] (SCNd32): Likewise.
55061         [C99-based-standards] (SCNi32): Likewise.
55062         [C99-based-standards] (SCNo32): Likewise.
55063         [C99-based-standards] (SCNu32): Likewise.
55064         [C99-based-standards] (SCNx32): Likewise.
55065         [C99-based-standards] (PRIdLEAST32): Likewise.
55066         [C99-based-standards] (PRIiLEAST32): Likewise.
55067         [C99-based-standards] (PRIoLEAST32): Likewise.
55068         [C99-based-standards] (PRIuLEAST32): Likewise.
55069         [C99-based-standards] (PRIxLEAST32): Likewise.
55070         [C99-based-standards] (PRIXLEAST32): Likewise.
55071         [C99-based-standards] (SCNdLEAST32): Likewise.
55072         [C99-based-standards] (SCNiLEAST32): Likewise.
55073         [C99-based-standards] (SCNoLEAST32): Likewise.
55074         [C99-based-standards] (SCNuLEAST32): Likewise.
55075         [C99-based-standards] (SCNxLEAST32): Likewise.
55076         [C99-based-standards] (PRIdFAST32): Likewise.
55077         [C99-based-standards] (PRIiFAST32): Likewise.
55078         [C99-based-standards] (PRIoFAST32): Likewise.
55079         [C99-based-standards] (PRIuFAST32): Likewise.
55080         [C99-based-standards] (PRIxFAST32): Likewise.
55081         [C99-based-standards] (PRIXFAST32): Likewise.
55082         [C99-based-standards] (SCNdFAST32): Likewise.
55083         [C99-based-standards] (SCNiFAST32): Likewise.
55084         [C99-based-standards] (SCNoFAST32): Likewise.
55085         [C99-based-standards] (SCNuFAST32): Likewise.
55086         [C99-based-standards] (SCNxFAST32): Likewise.
55087         [C99-based-standards] (PRId64): Likewise.
55088         [C99-based-standards] (PRIi64): Likewise.
55089         [C99-based-standards] (PRIo64): Likewise.
55090         [C99-based-standards] (PRIu64): Likewise.
55091         [C99-based-standards] (PRIx64): Likewise.
55092         [C99-based-standards] (PRIX64): Likewise.
55093         [C99-based-standards] (SCNd64): Likewise.
55094         [C99-based-standards] (SCNi64): Likewise.
55095         [C99-based-standards] (SCNo64): Likewise.
55096         [C99-based-standards] (SCNu64): Likewise.
55097         [C99-based-standards] (SCNx64): Likewise.
55098         [C99-based-standards] (PRIdLEAST64): Likewise.
55099         [C99-based-standards] (PRIiLEAST64): Likewise.
55100         [C99-based-standards] (PRIoLEAST64): Likewise.
55101         [C99-based-standards] (PRIuLEAST64): Likewise.
55102         [C99-based-standards] (PRIxLEAST64): Likewise.
55103         [C99-based-standards] (PRIXLEAST64): Likewise.
55104         [C99-based-standards] (SCNdLEAST64): Likewise.
55105         [C99-based-standards] (SCNiLEAST64): Likewise.
55106         [C99-based-standards] (SCNoLEAST64): Likewise.
55107         [C99-based-standards] (SCNuLEAST64): Likewise.
55108         [C99-based-standards] (SCNxLEAST64): Likewise.
55109         [C99-based-standards] (PRIdFAST64): Likewise.
55110         [C99-based-standards] (PRIiFAST64): Likewise.
55111         [C99-based-standards] (PRIoFAST64): Likewise.
55112         [C99-based-standards] (PRIuFAST64): Likewise.
55113         [C99-based-standards] (PRIxFAST64): Likewise.
55114         [C99-based-standards] (PRIXFAST64): Likewise.
55115         [C99-based-standards] (SCNdFAST64): Likewise.
55116         [C99-based-standards] (SCNiFAST64): Likewise.
55117         [C99-based-standards] (SCNoFAST64): Likewise.
55118         [C99-based-standards] (SCNuFAST64): Likewise.
55119         [C99-based-standards] (SCNxFAST64): Likewise.
55120         [C99-based-standards] (PRIdMAX): Likewise.
55121         [C99-based-standards] (PRIiMAX): Likewise.
55122         [C99-based-standards] (PRIoMAX): Likewise.
55123         [C99-based-standards] (PRIuMAX): Likewise.
55124         [C99-based-standards] (PRIxMAX): Likewise.
55125         [C99-based-standards] (PRIXMAX): Likewise.
55126         [C99-based-standards] (SCNdMAX): Likewise.
55127         [C99-based-standards] (SCNiMAX): Likewise.
55128         [C99-based-standards] (SCNoMAX): Likewise.
55129         [C99-based-standards] (SCNuMAX): Likewise.
55130         [C99-based-standards] (SCNxMAX): Likewise.
55131         [C99-based-standards] (PRIdPTR): Likewise.
55132         [C99-based-standards] (PRIiPTR): Likewise.
55133         [C99-based-standards] (PRIoPTR): Likewise.
55134         [C99-based-standards] (PRIuPTR): Likewise.
55135         [C99-based-standards] (PRIxPTR): Likewise.
55136         [C99-based-standards] (PRIXPTR): Likewise.
55137         [C99-based-standards] (SCNdPTR): Likewise.
55138         [C99-based-standards] (SCNiPTR): Likewise.
55139         [C99-based-standards] (SCNoPTR): Likewise.
55140         [C99-based-standards] (SCNuPTR): Likewise.
55141         [C99-based-standards] (SCNxPTR): Likewise.
55142         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55143         allow.
55144         * conform/data/stdint.h-data: Update comments to clarify
55145         requirements.
55146         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55147         type.
55148         [C99-based standards] (INT8_MAX): Likewise.
55149         [C99-based standards] (INT16_MIN): Likewise.
55150         [C99-based standards] (INT16_MAX): Likewise.
55151         [C99-based standards] (INT32_MIN): Likewise.
55152         [C99-based standards] (INT32_MAX): Likewise.
55153         [C99-based standards] (INT64_MIN): Likewise.
55154         [C99-based standards] (INT64_MAX): Likewise.
55155         [C99-based standards] (UINT8_MAX): Likewise.
55156         [C99-based standards] (UINT16_MAX): Likewise.
55157         [C99-based standards] (UINT32_MAX): Likewise.
55158         [C99-based standards] (UINT64_MAX): Likewise.
55159         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55160         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55161         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55162         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55163         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55164         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55165         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55166         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55167         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55168         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55169         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55170         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55171         [C99-based standards] (INT_FAST8_MIN): Likewise.
55172         [C99-based standards] (INT_FAST8_MAX): Likewise.
55173         [C99-based standards] (INT_FAST16_MIN): Likewise.
55174         [C99-based standards] (INT_FAST16_MAX): Likewise.
55175         [C99-based standards] (INT_FAST32_MIN): Likewise.
55176         [C99-based standards] (INT_FAST32_MAX): Likewise.
55177         [C99-based standards] (INT_FAST64_MIN): Likewise.
55178         [C99-based standards] (INT_FAST64_MAX): Likewise.
55179         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55180         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55181         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55182         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55183         [C99-based standards] (INTPTR_MIN): Likewise.
55184         [C99-based standards] (INTPTR_MAX): Likewise.
55185         [C99-based standards] (UINTPTR_MAX): Likewise.
55186         [C99-based standards] (INTMAX_MIN): Likewise.
55187         [C99-based standards] (INTMAX_MAX): Likewise.
55188         [C99-based standards] (UINTMAX_MAX): Likewise.
55189         [C99-based standards] (PTRDIFF_MIN): Likewise.
55190         [C99-based standards] (PTRDIFF_MAX): Likewise.
55191         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55192         [C99-based standards] (SIZE_MAX): Likewise.
55193         [C99-based standards] (WCHAR_MAX): Likewise.
55194         [C99-based standards] (WINT_MAX): Likewise.
55195         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55196         constraint on value.
55197         [C99-based standards] (WCHAR_MIN): Likewise.
55198         [C99-based standards] (WINT_MIN): Likewise.
55199         [C99-based standards] (*_t): Allow.
55200         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55201         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55202         Include math.h-data and complex.h-data.  Remove all expectations
55203         of math.h and complex.h contents.
55204         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55205         at end of line.
55206         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55207         (struct tm): Expect tag.
55208         [C99-based-standards] (wcstof): Expect function.
55209         [C99-based-standards] (wcstold): Likewise.
55210         [C99-based-standards] (wcstoll): Likewise.
55211         [C99-based-standards] (wcstoull): Likewise.
55212         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55213         macro-int-constant.  Specify type.
55214         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55215         constraint on value.
55216         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55217         Specify type.
55218         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55219         Specify value.
55220         [ISO C standards]: Do not allow headers.
55221         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55222         wcs[abcdefghijklmnopqrstuvwxyz]*.
55223         [ISO C standards] (*_t): Do not allow.
55224         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55225         Expect function.
55226         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55227         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55228         Specify type.
55229         [ISO C standards]: Do not allow headers.
55230         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55231         is[abcdefghijklmnopqrstuvwxyz]*.
55232         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55233         to[abcdefghijklmnopqrstuvwxyz]*.
55234         [ISO C standards] (*_t): Do not allow.
55235         * conform/data/stdalign.h-data: New file.
55236         * conform/data/stdbool.h-data: Likewise.
55237         * conform/data/stdnoreturn.h-data: Likewise.
55238
55239 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55240
55241         [BZ #14815]
55242         * manual/filesys.texi (Directory Entries): Typo fix.
55243         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55244
55245 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55246
55247         * elf/elf.h (EM_AARCH64): New macro.
55248         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55249         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55250         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55251         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55252         (R_AARCH64_TLSDESC): Likewise.
55253         (NT_ARM_TLS): Likewise.
55254         (NT_ARM_HW_BREAK): Likewise.
55255         (NT_ARM_HW_WATCH): Likewise.
55256
55257 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55258
55259         [BZ #14811]
55260         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55261         (__ieee754_powl): Saturate nonzero exponents with absolute value
55262         below 0x1p-79 to +/- 0x1p-79.
55263         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55264         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55265         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55266         nonzero exponents with absolute value below 0x1p-32 to +/-
55267         0x1p-32.
55268         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55269         (__ieee754_powl): Saturate nonzero exponents with absolute value
55270         below 0x1p-79 to +/- 0x1p-79.
55271         * math/libm-test.inc (pow_test): Add more tests.
55272
55273 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55274
55275         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55276         _dl_s390_cap_flags with kernel. Increase string length.
55277         (_dl_s390_platforms): Add z196 and zEC12.
55278
55279 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55280
55281         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55282         Change XOPEN21K to XOPEN2K.
55283
55284 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55285
55286         * string/memmove.c: Use memcpy when possible.
55287
55288 2012-11-06  Andreas Jaeger  <aj@suse.de>
55289
55290         * po/eo.po: Update from translation team.
55291
55292 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55293
55294         [BZ #14793]
55295         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55296         exponent and small x and y exponents, scale x or y up.  Increase
55297         by 2 the exponent used in scaling up.
55298         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55299         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55300         * math/libm-test.inc (fma_test): Add more tests.
55301         (fma_test_towardzero): Likewise.
55302         (fma_test_downward): Likewise.
55303         (fma_test_upward): Likewise.
55304
55305 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55306
55307         [BZ #14805]
55308         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55309         fenv_t *.
55310
55311         [BZ #14801]
55312         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55313         namespace for names of struct fields.
55314         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55315         fenv_t fields.
55316         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55317         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55318
55319 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55320
55321         [BZ #3665]
55322         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55323
55324 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55325
55326         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55327         PTR_DEMANGLE.
55328
55329         [BZ #5246]
55330         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55331         PTR_DEMANGLE.
55332
55333 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55334
55335         [BZ #14797]
55336         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55337         definitely overflow as x * y not x * y + z.
55338         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55339         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55340         * math/libm-test.inc (fma_test): Add more tests.
55341         (fma_test_towardzero): Likewise.
55342         (fma_test_downward): Likewise.
55343         (fma_test_upward): Likewise.
55344
55345 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55346
55347         [BZ #157]
55348
55349         * include/stub-tag.h: Remove file.
55350         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55351         '#include' of it.
55352         * manual/maint.texi (Porting): Don't reference it.
55353         * Makerules ($(objpfx)stubs): Likewise.
55354         * dirent/closedir.c: Don't include <stub-tag.h>.
55355         * dirent/dirfd.c: Likewise.
55356         * dirent/fdopendir.c: Likewise.
55357         * dirent/getdents.c: Likewise.
55358         * dirent/getdents64.c: Likewise.
55359         * dirent/opendir.c: Likewise.
55360         * dirent/readdir.c: Likewise.
55361         * dirent/readdir64.c: Likewise.
55362         * dirent/readdir64_r.c: Likewise.
55363         * dirent/readdir_r.c: Likewise.
55364         * dirent/rewinddir.c: Likewise.
55365         * dirent/seekdir.c: Likewise.
55366         * dirent/telldir.c: Likewise.
55367         * gmon/profil.c: Likewise.
55368         * grp/setgroups.c: Likewise.
55369         * inet/if_index.c: Likewise.
55370         * io/access.c: Likewise.
55371         * io/chdir.c: Likewise.
55372         * io/chmod.c: Likewise.
55373         * io/chown.c: Likewise.
55374         * io/close.c: Likewise.
55375         * io/dup.c: Likewise.
55376         * io/dup2.c: Likewise.
55377         * io/dup3.c: Likewise.
55378         * io/euidaccess.c: Likewise.
55379         * io/faccessat.c: Likewise.
55380         * io/fchdir.c: Likewise.
55381         * io/fchmod.c: Likewise.
55382         * io/fchmodat.c: Likewise.
55383         * io/fchown.c: Likewise.
55384         * io/fchownat.c: Likewise.
55385         * io/fcntl.c: Likewise.
55386         * io/flock.c: Likewise.
55387         * io/fstatfs.c: Likewise.
55388         * io/fstatfs64.c: Likewise.
55389         * io/fstatvfs.c: Likewise.
55390         * io/fstatvfs64.c: Likewise.
55391         * io/futimens.c: Likewise.
55392         * io/fxstat.c: Likewise.
55393         * io/fxstat64.c: Likewise.
55394         * io/fxstatat.c: Likewise.
55395         * io/fxstatat64.c: Likewise.
55396         * io/getcwd.c: Likewise.
55397         * io/isatty.c: Likewise.
55398         * io/lchmod.c: Likewise.
55399         * io/lchown.c: Likewise.
55400         * io/link.c: Likewise.
55401         * io/linkat.c: Likewise.
55402         * io/lseek.c: Likewise.
55403         * io/lseek64.c: Likewise.
55404         * io/lxstat64.c: Likewise.
55405         * io/mkdir.c: Likewise.
55406         * io/mkdirat.c: Likewise.
55407         * io/mkfifo.c: Likewise.
55408         * io/mkfifoat.c: Likewise.
55409         * io/open.c: Likewise.
55410         * io/open64.c: Likewise.
55411         * io/openat.c: Likewise.
55412         * io/openat64.c: Likewise.
55413         * io/pipe.c: Likewise.
55414         * io/pipe2.c: Likewise.
55415         * io/poll.c: Likewise.
55416         * io/posix_fadvise.c: Likewise.
55417         * io/posix_fadvise64.c: Likewise.
55418         * io/posix_fallocate.c: Likewise.
55419         * io/posix_fallocate64.c: Likewise.
55420         * io/read.c: Likewise.
55421         * io/readlink.c: Likewise.
55422         * io/readlinkat.c: Likewise.
55423         * io/rmdir.c: Likewise.
55424         * io/sendfile.c: Likewise.
55425         * io/sendfile64.c: Likewise.
55426         * io/statfs.c: Likewise.
55427         * io/statfs64.c: Likewise.
55428         * io/statvfs.c: Likewise.
55429         * io/statvfs64.c: Likewise.
55430         * io/symlink.c: Likewise.
55431         * io/symlinkat.c: Likewise.
55432         * io/ttyname.c: Likewise.
55433         * io/ttyname_r.c: Likewise.
55434         * io/umask.c: Likewise.
55435         * io/unlink.c: Likewise.
55436         * io/unlinkat.c: Likewise.
55437         * io/utime.c: Likewise.
55438         * io/utimensat.c: Likewise.
55439         * io/write.c: Likewise.
55440         * io/xmknod.c: Likewise.
55441         * io/xmknodat.c: Likewise.
55442         * io/xstat.c: Likewise.
55443         * io/xstat64.c: Likewise.
55444         * login/getpt.c: Likewise.
55445         * login/grantpt.c: Likewise.
55446         * login/unlockpt.c: Likewise.
55447         * math/e_acoshl.c: Likewise.
55448         * math/e_acosl.c: Likewise.
55449         * math/e_asinl.c: Likewise.
55450         * math/e_atan2l.c: Likewise.
55451         * math/e_atanhl.c: Likewise.
55452         * math/e_coshl.c: Likewise.
55453         * math/e_expl.c: Likewise.
55454         * math/e_fmodl.c: Likewise.
55455         * math/e_gammal_r.c: Likewise.
55456         * math/e_hypotl.c: Likewise.
55457         * math/e_j0l.c: Likewise.
55458         * math/e_j1l.c: Likewise.
55459         * math/e_jnl.c: Likewise.
55460         * math/e_lgammal_r.c: Likewise.
55461         * math/e_log10l.c: Likewise.
55462         * math/e_log2l.c: Likewise.
55463         * math/e_logl.c: Likewise.
55464         * math/e_powl.c: Likewise.
55465         * math/e_rem_pio2l.c: Likewise.
55466         * math/e_sinhl.c: Likewise.
55467         * math/e_sqrtl.c: Likewise.
55468         * math/fclrexcpt.c: Likewise.
55469         * math/fedisblxcpt.c: Likewise.
55470         * math/feenablxcpt.c: Likewise.
55471         * math/fegetenv.c: Likewise.
55472         * math/fegetexcept.c: Likewise.
55473         * math/fegetround.c: Likewise.
55474         * math/feholdexcpt.c: Likewise.
55475         * math/fesetenv.c: Likewise.
55476         * math/fesetround.c: Likewise.
55477         * math/feupdateenv.c: Likewise.
55478         * math/fgetexcptflg.c: Likewise.
55479         * math/fraiseexcpt.c: Likewise.
55480         * math/fsetexcptflg.c: Likewise.
55481         * math/ftestexcept.c: Likewise.
55482         * math/k_cosl.c: Likewise.
55483         * math/k_rem_pio2l.c: Likewise.
55484         * math/k_sinl.c: Likewise.
55485         * math/k_tanl.c: Likewise.
55486         * math/s_asinhl.c: Likewise.
55487         * math/s_atanl.c: Likewise.
55488         * math/s_cbrtl.c: Likewise.
55489         * math/s_erfl.c: Likewise.
55490         * math/s_expm1l.c: Likewise.
55491         * math/s_log1pl.c: Likewise.
55492         * math/s_tanhl.c: Likewise.
55493         * misc/acct.c: Likewise.
55494         * misc/brk.c: Likewise.
55495         * misc/chflags.c: Likewise.
55496         * misc/chroot.c: Likewise.
55497         * misc/fchflags.c: Likewise.
55498         * misc/fgetxattr.c: Likewise.
55499         * misc/flistxattr.c: Likewise.
55500         * misc/fremovexattr.c: Likewise.
55501         * misc/fsetxattr.c: Likewise.
55502         * misc/fsync.c: Likewise.
55503         * misc/ftruncate.c: Likewise.
55504         * misc/futimes.c: Likewise.
55505         * misc/futimesat.c: Likewise.
55506         * misc/getdomain.c: Likewise.
55507         * misc/getdtsz.c: Likewise.
55508         * misc/gethostid.c: Likewise.
55509         * misc/gethostname.c: Likewise.
55510         * misc/getloadavg.c: Likewise.
55511         * misc/getpagesize.c: Likewise.
55512         * misc/getsysstats.c: Likewise.
55513         * misc/getxattr.c: Likewise.
55514         * misc/gtty.c: Likewise.
55515         * misc/ioctl.c: Likewise.
55516         * misc/lgetxattr.c: Likewise.
55517         * misc/listxattr.c: Likewise.
55518         * misc/llistxattr.c: Likewise.
55519         * misc/lremovexattr.c: Likewise.
55520         * misc/lsetxattr.c: Likewise.
55521         * misc/lutimes.c: Likewise.
55522         * misc/madvise.c: Likewise.
55523         * misc/mincore.c: Likewise.
55524         * misc/mlock.c: Likewise.
55525         * misc/mlockall.c: Likewise.
55526         * misc/mmap.c: Likewise.
55527         * misc/mprotect.c: Likewise.
55528         * misc/msync.c: Likewise.
55529         * misc/munlock.c: Likewise.
55530         * misc/munlockall.c: Likewise.
55531         * misc/munmap.c: Likewise.
55532         * misc/preadv.c: Likewise.
55533         * misc/preadv64.c: Likewise.
55534         * misc/ptrace.c: Likewise.
55535         * misc/pwritev.c: Likewise.
55536         * misc/pwritev64.c: Likewise.
55537         * misc/readv.c: Likewise.
55538         * misc/reboot.c: Likewise.
55539         * misc/remap_file_pages.c: Likewise.
55540         * misc/removexattr.c: Likewise.
55541         * misc/revoke.c: Likewise.
55542         * misc/select.c: Likewise.
55543         * misc/setdomain.c: Likewise.
55544         * misc/setegid.c: Likewise.
55545         * misc/seteuid.c: Likewise.
55546         * misc/sethostid.c: Likewise.
55547         * misc/sethostname.c: Likewise.
55548         * misc/setregid.c: Likewise.
55549         * misc/setreuid.c: Likewise.
55550         * misc/setxattr.c: Likewise.
55551         * misc/sstk.c: Likewise.
55552         * misc/stty.c: Likewise.
55553         * misc/swapoff.c: Likewise.
55554         * misc/swapon.c: Likewise.
55555         * misc/sync.c: Likewise.
55556         * misc/syncfs.c: Likewise.
55557         * misc/syscall.c: Likewise.
55558         * misc/truncate.c: Likewise.
55559         * misc/ualarm.c: Likewise.
55560         * misc/usleep.c: Likewise.
55561         * misc/ustat.c: Likewise.
55562         * misc/utimes.c: Likewise.
55563         * misc/vhangup.c: Likewise.
55564         * misc/writev.c: Likewise.
55565         * posix/_exit.c: Likewise.
55566         * posix/alarm.c: Likewise.
55567         * posix/execve.c: Likewise.
55568         * posix/fexecve.c: Likewise.
55569         * posix/fork.c: Likewise.
55570         * posix/fpathconf.c: Likewise.
55571         * posix/getaddrinfo.c: Likewise.
55572         * posix/getegid.c: Likewise.
55573         * posix/geteuid.c: Likewise.
55574         * posix/getgid.c: Likewise.
55575         * posix/getgroups.c: Likewise.
55576         * posix/getlogin.c: Likewise.
55577         * posix/getlogin_r.c: Likewise.
55578         * posix/getpgid.c: Likewise.
55579         * posix/getpid.c: Likewise.
55580         * posix/getppid.c: Likewise.
55581         * posix/getresgid.c: Likewise.
55582         * posix/getresuid.c: Likewise.
55583         * posix/getsid.c: Likewise.
55584         * posix/getuid.c: Likewise.
55585         * posix/glob64.c: Likewise.
55586         * posix/nanosleep.c: Likewise.
55587         * posix/pathconf.c: Likewise.
55588         * posix/pause.c: Likewise.
55589         * posix/posix_madvise.c: Likewise.
55590         * posix/pread.c: Likewise.
55591         * posix/pread64.c: Likewise.
55592         * posix/pwrite.c: Likewise.
55593         * posix/pwrite64.c: Likewise.
55594         * posix/sched_getaffinity.c: Likewise.
55595         * posix/sched_getp.c: Likewise.
55596         * posix/sched_gets.c: Likewise.
55597         * posix/sched_primax.c: Likewise.
55598         * posix/sched_primin.c: Likewise.
55599         * posix/sched_rr_gi.c: Likewise.
55600         * posix/sched_setaffinity.c: Likewise.
55601         * posix/sched_setp.c: Likewise.
55602         * posix/sched_sets.c: Likewise.
55603         * posix/sched_yield.c: Likewise.
55604         * posix/setgid.c: Likewise.
55605         * posix/setlogin.c: Likewise.
55606         * posix/setpgid.c: Likewise.
55607         * posix/setresgid.c: Likewise.
55608         * posix/setresuid.c: Likewise.
55609         * posix/setsid.c: Likewise.
55610         * posix/setuid.c: Likewise.
55611         * posix/sleep.c: Likewise.
55612         * posix/spawni.c: Likewise.
55613         * posix/sysconf.c: Likewise.
55614         * posix/times.c: Likewise.
55615         * posix/wait.c: Likewise.
55616         * posix/wait3.c: Likewise.
55617         * posix/wait4.c: Likewise.
55618         * posix/waitpid.c: Likewise.
55619         * resolv/gai_sigqueue.c: Likewise.
55620         * resource/getpriority.c: Likewise.
55621         * resource/getrlimit.c: Likewise.
55622         * resource/getrusage.c: Likewise.
55623         * resource/nice.c: Likewise.
55624         * resource/setpriority.c: Likewise.
55625         * resource/setrlimit.c: Likewise.
55626         * resource/ulimit.c: Likewise.
55627         * rt/aio_cancel.c: Likewise.
55628         * rt/aio_fsync.c: Likewise.
55629         * rt/aio_read.c: Likewise.
55630         * rt/aio_sigqueue.c: Likewise.
55631         * rt/aio_suspend.c: Likewise.
55632         * rt/aio_write.c: Likewise.
55633         * rt/clock_getres.c: Likewise.
55634         * rt/clock_gettime.c: Likewise.
55635         * rt/clock_nanosleep.c: Likewise.
55636         * rt/clock_settime.c: Likewise.
55637         * rt/lio_listio.c: Likewise.
55638         * rt/mq_close.c: Likewise.
55639         * rt/mq_getattr.c: Likewise.
55640         * rt/mq_notify.c: Likewise.
55641         * rt/mq_open.c: Likewise.
55642         * rt/mq_receive.c: Likewise.
55643         * rt/mq_send.c: Likewise.
55644         * rt/mq_setattr.c: Likewise.
55645         * rt/mq_timedreceive.c: Likewise.
55646         * rt/mq_timedsend.c: Likewise.
55647         * rt/mq_unlink.c: Likewise.
55648         * rt/shm_open.c: Likewise.
55649         * rt/shm_unlink.c: Likewise.
55650         * rt/timer_create.c: Likewise.
55651         * rt/timer_delete.c: Likewise.
55652         * rt/timer_getoverr.c: Likewise.
55653         * rt/timer_gettime.c: Likewise.
55654         * rt/timer_settime.c: Likewise.
55655         * setjmp/__longjmp.c: Likewise.
55656         * setjmp/setjmp.c: Likewise.
55657         * signal/kill.c: Likewise.
55658         * signal/killpg.c: Likewise.
55659         * signal/raise.c: Likewise.
55660         * signal/sigaction.c: Likewise.
55661         * signal/sigaltstack.c: Likewise.
55662         * signal/sigblock.c: Likewise.
55663         * signal/sigignore.c: Likewise.
55664         * signal/sigintr.c: Likewise.
55665         * signal/signal.c: Likewise.
55666         * signal/sigpause.c: Likewise.
55667         * signal/sigpending.c: Likewise.
55668         * signal/sigqueue.c: Likewise.
55669         * signal/sigreturn.c: Likewise.
55670         * signal/sigset.c: Likewise.
55671         * signal/sigsetmask.c: Likewise.
55672         * signal/sigstack.c: Likewise.
55673         * signal/sigsuspend.c: Likewise.
55674         * signal/sigtimedwait.c: Likewise.
55675         * signal/sigvec.c: Likewise.
55676         * signal/sigwait.c: Likewise.
55677         * signal/sigwaitinfo.c: Likewise.
55678         * signal/sysv_signal.c: Likewise.
55679         * socket/accept.c: Likewise.
55680         * socket/accept4.c: Likewise.
55681         * socket/bind.c: Likewise.
55682         * socket/connect.c: Likewise.
55683         * socket/getpeername.c: Likewise.
55684         * socket/getsockname.c: Likewise.
55685         * socket/getsockopt.c: Likewise.
55686         * socket/isfdtype.c: Likewise.
55687         * socket/listen.c: Likewise.
55688         * socket/recv.c: Likewise.
55689         * socket/recvfrom.c: Likewise.
55690         * socket/recvmsg.c: Likewise.
55691         * socket/send.c: Likewise.
55692         * socket/sendmsg.c: Likewise.
55693         * socket/sendto.c: Likewise.
55694         * socket/setsockopt.c: Likewise.
55695         * socket/shutdown.c: Likewise.
55696         * socket/sockatmark.c: Likewise.
55697         * socket/socket.c: Likewise.
55698         * socket/socketpair.c: Likewise.
55699         * stdio-common/ctermid.c: Likewise.
55700         * stdio-common/cuserid.c: Likewise.
55701         * stdio-common/remove.c: Likewise.
55702         * stdio-common/rename.c: Likewise.
55703         * stdio-common/renameat.c: Likewise.
55704         * stdio-common/tempname.c: Likewise.
55705         * stdlib/getcontext.c: Likewise.
55706         * stdlib/makecontext.c: Likewise.
55707         * stdlib/setcontext.c: Likewise.
55708         * stdlib/swapcontext.c: Likewise.
55709         * stdlib/system.c: Likewise.
55710         * streams/fattach.c: Likewise.
55711         * streams/fdetach.c: Likewise.
55712         * streams/getmsg.c: Likewise.
55713         * streams/getpmsg.c: Likewise.
55714         * streams/putmsg.c: Likewise.
55715         * streams/putpmsg.c: Likewise.
55716         * sysdeps/unix/bsd/getpt.c: Likewise.
55717         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55718         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55719         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55721         Likewise.
55722         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55723         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55724         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55725         * sysvipc/msgctl.c: Likewise.
55726         * sysvipc/msgget.c: Likewise.
55727         * sysvipc/msgrcv.c: Likewise.
55728         * sysvipc/msgsnd.c: Likewise.
55729         * sysvipc/semctl.c: Likewise.
55730         * sysvipc/semget.c: Likewise.
55731         * sysvipc/semop.c: Likewise.
55732         * sysvipc/semtimedop.c: Likewise.
55733         * sysvipc/shmat.c: Likewise.
55734         * sysvipc/shmctl.c: Likewise.
55735         * sysvipc/shmdt.c: Likewise.
55736         * sysvipc/shmget.c: Likewise.
55737         * termios/tcdrain.c: Likewise.
55738         * termios/tcflow.c: Likewise.
55739         * termios/tcflush.c: Likewise.
55740         * termios/tcgetattr.c: Likewise.
55741         * termios/tcgetpgrp.c: Likewise.
55742         * termios/tcsendbrk.c: Likewise.
55743         * termios/tcsetattr.c: Likewise.
55744         * termios/tcsetpgrp.c: Likewise.
55745         * time/adjtime.c: Likewise.
55746         * time/clock.c: Likewise.
55747         * time/getitimer.c: Likewise.
55748         * time/gettimeofday.c: Likewise.
55749         * time/setitimer.c: Likewise.
55750         * time/settimeofday.c: Likewise.
55751         * time/stime.c: Likewise.
55752         * time/time.c: Likewise.
55753
55754 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55755
55756         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55757         /usr/old/bin.
55758
55759         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55760         instead of spaces.
55761         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55762
55763 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55764
55765         [BZ #14796]
55766         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55767         FE_TONEAREST before applying Dekker multiplication and Knuth
55768         addition.  Clear inexact exceptions and check for exact zero
55769         results afterwards.
55770         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55771         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55772         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55773         * math/libm-test.inc (fma_test): Add more tests.
55774         (fma_test_towardzero): Likewise.
55775         (fma_test_downward): Likewise.
55776         (fma_test_upward): Likewise.
55777         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55778         function.
55779         (libc_fesetround): New macro.
55780         (libc_fesetroundf): Likewise.
55781         (libc_fesetroundl): Likewise.
55782         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55783         function.
55784         (libc_fesetround_387): Likewise.
55785         (libc_fesetroundf): New macro.
55786         (libc_fesetround): Likewise.
55787         (libc_fesetroundl): Likewise.
55788         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55789         function.
55790         (libc_fesetroundf): New macro.
55791         (libc_fesetround): Likewise.
55792         (libc_fesetroundl): Likewise.
55793         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55794         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55795         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55796         libm_hidden_ver.
55797         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55798         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55799         libm_hidden_def.
55800         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55801         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55802         libm_hidden_ver.
55803         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55804         libm_hidden_def.
55805
55806         [BZ #3439]
55807         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55808         integer constant usable in #if and use that to give value to enum
55809         constant.
55810         (FE_DIVBYZERO): Likewise.
55811         (FE_UNDERFLOW): Likewise.
55812         (FE_OVERFLOW): Likewise.
55813         (FE_INVALID): Likewise.
55814         (FE_INVALID_SNAN): Likewise.
55815         (FE_INVALID_ISI): Likewise.
55816         (FE_INVALID_IDI): Likewise.
55817         (FE_INVALID_ZDZ): Likewise.
55818         (FE_INVALID_IMZ): Likewise.
55819         (FE_INVALID_COMPARE): Likewise.
55820         (FE_INVALID_SOFTWARE): Likewise.
55821         (FE_INVALID_SQRT): Likewise.
55822         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55823         (FE_TONEAREST): Likewise.
55824         (FE_TOWARDZERO): Likewise.
55825         (FE_UPWARD): Likewise.
55826         (FE_DOWNWARD): Likewise.
55827         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55828         (FE_DIVBYZERO): Likewise.
55829         (FE_OVERFLOW): Likewise.
55830         (FE_UNDERFLOW): Likewise.
55831         (FE_INEXACT): Likewise.
55832         (FE_TONEAREST): Likewise.
55833         (FE_DOWNWARD): Likewise.
55834         (FE_UPWARD): Likewise.
55835         (FE_TOWARDZERO): Likewise.
55836         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55837         (FE_UNDERFLOW): Likewise.
55838         (FE_OVERFLOW): Likewise.
55839         (FE_DIVBYZERO): Likewise.
55840         (FE_INVALID): Likewise.
55841         (FE_TONEAREST): Likewise.
55842         (FE_TOWARDZERO): Likewise.
55843         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55844         (FE_OVERFLOW): Likewise.
55845         (FE_UNDERFLOW): Likewise.
55846         (FE_DIVBYZERO): Likewise.
55847         (FE_INEXACT): Likewise.
55848         (FE_TONEAREST): Likewise.
55849         (FE_TOWARDZERO): Likewise.
55850         (FE_UPWARD): Likewise.
55851         (FE_DOWNWARD): Likewise.
55852         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55853         (FE_DIVBYZERO): Likewise.
55854         (FE_OVERFLOW): Likewise.
55855         (FE_UNDERFLOW): Likewise.
55856         (FE_INEXACT): Likewise.
55857         (FE_TONEAREST): Likewise.
55858         (FE_DOWNWARD): Likewise.
55859         (FE_UPWARD): Likewise.
55860         (FE_TOWARDZERO): Likewise.
55861
55862 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55863
55864         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55865
55866 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55867
55868         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55869         commands.  Quote $PWD.
55870         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55871         -x" by "export".
55872         (remove_newlines): Remove.
55873
55874 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55875
55876         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55877         * stdlib/stdlib.h (atof): Moved to ...
55878         * include/bits/stdlib-float.h: Here.  New file.
55879         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55880         * stdlib/bits/stdlib-float.h: New file.
55881         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55882         -mno-sse -mno-mmx.
55883         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55884         <xmmintrin.h>.
55885
55886 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55887
55888         * conform/conformtest.pl (@headers): Add fenv.h.
55889         * conform/data/fenv.h-data: New file.
55890         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55891         include of <math/fenv.h>.
55892
55893         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55894         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55895         && !UNIX98].  Enables tests for XOPEN2K8.
55896         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55897         POSIX2008]: Likewise.
55898
55899         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55900         (struct rusage): Do not expect type or its members.
55901
55902         [BZ #3439]
55903         * math/math.h (FP_NAN): Define macro to integer constant usable in
55904         #if and use that to give value to enum constant.
55905         (FP_INFINITE): Likewise.
55906         (FP_ZERO): Likewise.
55907         (FP_SUBNORMAL): Likewise.
55908         (FP_NORMAL): Likewise.
55909
55910 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55911
55912         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55913         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55914         arguments.
55915
55916 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55917
55918         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55919         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55920         autoconf-time if not.
55921         * configure.in: Remove AC_PREREQ.
55922
55923 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55924
55925         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55926         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55927         of the internal implementation.
55928
55929 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55930
55931         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55932         except include of <misc/sys/syslog.h>.
55933
55934 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55935
55936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55937         function returns with a NULL context exit with zero.
55938
55939 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55940
55941         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55942
55943 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55944
55945         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55946         (run_program_cmd): This.
55947         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55948         (tst_langinfo): New variable.  Use it.
55949
55950 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55951
55952         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55953         floating point opcodes.
55954
55955 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55956
55957         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55958         variable.
55959
55960         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55961
55962         * sysdeps/mach/hurd/powerpc: Remove directory.
55963         * sysdeps/mach/powerpc: Likewise.
55964
55965 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55966
55967         * scripts/check-local-headers.sh: Ignore c++ headers.
55968
55969 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55970
55971         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55972         __libc_cleanup_region_start argument.
55973
55974 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55975
55976         [BZ #14784]
55977         [BZ #14785]
55978         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55979         x * y using scaling, not as x * y + z.
55980         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55981         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55982         * math/libm-test.inc (fma_test): Add more tests.
55983         (fma_test_towardzero): Likewise.
55984         (fma_test_downward): Likewise.
55985         (fma_test_upward): Likewise.
55986
55987 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55988
55989         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55990
55991 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55992
55993         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55994         New variable.
55995
55996 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55997
55998         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55999
56000 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56001
56002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56003         Fix sort order.
56004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56005         Likewise.
56006
56007 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56008
56009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56010         Fix the order of the list for glibc 2.17.
56011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56012         Likewise.
56013
56014 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56015
56016         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56017
56018 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56019
56020         [BZ #14610]
56021         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56022         for low part of x being zero before using __atanl (y).
56023         * math/libm-test.inc (atan2_test): Add another test.
56024
56025         * manual/install.texi (Configuring and compiling): Document
56026         general use of test-wrapper and test-wrapper-env.
56027         * INSTALL: Regenerated.
56028
56029         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56030         (__fma): Do not extract and scale down low bits on after-rounding
56031         systems when result rounded to normal precision would have normal
56032         exponent.
56033         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56034         (__fmal): Do not extract and scale down low bits on after-rounding
56035         systems when result rounded to normal precision would have normal
56036         exponent.
56037         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56038         (__fmal): Do not extract and scale down low bits on after-rounding
56039         systems when result rounded to normal precision would have normal
56040         exponent.
56041         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56042         macro.
56043         (fma_test): Add more tests.
56044         (fma_test_towardzero): Likewise.
56045         (fma_test_downward): Likewise.
56046         (fma_test_upward): Likewise.
56047
56048 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56049
56050         * sysdeps/i386/tininess.h: Renamed to ...
56051         * sysdeps/x86/tininess.h: This.
56052         * sysdeps/x86_64/tininess.h: Removed.
56053
56054 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56055
56056         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56057         input.  Use $(build-program-cmd).
56058         ($(objpfx)tst-array1-static.out): Likewise.
56059         ($(objpfx)tst-array2.out): Likewise.
56060         ($(objpfx)tst-array3.out): Likewise.
56061         ($(objpfx)tst-array4.out): Likewise.
56062         ($(objpfx)tst-array5.out): Likewise.
56063         ($(objpfx)tst-array5-static.out): Likewise.
56064
56065 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56066
56067         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56068         if defined.
56069
56070         * nss/nsswitch.h (nss_interface_function): Provide new
56071         macro for use with NSS functions.
56072         * grp/initgroups.c: Use new macro.
56073         * nss/getXXbyYY.c: Likewise.
56074         * nss/getXXbyYY_r.c: Likewise.
56075         * nss/getXXent.c: Likewise.
56076         * nss/getXXent_r.c: Likewise.
56077         * sysdeps/posix/getaddrinfo.c: Likewise.
56078
56079 2012-10-30  Andreas Jaeger  <aj@suse.de>
56080
56081         * po/ru.po: Update Russion translation from translation project.
56082
56083 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56084
56085         [BZ #14152]
56086         [BZ #14783]
56087         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56088         result and shift together with sticky bit instead of replicating
56089         round-to-nearest rounding.
56090         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56091         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56092         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56093         missing underflow exceptions.
56094         (fma_test_towardzero): Add more tests.
56095         (fma_test_downward): Likewise.
56096         (fma_test_upward): Likewise.
56097
56098         [BZ #14047]
56099         * sysdeps/generic/tininess.h: New file.
56100         * sysdeps/i386/tininess.h: Likewise.
56101         * sysdeps/sh/tininess.h: Likewise.
56102         * sysdeps/x86_64/tininess.h: Likewise.
56103         * stdlib/tst-strtod-underflow.c: Likewise.
56104         * stdlib/tst-tininess.c: Likewise.
56105         * stdlib/strtod_l.c: Include <tininess.h>.
56106         (round_and_return): Do not set errno for exact underflow cases.
56107         Force an underflow exception when setting errno for underflow.
56108         Determine underflow based on rounding to normal precision if
56109         TININESS_AFTER_ROUNDING.
56110         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56111         ERANGE for exact underflow cases.
56112         * stdlib/Makefile (tests): Add tst-tininess and
56113         tst-strtod-underflow.
56114         ($(objpfx)tst-tininess): Use $(link-libm).
56115         ($(objpfx)tst-strtod-underflow): Likewise.
56116
56117 2012-10-30  Andreas Jaeger  <aj@suse.de>
56118
56119         [BZ#14767]
56120         * elf/Makefile (tests): Remove conditional for have-initfini-array
56121         since this is now always required and the variable does not exist
56122         anymore.
56123         (tests-static): Likewise.
56124         (modules-names): Likewise.
56125
56126         * po/eo.po: Add Esperanto translation from translation project.
56127
56128         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56129         merged with constructor/destructor.
56130         (init_array): Likewise.
56131         * elf/tst-array2dep.c (fini_array): Likewise.
56132         (init_array): Likewise.
56133
56134 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56135
56136         * manual/message.texi: Delete @cartouche tags.
56137
56138 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56139
56140         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56141         EOPNOTSUPP.
56142         * sysdeps/mach/hurd/fsync.c: Likewise.
56143
56144         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56145         [_POSIX_REALTIME_SIGNALS]: Change condition to
56146         [_POSIX_REALTIME_SIGNALS > 0].
56147
56148 2012-10-27  Andreas Jaeger  <aj@suse.de>
56149
56150         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56151         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56152         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56153         [__WORDSIZE != 64]: Likewise.
56154
56155 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56156
56157         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56158         *  iconvdata/tst-tables.sh: Likewise.
56159
56160 2012-10-25  David S. Miller  <davem@davemloft.net>
56161
56162         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56163         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56164         of strtoull.
56165
56166         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56167         ifunc-impl-list.c
56168         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56169         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56170         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56171         file.
56172
56173 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56174
56175         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56176         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56177         __getdirentries.
56178
56179 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56180             Jim Blandy  <jimb@codesourcery.com>
56181
56182         * scripts/cross-test-ssh.sh: New file.
56183         * manual/install.texi (Configuring and compiling): Document use of
56184         cross-test-ssh.sh.
56185         * INSTALL: Regenerated.
56186
56187 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56188
56189         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56190         EOPNOTSUPP.
56191
56192 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56193
56194         * Makeconfig (run-program-prefix): Fix comment.
56195
56196 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56197             Jim Blandy  <jimb@codesourcery.com>
56198
56199         * Makeconfig (test-wrapper): New variable,
56200         (test-wrapper-env): Likewise.
56201         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56202         (run-built-tests): Define to yes.
56203         (run-program-prefix): Use $(test-wrapper).
56204         (built-program-cmd): Likewise.
56205         * Rules (make-test-out): Use $(test-wrapper-env) and
56206         $(host-built-program-cmd).
56207         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56208         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56209         tst-pathopt.sh.
56210         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56211         $(test-wrapper-env) to tst-rtld-load-self.sh.
56212         ($(objpfx)order2.out): Use $(test-wrapper).
56213         ($(objpfx)tst-initorder.out): Likewise.
56214         ($(objpfx)tst-initorder2.out): Likewise.
56215         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56216         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56217         (test_wrapper_env): New variable.  Use it to run ld.so.
56218         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56219         Use it to run ld.so.
56220         (test_wrapper_env): Likewise.
56221         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56222         $(test-wrapper) to run-iconv-test.sh.
56223         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56224         (ICONV): Use $test_wrapper.
56225         * posix/Makefile ($(objpfx)globtest.out): Pass
56226         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56227         globtest.sh, not $(run-program-prefix).
56228         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56229         (test_wrapper): Likewise.
56230         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56231         set together with run_via_rtld_prefix.
56232         (run_program_prefix): Define in terms of test_wrapper and
56233         run_via_rtld_prefix.
56234
56235 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56236
56237         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56238         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56239         Targets removed.
56240
56241         [BZ #14743]
56242         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56243         Declare __clock_getres, __clock_gettime, __clock_settime,
56244         __clock_nanosleep, and __clock_getcpuclockid.
56245         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56246         Remove librt_hidden_def (clock_gettime).
56247         * sysdeps/unix/clock_gettime.c: Likewise.
56248         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56249         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56250         * rt/clock_getres.c: Define __clock_getres as an alias.
56251         * sysdeps/posix/clock_getres.c: Likewise.
56252         * rt/clock_settime.c: Define __clock_settime as an alias.
56253         * sysdeps/unix/clock_settime.c: Likewise.
56254         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56255         * sysdeps/unix/clock_nanosleep.c: Likewise.
56256         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56257         * rt/clock-compat.c: New file.
56258         * rt/Makefile (librt-routines): Add clock-compat and move
56259         $(clock-routines) to ...
56260         (routines): ... here, new variable.
56261         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56262         Don't add get_clockfreq here.
56263         * rt/Versions (libc: GLIBC_2.17): New version set.
56264         Add clock_* symbols here.
56265         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56266         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56267         (GLIBC_2.17): Add clock_* symbols.
56268         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56269         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56270         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56272         Likewise.
56273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56274         Likewise.
56275         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56276         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56277         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56278         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56279         * NEWS: Mention the move.
56280
56281         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56282         Use __open, __read, __close rather than their public counterparts.
56283         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56284         (__get_clockfreq_via_cpuinfo): Likewise.
56285         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56286         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56287
56288         * config.h.in (HAVE_IFUNC): New #undef.
56289         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56290         was successful.
56291         * configure: Regenerated.
56292
56293 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56294
56295         * configure.in: Move READELF check to start of file.
56296         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56297         libc_cv_asm_gnu_indirect_function in the process.
56298         * configure: Regenerated.
56299
56300 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56301
56302         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56303         send the output to /dev/null.
56304         (libc_cv_cc_with_libunwind): Likewise.
56305         (libc_cv_as_noexecstack): Likewise.
56306         * configure: Regenerate.
56307
56308 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56309
56310         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56311
56312         * posix/globtest.sh (TMPDIR): Do not set.
56313         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56314         (testout): Likewise.
56315
56316 2012-10-24  Andreas Jaeger  <aj@suse.de>
56317
56318         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56319         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56320         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56321         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56322         posix_fadvise64, posix_fallocate64.
56323
56324         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56325         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56326         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56327         Likewise.
56328         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56329         Likewise.
56330         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56331
56332         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56333         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56334         <bits/fcntl-linux.h>.
56335         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56336
56337         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56338         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56339         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56340         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56341         [__WORDSIZE != 64]: Likewise.
56342
56343 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56344
56345         * Makeconfig (run-built-tests): New variable.
56346         * Rules [$(cross-compiling) = yes]: Change condition to
56347         [$(run-built-tests) = no].
56348         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56349         to [$(run-built-tests) = yes].
56350         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56351         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56352         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56353         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56354         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56355         * io/Makefile [$(cross-compiling) = no]: Likewise.
56356         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56357         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56358         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56359         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56360         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56361         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56362         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56363         * string/Makefile [$(cross-compiling) = no]: Likewise.
56364
56365         * posix/Makefile ($(objpfx)globtest.out): Pass
56366         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56367         $(rtld-installed-name).
56368         * posix/globtest.sh (elf_objpfx): Remove variable.
56369         (rtld_installed_name): Likewise.
56370         (library_path): Likewise.
56371         (run_program_prefix): New variable.  Use for running globtest
56372         binary.
56373
56374 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56375             Joseph Myers  <joseph@codesourcery.com>
56376
56377         * Makeconfig (host-built-program-cmd): New variable.
56378         * elf/Makefile (tst-stackguard1-ARGS): Use
56379         $(host-built-program-cmd).
56380         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56381         (tst-spawn-ARGS): Likewise.
56382         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56383
56384 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56385             Jim Blandy  <jimb@codesourcery.com>
56386
56387         * Makeconfig (run-via-rtld-prefix): New variable.
56388         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56389         (built-program-cmd): Likewise.
56390
56391 2012-10-22  Andreas Jaeger  <aj@suse.de>
56392
56393         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56394         __O_RSYNC if it exists, otherwise to O_SYNC.
56395
56396 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56397             Joseph Myers  <joseph@codesourcery.com>
56398
56399         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56400         /dev/null.
56401         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56402         from /dev/null
56403         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56404         /dev/null.
56405
56406 2012-10-22  Andreas Jaeger  <aj@suse.de>
56407
56408         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56409         Define always.
56410         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56411
56412         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56413         bits/fcntl-linux.h.
56414
56415         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56416         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56417
56418         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56419         to __O_LARGEFILE.
56420         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56421         to __O_LARGEFILE.
56422
56423 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56424             Joseph Myers  <joseph@codesourcery.com>
56425
56426         * config.make.in (NM): New variable.
56427
56428 2012-10-21  Andreas Jaeger  <aj@suse.de>
56429
56430         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56431         definitions and declarations that are provided by
56432         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56433
56434 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56435
56436         [BZ #14683]
56437         * elf/Makefile (tests-static): Add tst-leaks1-static.
56438         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56439         ($(objpfx)tst-leaks1-static): New rule.
56440         ($(objpfx)tst-leaks1-static-mem): Likewise.
56441         (tst-leaks1-static-ENV): New macro.
56442         * elf/dl-open.c (dl_open_worker): Check the main application
56443         only if SHARED is defined.
56444         * elf/tst-leaks1-static.c: New file.
56445
56446 2012-10-20  Andreas Jaeger  <aj@suse.de>
56447
56448         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56449         generic values for Linux.
56450         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56451         and declarations that are provided by <bits/fcntl-linux.h> and
56452         include <bits/fcntl-linux.h>.
56453         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56454         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56455
56456 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56457
56458         * io/fcntl.h: Move include of <bits/types.h> to the top and
56459         include it unconditionally.
56460
56461 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56462
56463         * wcsmbs/Makefile (tests-ifunc): New variable.
56464         (tests): Add $(tests-ifunc).
56465         * wcsmbs/test-wcschr-ifunc.c: New file.
56466         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56467         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56468         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56469         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56470         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56471
56472         * string/Makefile (tests-ifunc): New variable.
56473         (tests): Add $(tests-ifunc).
56474         * string/test-memccpy.c (TEST_NAME): New macro.
56475         * string/test-memchr.c (TEST_NAME): Likewise.
56476         * string/test-memcmp.c (TEST_NAME): Likewise.
56477         * string/test-memcpy.c (TEST_NAME): Likewise.
56478         * string/test-memmem.c (TEST_NAME): Likewise.
56479         * string/test-memmove.c (TEST_NAME): Likewise.
56480         * string/test-memset.c (TEST_NAME): Likewise.
56481         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56482         * string/test-stpcpy.c (TEST_NAME): Likewise.
56483         * string/test-stpncpy.c (TEST_NAME): Likewise.
56484         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56485         * string/test-strcasestr.c (TEST_NAME): Likewise.
56486         * string/test-strcat.c (TEST_NAME): Likewise.
56487         * string/test-strchr.c (TEST_NAME): Likewise.
56488         * string/test-strcmp.c(TEST_NAME): Likewise.
56489         * string/test-strcpy.c (TEST_NAME): Likewise.
56490         * string/test-strcspn.c (TEST_NAME): Likewise.
56491         * string/test-strlen.c (TEST_NAME): Likewise.
56492         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56493         * string/test-strncmp.c (TEST_NAME): Likewise.
56494         * string/test-strncpy.c (TEST_NAME): Likewise.
56495         * string/test-strnlen.c (TEST_NAME): Likewise.
56496         * string/test-strpbrk.c (TEST_NAME): Likewise.
56497         * string/test-strrchr.c (TEST_NAME): Likewise.
56498         * string/test-strspn.c (TEST_NAME): Likewise.
56499         * string/test-strstr.c (TEST_NAME): Likewise.
56500         * string/test-bcopy-ifunc.c: New file.
56501         * string/test-bzero-ifunc.c: Likewise.
56502         * string/test-memccpy-ifunc.c: Likewise.
56503         * string/test-memchr-ifunc.c: Likewise.
56504         * string/test-memcmp-ifunc.c: Likewise.
56505         * string/test-memcpy-ifunc.c: Likewise.
56506         * string/test-memmem-ifunc.c: Likewise.
56507         * string/test-memmove-ifunc.c: Likewise.
56508         * string/test-mempcpy-ifunc.c: Likewise.
56509         * string/test-memset-ifunc.c: Likewise.
56510         * string/test-rawmemchr-ifunc.c: Likewise.
56511         * string/test-stpcpy-ifunc.c: Likewise.
56512         * string/test-stpncpy-ifunc.c: Likewise.
56513         * string/test-strcasecmp-ifunc.c: Likewise.
56514         * string/test-strcasestr-ifunc.c: Likewise.
56515         * string/test-strcat-ifunc.c: Likewise.
56516         * string/test-strchr-ifunc.c: Likewise.
56517         * string/test-strchrnul-ifunc.c: Likewise.
56518         * string/test-strcmp-ifunc.c: Likewise.
56519         * string/test-strcpy-ifunc.c: Likewise.
56520         * string/test-strcspn-ifunc.c: Likewise.
56521         * string/test-strlen-ifunc.c: Likewise.
56522         * string/test-strncasecmp-ifunc.c: Likewise.
56523         * string/test-strncat-ifunc.c: Likewise.
56524         * string/test-strncmp-ifunc.c: Likewise.
56525         * string/test-strncpy-ifunc.c: Likewise.
56526         * string/test-strnlen-ifunc.c: Likewise.
56527         * string/test-strpbrk-ifunc.c: Likewise.
56528         * string/test-strrchr-ifunc.c: Likewise.
56529         * string/test-strspn-ifunc.c: Likewise.
56530         * string/test-strstr-ifunc.c: Likewise.
56531
56532         * debug/Makefile (tests-ifunc): New variable.
56533         (tests): Add $(tests-ifunc).
56534         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56535         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56536         * debug/test-stpcpy_chk-ifunc.c: New file.
56537         * debug/test-strcpy_chk-ifunc.c: Likewise.
56538
56539 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56540
56541         [BZ #13601]
56542         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56543         header is not read in.
56544
56545 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56546
56547         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56548         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56549         directly.  Pass built executable to script as
56550         $(built-program-cmd).
56551         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56552         $testprogram without using LD_LIBRARY_PATH and $ldso.
56553
56554         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56555         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56556         $(rtld-installed-name).
56557         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56558         (rtld_installed_name): Likewise.
56559         (library_path): Likewise.
56560         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56561         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56562         $(run-program-prefix) to tst-tables.sh.
56563         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56564         it to run tst-table-from and tst-table-to.
56565         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56566         Pass it to tst-table.sh.
56567         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56568         $(run-program-prefix) to tst-gettext.sh.
56569         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56570         tst-translit.sh.
56571         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56572         tst-gettext2.sh.
56573         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56574         to run tst-gettext.
56575         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56576         to run tst-gettext2.
56577         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56578         to run tst-translit.
56579         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56580         $(run-program-prefix) to tst-mtrace.sh.
56581         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56582         to run tst-mtrace.
56583         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56584         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56585         $(rtld-installed-name).
56586         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56587         (rtld_installed_name): Likewise.
56588         (run_program_prefix): New variable.  Use it to run wordexp-test.
56589
56590         * Makeconfig (ARCH): Remove all definitions.
56591         (machine): Likewise.
56592         [ARCH]: Remove conditional code.
56593         [!objdir]: Give error.
56594         [!objdir] (objpfx): Remove.
56595         [!objdir] (common-objpfx): Likewise.
56596         [!objdir] (common-objdir): Likewise.
56597         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56598         AC_CONFIG_FILES call.
56599         * configure: Regenerated.
56600
56601         [BZ #13888]
56602         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56603         or TMPDIR.
56604         (testout): Likewise.
56605
56606         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56607         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56608         $(rtld-installed-name).
56609         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56610         (rtld_installed_name): Likwise.
56611         (runit): Remove function.
56612         (run_getconf): New variable,  Use it for running getconf binary.
56613
56614 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56615
56616         [BZ #14716]
56617         * string/test-memmem.c (check_result): New function.
56618         (do_one_test): Use it.
56619         (check1): New function.
56620         (test_main): Use it.
56621
56622 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56623
56624         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56625
56626 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56627
56628         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56629         (_G_LSEEK64): Likewise.
56630         (_G_MMAP64): Likewise.
56631         (_G_FSTAT64): Likewise.
56632         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56633         (_G_LSEEK64): Likewise.
56634         (_G_MMAP64): Likewise.
56635         (_G_FSTAT64): Likewise.
56636         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56637         unconditional.  Call __mmap64 directly.
56638         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56639         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56640         __lseek64 directly.
56641         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56642         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56643         __mmap64 directly.
56644         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56645         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56646         __lseek64 directly.
56647         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56648         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56649         __lseek64 directly.
56650         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56651         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56652         __lseek64 directly.
56653         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56654         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56655         __fxstat64 directly.
56656         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56657         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56658         unconditional.
56659         (freopen64) [!_G_OPEN64]: Remove conditional code.
56660         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56661         unconditional.
56662         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56663         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56664         unconditional.
56665         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56666         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56667         unconditional.
56668         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56669         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56670         unconditional.
56671         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56672         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56673         unconditional.
56674         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56675         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56676         unconditional.
56677         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56678         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56679         unconditional.
56680         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56681
56682 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56683
56684         [BZ #12140]
56685         * manual/memory.texi (Malloc Tunable Parameters): Add note
56686         about free list pointers overwriting some perturb bytes.
56687         Wording suggested by Roland McGrath.
56688
56689 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56690
56691         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56692         (lgamma_test): Likewise.
56693         (tgamma_test): Likewise.
56694
56695 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56696
56697         [BZ #14700]
56698         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56699         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56700
56701 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56702
56703         * NEWS: Mention BZ #14716.
56704         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56705         when removing AVAILABLE1_USES_J macro.
56706
56707 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56708
56709         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56710         (__bswap_64): __uint64_t for unsigned 64-bit int.
56711
56712 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56713
56714         * include/string.h (memmem): Declare libc hidden alias.
56715         * string/memmem.c (memmem): Define libc hidden alias.
56716         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56717         __read, __close instead of open, read, close.
56718
56719 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56720
56721         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56722         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56723         global and hidden.
56724         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56725         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56726         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56727         Likewise.
56728         (__rawmemchr_sse2): Likewise.
56729         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56730         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56731         (__strchr_sse2): Likewise.
56732         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56733         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56734         (__strcasecmp_sse2): Likewise.
56735         (__strncasecmp_sse2): Likewise.
56736         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56737         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56738         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56739         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56740         (__strrchr_sse2): Likewise.
56741         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56742         ifunc-impl-list.c.
56743         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56744         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56745         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56746         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56747         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56748         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56749         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56750         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56751         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56752         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56753         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56754         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56755         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56756         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56757         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56758         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56759         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56760         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56761         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56762         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56763         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56764         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56765         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56766         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56767         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56768         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56769         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56770         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56771         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56772         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56773
56774         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56775         global and hidden.
56776         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56777         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56778         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56779         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56780         Likewise.
56781         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56782         Likewise.
56783         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56784         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56785         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56786         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56787         ifunc-impl-list.c.
56788         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56789         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56790         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56791         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56792         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56793         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56794         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56795         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56796         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56797         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56798         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56799         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56800         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56801         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56802         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56803         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56804         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56805         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56806         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56807         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56808         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56809         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56810         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56811         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56812         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56813         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56814         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56815         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56816         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56817         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56818         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56819         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56820         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56821         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56822         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56823         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56824         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56825         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56826         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56827         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56828         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56829
56830         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56831         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56832         * include/ifunc-impl-list.h: New file.
56833         * misc/ifunc-impl-list.c: Likewise.
56834         * misc/Makefile (routines): Add ifunc-impl-list.
56835         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56836         * string/test-string.h: Include <ifunc-impl-list.h>.
56837         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56838         TEST_NAME]: New variables.
56839         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56840         are defined.
56841         (test_init): Call __libc_ifunc_impl_list to initialize
56842         func_list if TEST_IFUNC and TEST_NAME are defined.
56843
56844         * string/Makefile (strop-tests): Add bcopy and bzero.
56845         * string/test-bcopy.c: New file.
56846         * string/test-bzero.c: Likewise.
56847         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56848         defined.
56849         * string/test-memset.c: Support bzero test if TEST_BZERO is
56850         defined.
56851         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56852         __libc_memmove.
56853         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56854         __libc_memset.
56855         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56856         of memset.
56857
56858 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56859
56860         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56861         * configure: Regenerated.
56862
56863         * Makeconfig (+link-static-before-libc): Don't include
56864         $(link-static-libc).
56865
56866         * libio/libio.h (_IO_pos_t): Remove.
56867
56868 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56869
56870         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56871         McGrath.
56872
56873 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56874
56875         * crypt/crypt-entry.c: Include fips-private.h.
56876         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56877         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56878         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56879         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56880
56881 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56882
56883         * crypt/crypt-private.h: Include stdbool.h.
56884         (_ufc_setup_salt_r): Return bool.
56885         * crypt/crypt-entry.c: Include errno.h.
56886         (__crypt_r): Return NULL with EINVAL for bad salt.
56887         * crypt/crypt_util.c (bad_for_salt): New.
56888         (_ufc_setup_salt_r): Check that salt is long enough and within
56889         the specified alphabet.
56890         * crypt/badsalttest.c: New file.
56891         * crypt/Makefile (tests): Add it.
56892         ($(objpfx)badsalttest): New.
56893
56894 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56895
56896         * NEWS: Add entry for BZ #14602.
56897
56898 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56899
56900         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56901         type-generic.
56902         * math/libm-test.inc: Update comment listing what functions and
56903         macros are tested.
56904         (isgreater_test): New function.
56905         (isgreaterequal_test): Likewise.
56906         (isless_test): Likewise.
56907         (islessequal_test): Likewise.
56908         (islessgreater_test): Likewise.
56909         (isunordered_test): Likewise.
56910         (main): Call the new functions.
56911
56912 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56913
56914         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56915         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56916         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56917         * sysdeps/i386/configure: Regenerated.
56918         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56919         * sysdeps/mach/configure: Regenerated.
56920         * sysdeps/mach/hurd/configure: Regenerated.
56921         * sysdeps/powerpc/configure: Regenerated.
56922         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56923         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56924         * sysdeps/s390/s390-32/configure: Regenerated.
56925         * sysdeps/s390/s390-64/configure: Regenerated.
56926         * sysdeps/sh/configure: Regenerated.
56927         * sysdeps/sparc/configure: Regenerated.
56928         * sysdeps/unix/sysv/linux/configure: Regenerated.
56929         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56930         * sysdeps/x86_64/configure: Regenerated.
56931
56932         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56933         defined.  Don't check if MAP is NULL.
56934
56935 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56936
56937         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56938         (_G_stat64): Likewise.
56939         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56940         (_G_stat64): Likewise.
56941         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56942         instead of struct _G_stat64.
56943         * libio/fileops.c (mmap_remap_check): Likewise.
56944         (decide_maybe_mmap): Likewise.
56945         (_IO_new_file_seekoff): Likewise.
56946         (_IO_file_stat): Likewise.
56947         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56948         _G_off64_t.
56949         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56950         instead of struct _G_stat64.
56951         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56952
56953 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56954
56955         [BZ #14602]
56956         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56957         Replace with ...
56958         (CHECK_EOL): New macro.
56959         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56960         CHECK_EOL.
56961         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56962         Replace with CHECK_EOL.
56963         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56964         Replace with CHECK_EOL.
56965
56966 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56967
56968         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56969         type-generic.
56970         * math/libm-test.inc: Update comment listing what functions and
56971         macros are tested.
56972         (finite_test): New function.
56973         (isinf_test): Likewise.
56974         (isnan_test): Likewise.
56975         (fpclassify_test): Test subnormal input.
56976         (isfinite_test): Likewise.
56977         (isnormal_test): Likewise.
56978         (main): Call the new functions.
56979
56980 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56981
56982         [BZ #14660]
56983         * Makerules (%.dynsym): Force C locale when running
56984         $(OBJDUMP) --dynamic-syms.
56985
56986 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56987
56988         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56989         <stdint.h>.
56990
56991 2012-10-06  David S. Miller  <davem@davemloft.net>
56992
56993         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56994         upper 32-bits of the length value in %o2 since we use branch-on-register
56995         tests which consider the entire 64-bit register.
56996
56997 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56998
56999         * string/test-strstr.c (check2): Add a test for page boundary.
57000
57001 2012-10-05  David S. Miller  <davem@davemloft.net>
57002
57003         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57004         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57005         file.
57006         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57007         sysdep_routines.
57008         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57009         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57010         and bzero when HWCAP_SPARC_CRYPTO is present.
57011
57012 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57013
57014         [BZ #14602]
57015         * string/test-strstr.c (check2): New function.
57016         (test_main): Call check2.
57017
57018         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57019         and bug-strchr1.
57020         * string/bug-strcasestr1.c (do_test): Moved to ...
57021         * string/test-strcasestr.c (check1): Here.  New function.
57022         (do_one_test): Break out result checking code into ...
57023         (check_result): This.  New function.
57024         (do_one_test): Call check_result.
57025         (test_main): Call check1.
57026         * string/bug-strchr1.c (do_test): Moved to ...
57027         * string/test-strchr.c (check1): Here.  New function.
57028         (do_one_test): Break out result checking code into ...
57029         (check_result): This.  New function.
57030         (do_one_test): Call check_result.
57031         (test_main): Call check1.
57032         * string/bug-strstr1.c (main): Moved to ...
57033         * string/test-strstr.c (check1): Here.  New function.
57034         (do_one_test): Break out result checking code into ...
57035         (check_result): This.  New function.
57036         (do_one_test): Call check_result.
57037         (test_main): Call check1.
57038         * string/bug-strcasestr1.c: Removed.
57039         * string/bug-strchr1.c: Likewise.
57040         * string/bug-strstr1.c: Likewise.
57041
57042         * elf/Makefile (dl-routines): Add hwcaps.
57043         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57044         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57045         (_dl_important_hwcaps): Moved to ...
57046         * elf/dl-hwcaps.c: Here.  New file.
57047         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57048
57049         [BZ #14557]
57050         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57051         if IS_IN_rtld isn't defined.
57052
57053         * elf/dl-support.c (_dl_sysinfo_map): New.
57054         Include "get-dynamic-info.h" and "setup-vdso.h".
57055         (_dl_non_dynamic_init): Call setup_vdso.
57056         * elf/dynamic-link.h: Don't include <assert.h>.
57057         (elf_get_dynamic_info): Moved to ...
57058         * elf/get-dynamic-info.h: Here.  New file.
57059         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57060         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57061         * elf/setup-vdso.h: Here.  New file.
57062         * elf/rtld.c: Include "setup-vdso.h".
57063         (dl_main): Call setup_vdso.
57064
57065 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57066
57067         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57068         creal in comment listing functions tested.  List finite, isinf,
57069         isnan, isless, islessequal, isgreater, isgreaterequal,
57070         islessgreater, isunordered, lgamma_r and pow10 as functions and
57071         macros not tested.  Mention which functions not tested are aliases
57072         for other functions.  Fix typo.  Note that signs of NaNs are not
57073         tested.
57074
57075         * scripts/config.guess: Update from config.git.
57076         * scripts/config.sub: Likewise.
57077
57078 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57079
57080         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57081         * misc/madvise.c (madvise): Renamed to __madvise.
57082         Make madvise a weak alias.
57083         * include/sys/mman.h: Declare __madvise.
57084         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57085         * sysdeps/unix/syscalls.list
57086         (madvise): Make __madvise the strong name, and madvise a weak alias.
57087         * sysdeps/unix/sysv/linux/syscalls.list
57088         (madvise, mmap): Remove redundant entries.
57089         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57090         * malloc/malloc.c (mtrim): Likewise.
57091         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57092
57093 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57094
57095         * sysdeps/mach/hurd/dl-cache.c: File removed.
57096         * config.h.in (USE_LDCONFIG): New #undef.
57097         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57098         * configure: Regenerated.
57099         * elf/Makefile (dl-routines): Add dl-cache only under
57100         [$(use-ldconfig) = yes].
57101         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57102         cache on [USE_LDCONFIG].
57103         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57104         [USE_LDCONFIG].
57105         * elf/rtld.c (dl_main): Likewise.
57106
57107 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57108
57109         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57110         _SC_LEVEL4_CACHE_LINESIZE.
57111
57112 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57113
57114         * sysdeps/unix/bsd/confstr.h: File removed.
57115
57116 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57117
57118         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57119         sys/sdt-config.h.
57120
57121 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57122
57123         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57124         Make 'mapoff' field ElfW(Off) rather than off_t.
57125
57126 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57127
57128         * nscd/Makefile: Remove nscd-cflags and all its users.
57129         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57130         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57131
57132         [BZ #10631]
57133         * malloc.c (malloc_printerr): Clarify error message.
57134
57135 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57136
57137         [BZ #14648]
57138         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57139         Set bit_FMA_Usable if FMA is supported.
57140         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57141         macro.
57142         (bit_FMA4_Usable): Updated.
57143         (index_FMA_Usable): New macro.
57144         (CPUID_FMA): Likewise.
57145         (HAS_FMA): Defined with bit_FMA_Usable.
57146
57147 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57148
57149         * bits/types.h (__swblk_t): Type removed.
57150         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57151         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57152         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57153         (__SWBLK_T_TYPE): Likewise.
57154         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57155         (__SWBLK_T_TYPE): Likewise.
57156         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57157         (__SWBLK_T_TYPE): Likewise.
57158         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57159         (__SWBLK_T_TYPE): Likewise.
57160
57161 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57162             Honza Horak <hhorak@redhat.com>
57163
57164         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57165         (xdr_mapname): Use YPMAXMAP as maxsize.
57166         (xdr_peername): Use YPMAXPEER as maxsize.
57167         (xdr_keydat): Use YPAXRECORD as maxsize.
57168         (xdr_valdat): Use YPMAXRECORD as maxsize.
57169
57170 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57171
57172         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57173
57174         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57175         * csu/init-first.c: ... here.
57176         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57177         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57178         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57179         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57180         * sysdeps/i386/init-first.c: File removed.
57181         * sysdeps/sh/init-first.c: File removed.
57182
57183 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57184
57185         [BZ #14645]
57186         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57187         if x * y might underflow to zero and z is zero.
57188         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57189         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57190         * math/libm-test.inc (min_subnorm_value): New variable.
57191         (fma_test): Add more tests.
57192         (fma_test_towardzero): Likewise.
57193         (fma_test_downward): Likewise.
57194         (fma_test_upward): Likewise.
57195         (initialize): Set min_subnorm_value.
57196
57197 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57198
57199         [BZ #14638]
57200         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57201         0 + 0.
57202         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57203         mode for addition resulting in exact zero.
57204         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57205         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57206         exact 0 + 0.
57207         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57208         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57209         * math/libm-test.inc (fma_test): Add more tests.
57210         (fma_test_towardzero): New function.
57211         (fma_test_downward): Likewise.
57212         (fma_test_upward): Likewise.
57213         (main): Call the new functions.
57214
57215 2012-09-28  David S. Miller  <davem@davemloft.net>
57216
57217         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57218
57219 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57220
57221         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57222         instead of SIGALRM.
57223
57224         * sysdeps/gnu/_G_config.h: Moved to ...
57225         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57226         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57227         * sysdeps/generic/_G_config.h: ... here.
57228
57229         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57230
57231         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57232
57233         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57234         Conditionalize target on [libnss_test1.so-version].
57235
57236         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57237
57238         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57239         (elfobjdir): Move out of conditionals.
57240
57241         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57242         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57243         (__nss_lookup_function): Conditionalize label remove_from_tree on
57244         [!DO_STATIC_NSS || SHARED], matching its only use.
57245
57246 2012-09-28  David S. Miller  <davem@davemloft.net>
57247
57248         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57249         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57250         file.
57251         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57252         sysdep_routines.
57253         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57254         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57255         when HWCAP_SPARC_CRYPTO is present.
57256
57257 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57258
57259         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57260
57261 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57262
57263         [BZ #6530]
57264         * stdio-common/vfprintf.c (process_string_arg): Revert
57265         2000-07-22 change.
57266
57267 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57268
57269         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57270         for testcase.
57271         * stdio-common/tst-sprintf.c: Include <locale.h>
57272         (main): Test sprintf's handling of incomplete multibyte
57273         characters.
57274
57275 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57276
57277         * elf/dl-runtime.c (VERSYMIDX): Removed.
57278         * elf/dl-version.c (VERSYMIDX): Likewise.
57279         * elf/do-rel.h (VERSYMIDX): Likewise.
57280         (VALIDX): Likewise.
57281         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57282         * elf/rtld.c (VALIDX): Likewise.
57283         (ADDRIDX): Likewise.
57284         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57285         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57286         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57287         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57288         (VALIDX): Likewise.
57289         (ADDRIDX): Likewise.
57290
57291 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57292
57293         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57294
57295 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57296
57297         [BZ #11438]
57298         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57299         to global scope.
57300         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57301         addresses are in the same scope as 192.0.2/24.
57302         * posix/gai.conf: Document new scope table defaults.
57303
57304 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57305
57306         [BZ #5298]
57307         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57308         for ftell.  Compute offsets from write pointers instead.
57309         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57310
57311 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57312
57313         [BZ #14543]
57314         * libio/Makefile (tests): New test case tst-fseek.
57315         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57316         combination works in wide mode.
57317         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57318         state when the external buffer state changes.
57319
57320 2012-09-27  David S. Miller  <davem@davemloft.net>
57321
57322         [BZ #14376]
57323         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57324         pass reloc->r_addend in as the 'high' argument to
57325         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57326
57327         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57328
57329 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57330
57331         * rt/tst-aio2.c: Include <pthread.h>.
57332         * rt/tst-aio3.c: Likewise.
57333
57334 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57335
57336         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57337
57338 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57339
57340         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57341         contents on [SHARED].
57342
57343 2012-09-26  Marek Polacek  <polacek@redhat.com>
57344
57345         [BZ #14530]
57346         [BZ #13741]
57347         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57348         for C++ and GCC <4.3 as well as for non GCC compilers.
57349
57350 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57351
57352         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57353
57354 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57355
57356         * Makefile.in (all, install): Declare with .PHONY.
57357         Reported by Michael Hope <michael.hope@linaro.org>.
57358
57359 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57360
57361         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57362         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57363         system header.
57364         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57365         Likewise.
57366         (sydep_routines): Add the new and the internal functions.
57367         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57368         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57370         (GLIBC_2.17): Add the new function.
57371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57372         (GLIBC_2.17): Likewise.
57373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57374         (GLIBC_2.17): Likewise.
57375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57376         (GLIBC_2.17): Likewise.
57377         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57378
57379 2012-09-25  Alan Modra  <amodra@gmail.com>
57380
57381         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57382         Add release barrier before setting once_control to say
57383         initialisation is done.  Add hints on lwarx.  Use macro in
57384         place of isync.
57385         (clear_once_control): Add release barrier.
57386
57387 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57388
57389         [BZ #13629]
57390         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57391         specially.
57392         * math/s_clog10.c (__clog10): Likewise.
57393         * math/s_clog10f.c (__clog10f): Likewise.
57394         * math/s_clog10l.c (__clog10l): Likewise.
57395         * math/s_clogf.c (__clogf): Likewise.
57396         * math/s_clogl.c (__clogl): Likewise.
57397         * math/Makefile (libm-calls): Add x2y2m1.
57398         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57399         (__x2y2m1): Likewise.
57400         (__x2y2m1l): Likewise.
57401         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57402         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57403         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57404         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57405         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57406         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57407         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57408         * sysdeps/i386/fpu/libm-test-ulps: Update.
57409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57410
57411         [BZ #14621]
57412         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57413         int as type of variable DEPTH.
57414         (glob): Use size_t instead of int as type of variables NEWCOUNT
57415         and OLD_PATHC.
57416
57417 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57418
57419         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57420         Add s_sincosf-sse2.
57421         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57422         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57423         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57424         macros for using routine as __sincosf_ia32.
57425         Use macro for function declaration and weak_alias.
57426         * sysdeps/i386/fpu/libm-test-ulps: Update.
57427
57428         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57429         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57430
57431         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57432         subnormal argument.
57433         * math/s_cexpf.c (__cexpf): Likewise.
57434         * math/s_csinf.c (__csinf): Likewise.
57435         * math/s_csinhf.c (__csinhf): Likewise.
57436         * math/s_ctanf.c (__ctanf): Likewise.
57437         * math/s_ctanhf.c (__ctanhf): Likewise.
57438         * math/s_ccosh.c (__ccoshf): Likewise.
57439         * math/s_cexp.c (__cexpl): Likewise.
57440         * math/s_csin.c (__csin): Likewise.
57441         * math/s_csinh.c (__csinh): Likewise.
57442         * math/s_ctan.c (__ctan): Likewise.
57443         * math/s_ctanh.c (ctanh): Likewise.
57444         * math/s_ccoshl.c (__ccoshl): Likewise.
57445         * math/s_cexpl.c (__cexpl): Likewise.
57446         * math/s_csinl.c (__csinl): Likewise.
57447         * math/s_csinhl.c (__csinhl): Likewise.
57448         * math/s_ctanl.c (__ctanl): Likewise.
57449         * math/s_ctanhl.c (__ctanhl): Likewise.
57450
57451 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57452
57453         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57454         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57455         (_IO_off_t): Define to __off_t, not _G_off_t.
57456         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57457         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57458         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57459         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57460         type of __dummy and __dummy2 fields.
57461         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57462         (_G_ssize_t): Likewise.
57463         (_G_off_t): Likewise.
57464         (_G_pid_t): Likewise.
57465         (_G_uid_t): Likewise.
57466         (_G_wchar_t): Likewise.
57467         (_G_wint_t): Likewise.
57468         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57469         (_G_ssize_t): Likewise.
57470         (_G_off_t): Likewise.
57471         (_G_pid_t): Likewise.
57472         (_G_uid_t): Likewise.
57473         (_G_wchar_t): Likewise.
57474         (_G_wint_t): Likewise.
57475         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57476         (_G_ssize_t): Likewise.
57477         (_G_off_t): Likewise.
57478         (_G_pid_t): Likewise.
57479         (_G_uid_t): Likewise.
57480         (_G_wchar_t): Likewise.
57481         (_G_wint_t): Likewise.
57482
57483 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57484
57485         * malloc/arena.c: Include malloc-sysdep.h.
57486         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57487         is sufficient to shrink the heap or an unmap is needed.
57488         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57489         new function check_may_shrink_heap.
57490         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57491         new function check_may_shrink_heap.
57492
57493 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57494
57495         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57496         comments.
57497
57498 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57499
57500         * catgets/test-gencat.sh: Add "set -e".
57501         * elf/tst-pathopt.sh: Likewise.
57502         * grp/tst_fgetgrent.sh: Likewise.
57503         * iconvdata/run-iconv-test.sh: Likewise.
57504         * intl/tst-gettext.sh: Likewise.
57505         * intl/tst-gettext2.sh: Likewise.
57506         * intl/tst-gettext4.sh: Likewise.
57507         * intl/tst-gettext6.sh: Likewise.
57508         * intl/tst-translit.sh: Likewise.
57509         * io/ftwtest-sh: Likewise.
57510         * libio/test-freopen.sh: Likewise.
57511         * malloc/tst-mtrace.sh: Likewise.
57512         * posix/globtest.sh: Likewise.
57513         * posix/tst-getconf.sh: Likewise.
57514         * posix/wordexp-tst.sh: Likewise.
57515         * stdio-common/tst-printf.sh: Likewise.
57516         * stdio-common/tst-unbputc.sh: Likewise.
57517         * stdlib/tst-fmtmsg.sh: Likewise.
57518         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57519         * catgets/Makefile: Do not specify -e option when running
57520         testsuite shell scripts.
57521         * elf/Makefile: Likewise.
57522         * grp/Makefile: Likewise.
57523         * iconvdata/Makefile: Likewise.
57524         * intl/Makefile: Likewise.
57525         * io/Makefile: Likewise.
57526         * libio/Makefile: Likewise.
57527         * malloc/Makefile: Likewise.
57528         * posix/Makefile: Likewise.
57529         * stdio-common/Makefile: Likewise.
57530         * stdlib/Makefile: Likewise.
57531         * sysdeps/x86_64/Makefile: Likewise.
57532
57533         * io/ftwtest-sh: Add copyright header.
57534         * posix/globtest.sh: Likewise.
57535         * posix/tst-getconf.sh: Likewise.
57536         * posix/wordexp-tst.sh: Likewise.
57537         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57538
57539 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57540
57541         [BZ #13679]
57542         * Makeconfig (+link): Defined as $(+link-static) if
57543         $(build-shared) isn't yes.
57544         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57545         isn't yes.
57546         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57547
57548         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57549
57550         [BZ #14562]
57551         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57552         new chunk size with MALLOC_ALIGN_MASK.
57553
57554 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57555
57556         [BZ #5044]
57557         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57558         <rounding-mode.h>.
57559         (__printf_fphex): Determine rounding using get_rounding_mode and
57560         round_away.
57561         * stdio-common/tst-printf-round.c (struct hex_test): New
57562         structure.
57563         (hex_tests): New variable.
57564         (test_hex_in_one_mode): New function.
57565         (do_test): Also run tests for hex float output.
57566
57567 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57568
57569         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57570         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57571         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57572         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57573         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57574         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57575         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57576         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57577
57578 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57579
57580         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57581         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57582         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57583         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57584
57585 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57586
57587         [BZ #14579]
57588         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57589         mode only.
57590         * elf/tst-rtld-load-self.sh: New test.
57591         * elf/Makefile: Run it.
57592
57593 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57594
57595         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57596         (tst-writev-ENV): Remove.
57597         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57598
57599 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57600
57601         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57602
57603 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57604
57605         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57606         unconditional.
57607         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57608         Likewise.
57609         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57610         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57611         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57612         Likewise.
57613
57614 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57615
57616         [BZ #14587]
57617         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57618         * config.make.in (have-cpp-asm-debuginfo): Removed.
57619         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57620         * configure: Regenerated.
57621
57622 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57623
57624         [BZ #5044]
57625         * stdio-common/printf_fp.c: Include <stdbool.h> and
57626         <rounding-mode.h>.
57627         (___printf_fp): Determine rounding using get_rounding_mode and
57628         round_away.
57629         * stdio-common/tst-printf-round.c: New file.
57630         * stdio-common/Makefile (tests): Add tst-printf-round.
57631         (link-libm): New variable.
57632         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57633
57634 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57635
57636         [BZ #14576]
57637         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57638         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57639         Likewise.
57640         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57641         Likewise.
57642
57643 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57644
57645         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57646         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57647         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57648         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57649
57650 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57651
57652         [BZ #14518]
57653         * include/rounding-mode.h: New file.
57654         * sysdeps/generic/get-rounding-mode.h: Likewise.
57655         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57656         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57657         (MAX_VALUE): New macro.
57658         (MIN_VALUE): Likewise.
57659         (overflow_value): New function.
57660         (underflow_value): Likewise.
57661         (round_and_return): Use overflow_value and underflow_value to
57662         determine return values in overflow and underflow cases.  Use
57663         round_away to determine rounding depending on rounding mode.
57664         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57665         determine return values in overflow and underflow cases.
57666         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57667         (struct test_results): New structure.
57668         (struct test): Use struct test_results to store expected results
57669         for all rounding modes.
57670         (TEST): Include expected results for all rounding modes.
57671         (test_in_one_mode): New function.
57672         (do_test): Use test_in_one_mode to compute and check results.
57673         Check results for all rounding modes.
57674         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57675         $(link-libm).
57676
57677 2012-12-09  Allan McRae  <allan@archlinux.org>
57678
57679         * sysdeps/i386/fpu/libm-test-ulps: Update
57680
57681 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57682
57683         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57684         (_G_int32_t): Likewise.
57685         (_G_uint16_t): Likewise.
57686         (_G_uint32_t): Likewise.
57687         (_G_HAVE_BOOL): Likewise.
57688         (_G_HAVE_ATEXIT): Likewise.
57689         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57690         (_G_HAVE_IO_FILE_OPEN): Likewise.
57691         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57692         (_G_int32_t): Likewise.
57693         (_G_uint16_t): Likewise.
57694         (_G_uint32_t): Likewise.
57695         (_G_HAVE_BOOL): Likewise.
57696         (_G_HAVE_ATEXIT): Likewise.
57697         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57698         (_G_HAVE_IO_FILE_OPEN): Likewise.
57699         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57700         (_G_int32_t): Likewise.
57701         (_G_uint16_t): Likewise.
57702         (_G_uint32_t): Likewise.
57703         (_G_HAVE_BOOL): Likewise.
57704         (_G_HAVE_ATEXIT): Likewise.
57705         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57706         (_G_HAVE_IO_FILE_OPEN): Likewise.
57707
57708 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57709
57710         * csu/libc-tls.c: Update copyright years.
57711
57712 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57713
57714         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57715         [!_G_USING_THUNKS]: Remove conditional code.
57716         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57717         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57718
57719         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57720         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57721         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57722         (_G_VTABLE_LABEL_PREFIX): Likewise.
57723         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57724         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57725         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57726         (_G_VTABLE_LABEL_PREFIX): Likewise.
57727         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57728         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57729         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57730         (_G_VTABLE_LABEL_PREFIX): Likewise.
57731         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57732
57733 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57734
57735         * libio/Makefile: Include ../Makeconfig before tests.
57736         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57737         only if $(build-shared) is yes.
57738
57739         * iconv/gconv_db.c: Update copyright years.
57740
57741 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57742
57743         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57744         unwind info if defined PIC. Fix special cases description.
57745         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57746
57747         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57748         DP_HI_MASK entry.
57749         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57750
57751 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57752
57753         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57754
57755         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57756         is NULL.
57757
57758         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57759         (LDLIBS-tst-chk4): This.
57760         (LDFLAGS-tst-chk5): Renamed to ...
57761         (LDLIBS-tst-chk5): This.
57762         (LDFLAGS-tst-chk6): Renamed to ...
57763         (LDLIBS-tst-chk6): This.
57764         (LDFLAGS-tst-lfschk4): Renamed to ...
57765         (LDLIBS-tst-lfschk4): This.
57766         (LDFLAGS-tst-lfschk5): Renamed to ...
57767         (LDLIBS-tst-lfschk5): This.
57768         (LDFLAGS-tst-lfschk6): Renamed to ...
57769         (LDLIBS-tst-lfschk6): This.
57770
57771         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57772         on $(common-objpfx)soversions.mk.
57773
57774 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57775
57776         [BZ #10014]
57777         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57778         example host name.
57779
57780 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57781
57782         * malloc/arena.c (arena_get_retry): New function that gets
57783         another arena for the caller to try its request on.
57784         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57785         current arena cannot fulfill the request.
57786         (__libc_memalign): Likewise.
57787         (__libc_memalign): Likewise.
57788         (__libc_pvalloc): Likewise.
57789         (__libc_calloc): Likewise.
57790
57791 2012-09-05  John Tobey  <john.tobey@gmail.com>
57792
57793         [BZ #13542]
57794         * manual/arith.texi (Operations on Complex): Fix description
57795         of carg branch cut.
57796
57797 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57798
57799         [BZ #10014]
57800         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57801         host name.
57802
57803         [BZ #10038]
57804         * manual/memory.texi (Memory): Make order of menu items match
57805         order of sections.
57806
57807 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57808
57809         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57810         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57811         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57812
57813 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57814
57815         * csu/libc-tls.c (static_dtv): Renamed to ...
57816         (_dl_static_dtv): This.  Make it global.
57817         (_dl_initial_dtv): Removed.
57818         (__libc_setup_tls): Updated.
57819         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57820         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57821         DL_INITIAL_DTV.
57822
57823 2012-09-06  Petr Machata  <pmachata@redhat.com>
57824
57825         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57826         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57827         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57828         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57829
57830 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57831
57832         [BZ #14545]
57833         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57834         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57835         freeing dtv[-1].
57836
57837 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57838
57839         [BZ #14544]
57840         * Makeconfig (link-static-before-libc): Replace $(+prector)
57841         with $(+prectorT).
57842         (link-static-after-libc): Replace $(+postctor) with
57843         $(+postctorT).
57844         (link-bounded): Replace $(+prector)/$(+postctor) with
57845         $(+prectorT)/$(+postctorT).
57846         (+prectorT): New macro.
57847         (+postctorT): Likewise.
57848
57849 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57850
57851         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57852         (round_str): Handle values above the maximum for IBM long double
57853         as inexact.
57854         * stdlib/tst-strtod-round.c (tests): Regenerated.
57855
57856 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57857
57858         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57859         assembler flag.
57860         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57861         zarch_nohighgprs around the zarch optimized routines.
57862         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57863         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57864         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57865         for zarch.
57866
57867 2012-09-05  David S. Miller  <davem@davemloft.net>
57868
57869         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57870
57871         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57872         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57873         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57874         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57875         entries.
57876
57877 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57878
57879         * malloc/arena.c: Fold copyright years.
57880         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57881
57882 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57883
57884         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57885
57886 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57887
57888         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57889
57890 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57891
57892         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57893         change internal state upon failure.
57894
57895 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57896
57897         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57898         * malloc/memusage.c (mmap): Likewise.
57899         (mmap64, mremap): Likewise.  Adjust name in comment.
57900
57901 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57902
57903         * libio/fileops.c: Fix typos in comments.
57904         * libio/oldfileops.c: Likewise.
57905         * libio/wfileops.c: Likewise.
57906
57907 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57908
57909         [BZ #1349]
57910         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57911         (tst-malloc-usable-ENV): Set environment for test case.
57912         * malloc/hooks.c (malloc_check_get_size): New function to get
57913         requested size.
57914         * malloc/malloc.c (musable): Use malloc_check_get_size.
57915         * malloc/tst-malloc-usable.c: New test case.
57916
57917 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57918
57919         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57920
57921 2012-09-05  Allan McRae  <allan@archlinux.org>
57922
57923         [BZ #13966]
57924         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57925         determine header location.
57926         * configure: Regenerated.
57927
57928 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57929
57930         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57931         float format.
57932         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57933         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57934         format.
57935         (test): Regenerate.
57936
57937 2012-09-04  David S. Miller  <davem@davemloft.net>
57938
57939         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57940         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57941         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57942
57943 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57944
57945         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57946         failures.
57947
57948         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57949
57950 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57951
57952         [BZ #9914]
57953         * libio/iogetdelim.c: Include <limits.h>.
57954         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57955         + len + 1 would overflow.
57956
57957 2012-09-03  Andreas Jaeger  <aj@suse.de>
57958
57959         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57960         * sysdeps/i386/fpu/libm-test-ulps: Update.
57961
57962 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57963
57964         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57965         Add s_sinf-sse2, s_conf-sse2.
57966
57967         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57968         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57969         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57970         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57971
57972         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57973         for using routine as __sinf_ia32.
57974         Use macro for function declaration and weak_alias.
57975         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57976         for using routine as __cosf_ia32.
57977         Use macro for function declaration and weak_alias.
57978
57979         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57980         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57981
57982         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57983         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57984         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57985
57986         * math/libm-test.inc (cos_test): Add more test cases.
57987         (sin_test): Likewise.
57988         (sincos_test): Likewise.
57989
57990 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57991
57992         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57993         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57994         hidden.
57995         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57996
57997 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57998
57999         [BZ #14538]
58000         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58001         first element of the GOT.
58002         (elf_machine_load_address): Return the difference between
58003         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58004
58005 2012-09-01  Allan McRae  <allan@archlinux.org>
58006
58007         [BZ #13412]
58008         * configure.in (AWK): Require gawk version 3.0 or later.
58009         * configure: Regenerated.
58010
58011 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58012
58013         * sysdeps/unix/sysv/linux/kernel-features.h
58014         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58015         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58016         [__NR_clock_getres]: Make code unconditional.
58017         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58018         (clock_getcpuclockid): Remove code left unreachable by removal of
58019         conditionals.
58020         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58021         code unconditional.
58022         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58023         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58024         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58025         Make code unconditional.
58026         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58027         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58028         * sysdeps/unix/sysv/linux/clock_settime.c
58029         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58030         conditional code.
58031         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58032         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58033
58034 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58035
58036         [BZ #14476]
58037         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58038         scripts/test-installation.pl.
58039
58040         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58041         and $ld_so_version if it is set.
58042
58043 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58044
58045         [BZ #14516]
58046         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58047         failure if reading from procfs failed.
58048         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58049
58050 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58051
58052         * sysdeps/unix/sysv/linux/kernel-features.h
58053         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58054         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58055         Remove conditional code.
58056         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58057         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58058         Remove conditional code.
58059         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58060         * sysdeps/unix/sysv/linux/i386/fxstat.c
58061         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58062         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58063         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58064         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58065         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58066         * sysdeps/unix/sysv/linux/i386/lxstat.c
58067         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58068         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58069         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58070         Remove conditional code.
58071         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58072         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58073         Remove conditional code.
58074         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58075         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58076         <kernel-features.h>.
58077         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58078         Remove.
58079         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58080         Remove conditional code.
58081         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58082         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58083         Remove conditional.
58084
58085 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58086
58087         [BZ #5400]
58088         * NEWS: Add fixed bug number.
58089
58090 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58091
58092         [BZ #14519]
58093         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58094         underflowing exponent in case of negative sign.
58095         * stdlib/tst-strtod-round-data: Add more tests.
58096         * stdlib/tst-strtod-round.c (tests): Regenerated.
58097
58098         [BZ #3479]
58099         * stdlib/strtod_l.c (NDIG): Remove.
58100         (HEXNDIG): Likewise.
58101         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58102         smallest representable value.
58103         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58104         lie within an exact representation of 1/2 ulp of the result.
58105         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58106         unconditionally.
58107         (TENS_P9_IDX): Define unconditionally.
58108         (TENS_P9_SIZE): Likewise.
58109         (TENS_P10_IDX): Likewise.
58110         (TENS_P10_SIZE): Likewise.
58111         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58112         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58113         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58114         entries for 10^2^13 and 10^2^14.
58115         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58116         (TENS_P13_IDX): Define.
58117         (TENS_P13_SIZE): Likewise.
58118         (TENS_P14_IDX): Likewise.
58119         (TENS_P14_SIZE): Likewise.
58120         (_fpioconst_pow10): Change array size to
58121         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58122         unconditional.
58123         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58124         1024]: Add entries for 10^2^13 and 10^2^14.
58125         [LAST_POW10 > _LAST_POW10]: Remove #error.
58126         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58127         (_fpioconst_pow10): Change array size to
58128         FPIOCONST_POW10_ARRAY_SIZE.
58129         * stdlib/gen-fpioconst.c: New file.
58130         * stdlib/gen-tst-strtod-round.c: Likewise.
58131         * stdlib/tst-strtod-round-data: Likewise.
58132         * stdlib/tst-strtod-round.c: Likewise.
58133         * stdlib/Makefile (tests): Add tst-strtod-round.
58134
58135         [BZ #14459]
58136         * stdlib/strtod_l.c: Include <stdint.h>.
58137         (NDEBUG): Do not define.
58138         (round_and_return): Change EXPONENT parameter to type intmax_t.
58139         Rearrange calculations to avoid internal overflow possibilities.
58140         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58141         Rearrange calculations to avoid internal overflow possibilities.
58142         Assert that number fits inside MPNSIZE limbs.
58143         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58144         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58145         calculations and add assertions to avoid internal overflow
58146         possibilities.  Add casts to avoid signed/unsigned operations.
58147         * stdlib/tst-strtod-overflow.c: New file.
58148         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58149
58150 2012-08-25  Marek Polacek  <polacek@redhat.com>
58151
58152         * time/time.h: Fix some typos in comments.
58153
58154 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58155
58156         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58157         * posix/tst-rfc3484-2.c: Likewise.
58158         * posix/tst-rfc3484-3.c: Likewise.
58159
58160 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58161
58162         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58163         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58164
58165 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58166
58167         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58168         #include of fxstatat64.c.
58169
58170 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58171
58172         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58173         * shadow/getspent_r.c: Likewise.
58174         * shadow/getspnam.c: Likewise.
58175         * shadow/getspnam_r.c: Likewise.
58176         * gshadow/getsgent.c: Likewise.
58177         * gshadow/getsgent_r.c: Likewise.
58178         * gshadow/getsgnam.c: Likewise.
58179         * gshadow/getsgnam_r.c: Likewise.
58180         * inet/getnetbyad.c: Likewise.
58181         * inet/getnetbyad_r.c: Likewise.
58182         * inet/getnetbynm.c: Likewise.
58183         * inet/getnetbynm_r.c: Likewise.
58184         * inet/getnetent.c: Likewise.
58185         * inet/getnetent_r.c: Likewise.
58186         * inet/getproto.c: Likewise.
58187         * inet/getproto_r.c: Likewise.
58188         * inet/getprtent.c: Likewise.
58189         * inet/getprtent_r.c: Likewise.
58190         * inet/getprtname.c: Likewise.
58191         * inet/getprtname_r.c: Likewise.
58192         * inet/getrpcbyname.c: Likewise.
58193         * inet/getrpcbyname_r.c: Likewise.
58194         * inet/getrpcbynumber.c: Likewise.
58195         * inet/getrpcbynumber_r.c: Likewise.
58196         * inet/getrpcent.c: Likewise.
58197         * inet/getrpcent_r.c: Likewise.
58198         * inet/getaliasent.c: Likewise.
58199         * inet/getaliasent_r.c: Likewise.
58200         * inet/getaliasname.c: Likewise.
58201         * inet/getaliasname_r.c: Likewise.
58202         * nscd/getgrgid_r.c: Likewise.
58203         * nscd/getgrnam_r.c: Likewise.
58204         * nscd/gethstbyad_r.c: Likewise.
58205         * nscd/gethstbynm3_r.c: Likewise.
58206         * nscd/getpwnam_r.c: Likewise.
58207         * nscd/getpwuid_r.c: Likewise.
58208         * nscd/getsrvbynm_r.c: Likewise.
58209         * nscd/getsrvbypt_r.c: Likewise.
58210         * nscd/gai.c: Likewise.
58211
58212         * configure.in (build_nscd): New substituted variable, set
58213         by --disable-build-nscd and defaults to $use_nscd.
58214         * configure: Regenerated.
58215         * config.make.in (build-nscd): New substituted variable.
58216         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58217         Change conditional to require [$(build-nscd) = yes] as well.
58218         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58219
58220         [BZ# 13696]
58221         * configure.in (use_nscd): New substituted variable, set by
58222         --disable-nscd.  If enabled, define USE_NSCD.
58223         * configure: Regenerated.
58224         * config.h.in: Add USE_NSCD.
58225         * config.make.in (use-nscd): New substituted variable.
58226         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58227         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58228         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58229         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58230         (CFLAGS-getgrnam_r.c): Likewise.
58231         (CFLAGS-initgroups.c): Likewise.
58232         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58233         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58234         Variables removed.
58235         * inet/getnetgrent_r.c
58236         (nscd_setnetgrent): New function, broken out of ...
58237         (setnetgrent): ... here.  Call it.
58238         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58239         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58240         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58241         * nscd/Makefile (routines, aux): Move definitions after include of
58242         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58243         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58244         Conditionalize on [USE_NSCD].
58245         (is_nscd, nscd_init_cb): Likewise.
58246         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58247         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58248         * nss/nss_db/db-init.c: Likewise.
58249         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58250         [USE_NSCD].
58251         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58252         (make_request): Use it.
58253         (cache_valid_p): New function.
58254         (__check_pf): Use it.
58255         * NEWS: Add item for --disable-nscd.
58256
58257 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58258
58259         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58260         to support sed >= 4.2.1-20-ga9bf076.
58261         * configure: Regenerated.
58262
58263 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58264
58265         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58266         Conditionalize whole body on [IREL].
58267
58268 2012-08-22  Jeff Law <law@redhat.com>
58269
58270         [BZ #14505]
58271         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58272         if the family is PF_UNSPEC.
58273
58274 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58275
58276         * Makerules (lib-version): Rename from V.
58277         (install-lib-nosubdir): Change V to lib-version.
58278
58279 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58280
58281         [BZ #14252]
58282         * powerpc32/power6/wcschr.c: New file.
58283         * powerpc32/power6/wcscpy.c: New file.
58284         * powerpc32/power6/wcsrchr.c: New file.
58285         * powerpc64/power6/wcschr.c: New file.
58286         * powerpc64/power6/wcscpy.c: New file.
58287         * powerpc64/power6/wcsrchr.c: New file.
58288
58289 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58290
58291         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58292         (two_way_short_needle): Use it.
58293         * string/strstr.c (AVAILABLE1_USES_J): Define.
58294         * string/strcasestr.c: Likewise.
58295
58296         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58297         array references.
58298         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58299
58300         [BZ #11607]
58301         * NEWS: Add an entry.
58302         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58303         define their defaults.
58304         (two_way_short_needle): Detect end-of-string on-the-fly.
58305         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58306         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58307         * string/bug-strcasestr1.c: New test.
58308         * string/Makefile: Run it.
58309
58310 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58311
58312         [BZ #11607]
58313         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58314         the first character.
58315
58316 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58317
58318         * csu/elf-init.c (__libc_csu_irel): Function removed.
58319         * csu/libc-start.c (apply_irel): New function.
58320         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58321
58322 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58323
58324         * sysdeps/unix/sysv/linux/kernel-features.h
58325         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58326         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58327         <kernel-features.h>.
58328         [__NR_fadvise64_64]: Make code unconditional.
58329         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58330         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58331         !__NR_fadvise64_64)]: Likewise.
58332         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58333         !__NR_fadvise64_64))]: Likewise.
58334         [__NR_fadvise64]: Make code unconditional.
58335         [!__NR_fadvise64]: Remove conditional code.
58336         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58337         <kernel-features.h>.
58338         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58339         unconditional.
58340         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58341         conditional code.
58342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58343         not include <kernel-features.h>.
58344         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58345         unconditional.
58346         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58347         conditional code.
58348         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58349         include <kernel-features.h>.
58350         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58351         unconditional.
58352         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58353         conditional code.
58354
58355 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58356
58357         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58358         slight instruction rearrangements per scrollpipe analysis.
58359         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58360
58361 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58362
58363         * manual/syslog.texi (syslog; vsyslog, closelog):
58364         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58365         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58366
58367         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58368         DSOCAPS to match condition on defining it.
58369
58370 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58371
58372         * sysdeps/unix/sysv/linux/kernel-features.h
58373         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58375         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58376         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58378         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58379         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58381         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58382         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58383
58384         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58385         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58386
58387         * sysdeps/unix/sysv/linux/kernel-features.h
58388         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58389         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58390         unconditional.
58391         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58392         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58393         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58394         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58395         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58396         Make code unconditional.
58397         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58398         (__mmap64) [!__NR_mmap2]: Likewise.
58399         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58400         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58401         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58402         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58403         [__NR_mmap2]: Make code unconditional.
58404         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58405         (__mmap64) [!__NR_mmap2]: Likewise.
58406
58407 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58408
58409         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58410
58411 2012-08-18  Andreas Jaeger  <aj@suse.de>
58412
58413         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58414
58415 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58416
58417         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58418         * include/unistd.h (__have_sock_cloexec): Likewise.
58419         (__have_pipe2): Likewise.
58420         (__have_dup3): Likewise.
58421
58422 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58423
58424         [BZ #9685]
58425         * include/unistd.h (__have_pipe2): Change define into an extern int.
58426         (__have_dup3): Likewise.
58427         * socket/have_sock_cloexec.c: Include fcntl.h.
58428         (__have_pipe2): New variable.
58429         (__have_dup3): Likewise.
58430
58431 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58432
58433         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58434
58435 2012-08-17  Marek Polacek  <polacek@redhat.com>
58436
58437         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58438         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58439
58440 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58441
58442         * configure.in: Add AC_SUBST for sysheaders.
58443         * configure: Regenerated.
58444         * config.make.in (sysheaders): New substituted variable.
58445
58446         * sysdeps/unix/mkfifo.c: Moved ...
58447         * sysdeps/posix/mkfifo.c: ... here.
58448         * sysdeps/unix/mkfifoat.c: Moved ...
58449         * sysdeps/posix/mkfifoat.c: ... here.
58450
58451         * sysdeps/unix/utime.c: Moved ...
58452         * sysdeps/posix/utime.c: ... here.
58453
58454         * sysdeps/unix/time.c: Moved ...
58455         * sysdeps/posix/time.c: ... here.
58456         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58457         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58458
58459         * sysdeps/unix/nice.c: Moved ...
58460         * sysdeps/posix/nice.c: ... here.
58461
58462         * sysdeps/unix/alarm.c: Moved ...
58463         * sysdeps/posix/alarm.c: ... here.
58464
58465         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58466
58467 2012-08-17  Jeff Law <law@redhat.com>
58468
58469         * intl/Makefile (codeset_mo): New variable.
58470         ($(codeset_mo)): New target.
58471         (tst-codeset.out): Depend on that.  Remove explicit rule.
58472         (tst-gettext3.out, tst-gettext5.out): Likewise.
58473         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58474         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58475         * intl/tst-codeset.sh: Remove.
58476         * intl/tst-gettext3.sh: Likewise.
58477         * intl/tst-gettext5.sh: Likewise.
58478
58479 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58480
58481         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58482         * sysdeps/unix/syscalls.list: ... here.
58483
58484         * sysdeps/posix/getaddrinfo.c
58485         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58486         (gaiconf_init, gaiconf_reload): Use them.
58487         [!_STATBUF_ST_NSEC]
58488         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58489         Define using time_t rather than struct timespec.
58490
58491         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58492         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58493         Macros removed.
58494         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58495         [!NO_THREADS].
58496         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58497         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58498         Likewise.
58499
58500         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58501         __libc_cleanup_push argument.
58502
58503         * bits/param.h: New file.
58504         * misc/sys/param.h: New file.
58505         * include/sys/param.h: New file.
58506         * misc/Makefile (headers): Add bits/param.h.
58507         * sysdeps/generic/sys/param.h: File removed.
58508         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58509         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58510         * sysdeps/mach/hurd/bits/param.h: New file.
58511         * sysdeps/mach/hurd/sys/param.h: File removed.
58512
58513         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58514         last change.
58515
58516         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58517         [_IO_MTSAFE_IO].
58518         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58519         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58520         New macros.
58521
58522         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58523         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58524         rather than -D_IO_MTSAFE_IO conditionally.
58525         * stdio-common/Makefile (CPPFLAGS): Likewise.
58526         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58527         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58528         Use $(libio-mtsafe).
58529         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58530         of -D_IO_MTSAFE_IO.
58531         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58532         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58533         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58534         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58535         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58536         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58537         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58538         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58539         (CFLAGS-fread_u_chk.c): Likewise.
58540         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58541         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58542         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58543         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58544         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58545         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58546         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58547         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58548         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58549
58550         * libio/Makefile: Test [$(libc-reentrant) = yes]
58551         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58552
58553         * Makeconfig
58554         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58555         * sysdeps/pthread/configure: File removed.
58556         * sysdeps/pthread/Makeconfig: New file.
58557         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58558         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58559
58560 2012-08-16  Gary Benson  <gbenson@redhat.com>
58561
58562         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58563         unmapping the first object in a namespace.
58564
58565 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58566
58567         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58568         (__internal_setnetgrent): ... this.  Add internal_function to
58569         definition.  Add libc_hidden_def.
58570         (setnetgrent): Update caller.
58571         (internal_endnetgrent): Renamed to ...
58572         (__internal_endnetgrent): ... this.  Add internal_function to
58573         definition.  Add libc_hidden_def.
58574         (endnetgrent): Update caller.
58575         (internal_getnetgrent_r): Renamed to ...
58576         (__internal_getnetgrent_r): ... this.  Add internal_function to
58577         definition.  Add libc_hidden_def.
58578         (__getnetgrent_r): Update caller.
58579         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58580
58581 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58582
58583         * stdlib/longlong.h: Update from GCC.
58584
58585 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58586
58587         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58588         on _QL, which is set by umul_ppmm but never used.
58589         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58590         variables, which are set by GMP macros but never used.
58591         * stdio-common/_itowa.c (_itowa): Likewise.
58592         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58593         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58594
58595 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58596
58597         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58598         struct La_sh_regs is not constant.
58599         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58600         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58601         and struct La_sparc64_regs are not constant.
58602
58603 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58604
58605         * sysdeps/unix/sysv/linux/kernel-features.h
58606         (__ASSUME_POSIX_TIMERS): Remove.
58607         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58608         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58609         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58610         Make code unconditional.
58611         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58612         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58613         Make code unconditional.
58614         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58615         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58616         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58617         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58618         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58619         Make code unconditional.
58620         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58621         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58622         (__libc_missing_posix_timers): Remove.
58623
58624 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58625
58626         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58627         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58628
58629         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58630
58631         * elf/dl-sym.c: Include <stdlib.h>.
58632
58633         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58634         constants, which avoids warnings in 32-bit builds.
58635
58636         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58637         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58638
58639         * misc/lseek.c: File moved to ...
58640         * io/lseek.c: ... here.
58641
58642         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58643
58644         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58645         shifting LEN more than 31 bits at once.
58646
58647 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58648
58649         [BZ #14195]
58650         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58651         segmentation fault for a case of two empty input strings.
58652         * string/test-strncasecmp.c (check1): Renamed to...
58653         (bz12205): ...this.
58654         (bz14195): Add new testcase for two empty input strings and N > 0.
58655         (test_main): Call new testcase, adapt for renamed function.
58656
58657 2012-08-15  Andreas Jaeger  <aj@suse.de>
58658
58659         [BZ #14090]
58660         * crypt/md5test2.c: New test, based on test supplied by Serge
58661         Belyshev <belyshev@depni.sinp.msu.ru>.
58662         * crypt/Makefile (xtests): Add md5test-giant..
58663         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58664
58665 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58666
58667         [BZ #14090]
58668         * crypt/md5.c (md5_process_block): Don't assume the buffer
58669         length is less than 2**32.
58670         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58671         length is less than 2**64.
58672
58673 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58674
58675         * string/str-two-way.h: Include <sys/param.h>.
58676         (MAX): Macro removed.
58677
58678         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58679         Move #define and #undef of memmove to just before and after
58680         including <string.h>.
58681
58682         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58683         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58684         and after including <string.h>.  Move declarations of
58685         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58686         to before #include "string/memmove.c".
58687
58688         * include/dirent.h: Declare __getdirentries.
58689
58690         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58691         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58692
58693 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58694
58695         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58696         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58697         * sysdeps/i386/configure: Regenerated.
58698         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58699         STABS_CURRENT_FILE, and STABS_FUN.
58700         (END): Remove call to STABS_FUN_END.
58701         (STABS_CURRENT_FILE1): Delete.
58702         (STABS_CURRENT_FILE): Likewise.
58703         (STABS_FUN): Likewise.
58704         (STABS_FUN_END): Likewise.
58705         (STABS_FUN2): Likewise.
58706         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58707         * sysdeps/x86_64/configure: Regenerated.
58708
58709 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58710
58711         * elf/dl-open.c: Include <atomic.h>.
58712         * elf/dl-lookup.c: Likewise.
58713
58714 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58715
58716         * sysdeps/unix/sysv/linux/kernel-features.h
58717         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58718         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58719         unconditionally.
58720         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58721         unconditionally.
58722         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58723         condition on __ASSUME_CLONE_THREAD_FLAGS.
58724
58725 2012-08-14  Andreas Jaeger  <aj@suse.de>
58726
58727         * sysdeps/i386/fpu/libm-test-ulps: Update.
58728
58729 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58730
58731         * include/atomic.h (atomic_exchange_and_add): Split into ...
58732         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58733         New atomic macros.
58734
58735 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58736
58737         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58738
58739 2012-08-13  Jeff Law <law@redhat.com>
58740
58741         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58742         null byte in the output string.
58743
58744 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58745
58746         * sysdeps/unix/sysv/linux/kernel-features.h
58747         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58748         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58749         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58750         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58751         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58752         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58753         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58754
58755 2012-08-09  Jeff Law <law@redhat.com>
58756
58757         [BZ #13939]
58758         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58759         When avoid_arena is set, don't retry in the that arena.  Pick the
58760         next one, whatever it might be.
58761         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58762         (arena_lock): Pass in new parameter to arena_get2.
58763         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58764         arena_get2.
58765         (__libc_malloc): Unify retrying after main arena failure with
58766         __libc_memalign version.
58767         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58768
58769 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58770
58771         [BZ #14166]
58772         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58773         to __redirect_strstr.
58774         (__strstr_sse42): Use typeof __redirect_strstr.
58775         (__strstr_ia32): Likewise.
58776         (__libc_strstr): New prototype.
58777         (strstr): Renamed to ...
58778         (__libc_strstr): This.
58779         (strstr): New strong alias of __libc_strstr.
58780         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58781         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58782         __redirect_time.
58783         Include <time.h>.
58784         (__libc_time): New prototype.
58785         (time_ifunc): Replace time with __libc_time.
58786         (time): New strong alias and hidden definition of __libc_time.
58787         (__GI_time): Remove strong alias.
58788         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58789         Include <stddef.h>.
58790         (memmove): Redefined to __redirect_memmove.
58791         (__memmove_sse2): Use typeof __redirect_memmove.
58792         (__memmove_ssse3): Likewise.
58793         (__memmove_ssse3_back): Likewise.
58794         (__libc_memmove): New prototype.
58795         (memmove): Renamed to ...
58796         (__libc_memmove): This.
58797         (memmove): New strong alias of __libc_memmove.
58798
58799 2012-08-08  Mark Salter  <msalter@redhat.com>
58800
58801         * elf/elf.h
58802         (R_MN10300_TLS_GD): Define.
58803         (R_MN10300_TLS_LD): Likewise.
58804         (R_MN10300_TLS_LDO): Likewise.
58805         (R_MN10300_TLS_GOTIE): Likewise.
58806         (R_MN10300_TLS_IE): Likewise.
58807         (R_MN10300_TLS_LE): Likewise.
58808         (R_MN10300_TLS_DTPMOD): Likewise.
58809         (R_MN10300_TLS_DTPOFF): Likewise.
58810         (R_MN10300_TLS_TPOFF): Likewise.
58811         (R_MN10300_SYM_DIFF): Likewise.
58812         (R_MN10300_ALIGN): Likewise.
58813         (R_MN10300_NUM): Update.
58814
58815 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58816
58817         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58818         Remove.
58819
58820 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58821
58822         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58823
58824         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58825         sysdeps/unix -> sysdeps/posix move.
58826         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58827
58828 2012-08-07      Allan McRae     <allan@archlinux.org>
58829
58830         [BZ #14303]
58831         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58832         (SUNOS_CPP): Likewise.
58833         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58834         not found.
58835         (open_input): Call CPP using execvp.
58836
58837 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58838
58839         * sysdeps/unix/sysv/linux/kernel-features.h
58840         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58841         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58842         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58843         (__ASSUME_WAITID_SYSCALL): Likewise.
58844         * sysdeps/unix/sysv/linux/dl-execstack.c
58845         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58846         code unconditional.
58847         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58848         conditional code.
58849         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58850         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58851         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58852         code.
58853         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58854         unconditional.
58855         [__ASSUME_WAITID_SYSCALL]: Likewise.
58856         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58857
58858 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58859
58860         * sysdeps/unix/closedir.c: Renamed to ...
58861         * sysdeps/posix/closedir.c: ... here.
58862         * sysdeps/unix/dirfd.c: Renamed to ...
58863         * sysdeps/posix/dirfd.c: ... here.
58864         * sysdeps/unix/dirstream.h: Renamed to ...
58865         * sysdeps/posix/dirstream.h: ... here.
58866         * sysdeps/unix/fdopendir.c: Renamed to ...
58867         * sysdeps/posix/fdopendir.c: ... here.
58868         * sysdeps/unix/opendir.c: Renamed to ...
58869         * sysdeps/posix/opendir.c: ... here.
58870         * sysdeps/unix/readdir.c: Renamed to ...
58871         * sysdeps/posix/readdir.c: ... here.
58872         * sysdeps/unix/readdir_r.c: Renamed to ...
58873         * sysdeps/posix/readdir_r.c: ... here.
58874         * sysdeps/unix/rewinddir.c: Renamed to ...
58875         * sysdeps/posix/rewinddir.c: ... here.
58876         * sysdeps/unix/seekdir.c: Renamed to ...
58877         * sysdeps/posix/seekdir.c: ... here.
58878         * sysdeps/unix/telldir.c: Renamed to ...
58879         * sysdeps/posix/telldir.c: ... here.
58880         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58881         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58882         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58883         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58884
58885         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58886         * bits/fcntl.h: ... here.
58887
58888         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58889         not 0.
58890         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58891         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58892         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58893         (struct flock): Move l_start, l_len to the beginning.
58894         Use __pid_t for l_pid.
58895         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58896         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58897         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58898         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58899         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58900         [__USE_LARGEFILE64] (struct flock64): New type.
58901         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58902
58903         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58904         * bits/dirent.h: ... here.
58905
58906         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58907         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58908
58909 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58910
58911         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58912         Change from 2.6.0 to 2.6.16.
58913         * sysdeps/unix/sysv/linux/configure: Regenerated.
58914         * sysdeps/unix/sysv/linux/kernel-features.h
58915         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58916         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58917         version.
58918         (__ASSUME_UTIMES): Likewise.
58919         (__ASSUME_CLONE_STOPPED): Remove.
58920         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58921         architectures, not kernel version.
58922         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58923         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58924         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58925         (__ASSUME_WAITID_SYSCALL): Likewise.
58926         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58927         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58928         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58929         refer to older versions.
58930
58931 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58932
58933         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58934         Define alphasort64 as an alias.
58935         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58936         Define versionsort64 as an alias.
58937         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58938         Define scandir64 as an alias.
58939         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58940         Define scandirat64 as an alias.
58941         * dirent/alphasort64.c (alphasort64):
58942         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58943         * dirent/versionsort64.c: Likewise.
58944         * dirent/scandir64.c: Likewise.
58945         * dirent/scandirat64.c: Likewise.
58946         * sysdeps/wordsize-64/alphasort.c: File removed.
58947         * sysdeps/wordsize-64/alphasort64.c: File removed.
58948         * sysdeps/wordsize-64/scandir.c: File removed.
58949         * sysdeps/wordsize-64/scandir64.c: File removed.
58950         * sysdeps/wordsize-64/scandirat.c: File removed.
58951         * sysdeps/wordsize-64/scandirat64.c: File removed.
58952         * sysdeps/wordsize-64/versionsort.c: File removed.
58953         * sysdeps/wordsize-64/versionsort64.c: File removed.
58954         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58955         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58956         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58957         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58958         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58959         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58960         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58961         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58962
58963         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58964         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58965         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58966         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58967         [defined __arch64__ || defined __sparcv9]
58968         (__INO_T_MATCHES_INO64_T): New macro.
58969         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58970         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58971         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58972         * sysdeps/unix/sysv/linux/bits/dirent.h
58973         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58974         (_DIRENT_MATCHES_DIRENT64): New macro.
58975
58976         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58977         Define lockf64 as an alias.
58978         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58979         Define fseeko64 as an alias.
58980         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58981         Define ftello64 as an alias.
58982         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58983         Define _IO_fgetpos64 and fgetpos64 as aliases.
58984         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58985         Define _IO_fsetpos64 and fsetpos64 as aliases.
58986         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58987         Conditionalize body on this.
58988         * libio/fseeko64.c: Likewise.
58989         * libio/ftello64.c: Likewise.
58990         * libio/iofgetpos64.c: Likewise.
58991         * libio/iofsetpos64.c: Likewise.
58992         * sysdeps/wordsize-64/lockf.c: File removed.
58993         * sysdeps/wordsize-64/lockf64.c: File removed.
58994         * sysdeps/wordsize-64/fseeko.c: File removed.
58995         * sysdeps/wordsize-64/fseeko64.c: File removed.
58996         * sysdeps/wordsize-64/ftello.c: File removed.
58997         * sysdeps/wordsize-64/ftello64.c: File removed.
58998         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58999         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59000         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59001         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59002         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59003         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59004         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59005         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59006         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59007         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59008         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59009         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59010         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59011         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59012
59013         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59014         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59015         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59016         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59017         [defined __arch64__ || defined __sparcv9]
59018         (__OFF_T_MATCHES_OFF64_T): New macro.
59019         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59020         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59021         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59022         (__OFF_T_MATCHES_OFF64_T): New macro.
59023
59024 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59025
59026         * stdlib/secure-getenv.c (__secure_getenv): Replace
59027         GLIBC_2_16 with GLIBC_2_17.
59028
59029 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59030
59031         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59032         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59033
59034 2012-08-03  David S. Miller  <davem@davemloft.net>
59035
59036         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59037
59038 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59039
59040         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59041         Remove.
59042         (__ASSUME_CORRECT_SI_PID): Likewise.
59043         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59044         (__ASSUME_TMPFS_NAME): Likewise.
59045         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59046         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59047         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59048         (HAVE_AUX_SECURE): Make definition unconditional.
59049         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59050         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59051
59052 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59053
59054         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59055         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59056         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59057         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59058         __eloop_threshold instead of SYMLOOP_MAX.
59059
59060         * sysdeps/generic/eloop-threshold.h: New file.
59061         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59062         of MAXSYMLINKS.
59063         * elf/chroot_canon.c (chroot_canon): Likewise.
59064
59065 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59066
59067         [BZ #13717]
59068         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59069         Change to 2.6.0 everywhere.
59070         * sysdeps/unix/sysv/linux/configure: Regenerated.
59071         * sysdeps/unix/sysv/linux/kernel-features.h
59072         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59073         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59074         kernel versions.
59075         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59076         (__ASSUME_FUTEX_REQUEUE): Remove.
59077         (__ASSUME_STATFS64): Define unconditionally.
59078         (__ASSUME_AT_SECURE): Likewise.
59079         (__ASSUME_CORRECT_SI_PID): Likewise.
59080         (__ASSUME_TGKILL): Define without depending on kernel version for
59081         i386.
59082         (__ASSUME_UTIMES): Likewise.
59083         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59084         kernel version.
59085         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59086         (__ASSUME_TMPFS_NAME): Likewise.
59087         * README: Update reference to Linux kernel versions.
59088
59089 2012-08-02  Marek Polacek  <polacek@redhat.com>
59090
59091         [BZ# 14150]
59092         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59093         libc_cv_asm_type_prefix with %.
59094         * configure: Regenerated.
59095         * include/libc-symbols.h: Remove comment about
59096         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59097         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59098         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59099         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59100         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59101         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59102         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59103         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59104         * elf/tst-unique2mod1.c: Likewise.
59105         * elf/tst-unique1mod2.c: Likewise.
59106         * elf/tst-unique1mod1.c: Likewise.
59107         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59108         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59109         Replace ASM_TYPE_DIRECTIVE with .type.
59110         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59111         * sysdeps/i386/sysdep.h: Likewise.
59112         * sysdeps/x86_64/sysdep.h: Likewise.
59113         * sysdeps/sh/sysdep.h: Likewise.
59114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59115         Do not define ASM_TYPE_DIRECTIVE.
59116         * sysdeps/powerpc/sysdep.h: Likewise.
59117         * sysdeps/powerpc/powerpc32/sysdep.h:
59118         Replace ASM_TYPE_DIRECTIVE with .type.
59119         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59120         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59121         * sysdeps/i386/fpu/e_powf.S: Likewise.
59122         * sysdeps/i386/fpu/e_expl.S: Likewise.
59123         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59124         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59125         * sysdeps/i386/fpu/e_pow.S: Likewise.
59126         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59127         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59128         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59129         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59130         * sysdeps/i386/fpu/e_log2.S: Likewise.
59131         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59132         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59133         * sysdeps/i386/fpu/e_powl.S: Likewise.
59134         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59135         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59136         * sysdeps/i386/fpu/e_logl.S: Likewise.
59137         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59138         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59139         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59140         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59141         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59142         * sysdeps/i386/fpu/e_log.S: Likewise.
59143         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59144         * sysdeps/i386/fpu/e_logf.S: Likewise.
59145         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59146         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59147         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59148         * sysdeps/i386/fpu/e_log10.S: Likewise.
59149         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59150         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59151         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59152         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59153         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59154         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59155         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59156         * sysdeps/i386/i686/strtok.S: Likewise.
59157         * sysdeps/i386/i386-mcount.S: Likewise.
59158         * sysdeps/i386/strtok.S: Likewise.
59159         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59160         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59161         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59162         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59163         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59164         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59165         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59166         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59167         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59168         * sysdeps/x86_64/_mcount.S: Likewise.
59169         * sysdeps/x86_64/strtok.S: Likewise.
59170         * sysdeps/sh/_mcount.S: Likewise.
59171
59172 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59173
59174         * libio/iofopen.c: Include <fcntl.h>.
59175         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59176         (_IO_fopen64, fopen64): Define as aliases.
59177         * libio/iofopen64.c: Include <fcntl.h>.
59178         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59179         Conditionalize body on this.
59180         * sysdeps/wordsize-64/iofopen.c: File removed.
59181         * sysdeps/wordsize-64/iofopen64.c: File removed.
59182
59183 2012-08-01  Marek Polacek  <polacek@redhat.com>
59184
59185         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59186         Use dlfcn directly instead of a variable.
59187         (binfmt-subdir): Do not define.
59188         (dlfcn): Likewise.
59189
59190 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59191
59192         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59193         Remove all definitions.
59194         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59195         <kernel-features.h>.
59196         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59197         (miss_F_GETOWN_EX): Remove all definitions.
59198         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59199         macro definition.
59200         [!__ASSUME_FCNTL64]: Remove conditional code.
59201         [__ASSUME_FCNTL64]: Make code unconditional.
59202         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59203         <kernel-features.h>.
59204         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59205         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59206         (lockf64) [__NR_fcntl64]: Make code unconditional.
59207         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59208
59209         * sysdeps/unix/sysv/linux/kernel-features.h
59210         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59211         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59212         Make code unconditional.
59213         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59214         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59216         [__NR_vfork]: Make code unconditional.
59217         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59218         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59220         [__NR_vfork]: Make code unconditional.
59221         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59222         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59223
59224 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59225
59226         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59227         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59228
59229         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59230         Define mkstemp64 as an alias.
59231         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59232         Define mkstemps64 as an alias.
59233         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59234         Define mkostemp64 as an alias.
59235         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59236         Define mkostemps64 as an alias.
59237         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59238         Conditionalize body on this.
59239         * misc/mkostemp64.c: Likewise.
59240         * misc/mkostemps64.c: Likewise.
59241         * misc/mkstemps64.c: Likewise.
59242         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59243         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59244         * sysdeps/wordsize-64/mkostemp.c: File removed.
59245         * sysdeps/wordsize-64/mkstemp.c: File removed.
59246         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59247         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59248         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59249         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59250
59251         [BZ #14138]
59252         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59253         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59254         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59255         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59256
59257         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59258         compat_symbol macros from <shlib-compat.h> rather than the underlying
59259         default_symbol_version and symbol_version macros, so that DEFAULT
59260         lines in shlib-versions are respected.
59261         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59262
59263 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59264
59265         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59266         Declare with warn_unused_result.
59267         (setgid, setregid, setegid, setresgid): Likewise.
59268         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59269         Likewise.
59270         * WUR-REPORT: Remove set*id functions.
59271
59272 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59273
59274         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59275
59276 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59277
59278         [BZ #10191]
59279         * include/sys/socket.h (__libc_accept, __libc_accept4):
59280         Add attribute_hidden.
59281         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59282
59283         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59284         use of PTR_MANGLE.
59285         * inet/getnetgrent_r.c (setup): Likewise.
59286
59287         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59288
59289 2012-07-31  David S. Miller  <davem@davemloft.net>
59290
59291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59292
59293 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59294
59295         [BZ #13629]
59296         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59297         value between 1.0 and 2.0 and smaller part has absolute value less
59298         than 1.0.
59299         * math/s_clog10.c (__clog10): Likewise.
59300         * math/s_clog10f.c (__clog10f): Likewise.
59301         * math/s_clog10l.c (__clog10l): Likewise.
59302         * math/s_clogf.c (__clogf): Likewise.
59303         * math/s_clogl.c (__clogl): Likewise.
59304         * math/libm-test.inc (clog_test): Add more tests.
59305         (clog10_test): Likewise.
59306         * sysdeps/i386/fpu/libm-test-ulps: Update.
59307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59308
59309 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59310
59311         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59312         Exit with zero in case no suitable GID is found, and write a
59313         message to standard error.
59314
59315 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59316
59317         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59318         rather than to 1.
59319         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59320         (MAXPATHLEN): Removed.
59321         (NOGROUP, NODEV): New macros.
59322         (setbit, clrbit, isset, isclr): New macros.
59323         (howmany, roundup, powerof2): New macros.
59324         (DEV_BSIZE): New macro.
59325
59326         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59327         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59328
59329         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59330         definition on [!__NO_LONG_DOUBLE_MATH].
59331
59332         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59333         PTR_MANGLE and PTR_DEMANGLE.
59334
59335         * socket/accept4.c (accept4): Rename to __libc_accept4.
59336         Define accept4 as a weak alias.
59337
59338         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59339         on [_DIRENT_HAVE_D_TYPE].
59340         * io/ftw.c (ftw_dir): Likewise.
59341
59342         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59343
59344         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59345
59346         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59347         Use the BSD numbers rather than the arbitrary ones we had.
59348         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59349         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59350         (SIGXCPU, SIGXFSZ): New macros.
59351         (_NSIG): Now 32.
59352
59353         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59354         initializer on [_LIBC_REENTRANT].
59355
59356         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59357         definitions inside [_POSIX_MAPPED_FILES].
59358
59359         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59360
59361         * dirent/opendir.c: Include <fcntl.h>.
59362
59363         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59364         (__libc_getspecific): Likewise.
59365         (__libc_key_create): Likewise.
59366
59367         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59368         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59369         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59370         (tmpfile64): Define as alias.
59371         * sysdeps/wordsize-64/tmpfile.c: File removed.
59372         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59373         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59374         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59375
59376         * stdio-common/vfscanf.c: Include <stdbool.h>.
59377         * nss/makedb.c: Likewise.
59378         * stdio-common/_i18n_number.h: Likewise.
59379         * argp/argp-help.c: Likewise.
59380         * posix/wordexp.c: Likewise.
59381         * sysdeps/posix/spawni.c: Likewise.
59382         * nss/nss_files/files-initgroups.c: Likewise.
59383         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59384         * nss/nss_files/files-initgroups.c: Likewise.
59385         * nss/nss_db/db-netgrp.c: Likewise.
59386         * nss/nss_db/db-initgroups.c: Likewise.
59387         * io/fchmodat.c: Include <sys/stat.h>.
59388
59389         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59390         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59391
59392         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59393         [HAVE_MMAP].
59394
59395         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59396         Add multiple inclusion protection.
59397
59398 2012-07-27  David S. Miller  <davem@davemloft.net>
59399
59400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59401
59402 2012-07-27  Gary Benson  <gbenson@redhat.com>
59403
59404         [BZ #14298]
59405         * elf/rtld.c: Include <stap-probe.h>.
59406         (dl_main): Added static probes "init_start" and "init_complete".
59407         * elf/dl-load.c: Include <stap-probe.h>.
59408         (lose): Take new parameter "nsid".
59409         Added static probe "map_failed".
59410         (_dl_map_object_from_fd): Pass namespace id to lose.
59411         Added static probe "map_start".
59412         (open_verify): Pass namespace id to lose.
59413         * elf/dl-open.c: Include <stap-probe.h>.
59414         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59415         and "reloc_complete".
59416         * elf/dl-close.c: Include <stap-probe.h>.
59417         (_dl_close_worker): Added static probes "unmap_start" and
59418         "unmap_complete".
59419         * elf/rtld-debugger-interface.txt: New file documenting the above.
59420
59421 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59422
59423         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59424         rather than a string variable.
59425         * sunrpc/rpc_main.c (h_output): Likewise.
59426         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59427
59428 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59429
59430         * inet/check_native.c: New file.
59431
59432 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59433
59434         [BZ #13629]
59435         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59436         if larger part has absolute value 1.0.
59437         * math/s_clog10.c (__clog10): Likewise.
59438         * math/s_clog10f.c (__clog10f): Likewise.
59439         * math/s_clog10l.c (__clog10l): Likewise.
59440         * math/s_clogf.c (__clogf): Likewise.
59441         * math/s_clogl.c (__clogl): Likewise.
59442         * math/libm-test.inc (clog_test): Add more tests.
59443         (clog10_test): Likewise.
59444         * sysdeps/i386/fpu/libm-test-ulps: Update.
59445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59446
59447         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59448         (pltexit): Likewise.
59449         (La_regs): Likewise.
59450         (La_retval): Likewise.
59451         (int_retval): Likewise.
59452         Update #error for removed macros to refer only to definitions in
59453         tst-audit.h.
59454         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59455         macro.
59456         (pltexit): Likewise.
59457         (La_regs): Likewise.
59458         (La_retval): Likewise.
59459         (int_retval): Likewise.
59460         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59461         macro.
59462         (pltexit): Likewise.
59463         (La_regs): Likewise.
59464         (La_retval): Likewise.
59465         (int_retval): Likewise.
59466         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59467         macro.
59468         (pltexit): Likewise.
59469         (La_regs): Likewise.
59470         (La_retval): Likewise.
59471         (int_retval): Likewise.
59472         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59473         macro.
59474         (pltexit): Likewise.
59475         (La_regs): Likewise.
59476         (La_retval): Likewise.
59477         (int_retval): Likewise.
59478         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59479         macro.
59480         (pltexit): Likewise.
59481         (La_regs): Likewise.
59482         (La_retval): Likewise.
59483         (int_retval): Likewise.
59484         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59485         macro.
59486         (pltexit): Likewise.
59487         (La_regs): Likewise.
59488         (La_retval): Likewise.
59489         (int_retval): Likewise.
59490         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59491         macro definitions in tst-audit.h.
59492         * sysdeps/i386/tst-audit.h: New file.
59493         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59494         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59495         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59496         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59497         * sysdeps/sh/tst-audit.h: Likewise.
59498         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59499         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59500         * sysdeps/x86_64/tst-audit.h: Likewise.
59501
59502 2012-07-26  Andreas Jaeger  <aj@suse.de>
59503
59504         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59505         ptrace.
59506
59507         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59508         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59509         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59510         PTRACE_O_MASK.
59511         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59512         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59513         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59514
59515         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59516         value.
59517
59518         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59519         _sigsys.
59520         (si_call_addr, si_syscall, si_arch): Define new macro.
59521         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59522         _sigsys.
59523         (si_call_addr, si_syscall, si_arch): Define new marcro.
59524         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59525         _sigsys.
59526         (si_call_addr, si_syscall, si_arch): Define new macro.
59527         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59528         _sigsys.
59529         (si_call_addr, si_syscall, si_arch): Define new macro.
59530
59531 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59532
59533         [BZ #13717]
59534         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59535         Change to 2.4.21 where previously 2.4.1.
59536         * sysdeps/unix/sysv/linux/configure: Regenerated.
59537         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59538         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59539         Linux kernel version.
59540         (__ASSUME_STD_AUXV): Remove.
59541         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59542         kernel version.
59543         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59544         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59545         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59546         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59547         (__ASSUME_NETLINK_SUPPORT): Likewise.
59548         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59549         (__no_netlink_support): Remove conditional definition.
59550         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59551         Remove.
59552         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59553         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59554         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59555         (if_nameindex_ioctl): Remove.
59556         (if_nameindex_netlink): Do not handle __no_netlink_support.
59557         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59558         code.
59559         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59560         Remove conditional code.
59561         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59562         code.
59563         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59564         unconditional.
59565         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59566         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59567         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59568         Remove.
59569         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59570         [!__ASSUME_STD_AUXV]: Remove conditional code.
59571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59572         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59573         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59575         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59576         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59577         code.
59578         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59580         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59581         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59582         conditional code.
59583         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59585         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59586         code.
59587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59588         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59589         conditional code.
59590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59591         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59592         code unconditional.
59593         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59594         conditional code.
59595         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59596         unconditional.
59597         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59598         conditional code.
59599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59600         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59601         unconditional.
59602         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59603         conditional code.
59604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59605         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59606         code unconditional.
59607         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59608         conditional code.
59609         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59610         unconditional.
59611         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59612         conditional code.
59613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59614         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59615         code unconditional.
59616         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59617         conditional code.
59618         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59619         unconditional.
59620         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59621         conditional code.
59622
59623 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59624
59625         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59626         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59627         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59628         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59629         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59630         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59631         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59632         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59633         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59634         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59635         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59636         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59637         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59638         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59639         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59640         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59641         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59642         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59643         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59644         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59645         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59646         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59647         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59648
59649 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59650
59651         * Versions.def: Add GLIBC_2.17.
59652         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59653         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59654         Introduce __libc_secure_getenv.
59655         * stdlib/Versions (2.17): Add secure_getenv
59656         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59657         * stdlib/secure-getenv.c: Rename __secure_getenv to
59658         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59659         symbol __secure_getenv for GLIBC_2.0.
59660         * stdlib/tst-secure-getenv.c: New.
59661         * stdlib/Makefile (tests): Add testcase.
59662         * manual/startup.texi (Environment Access): Document
59663         secure_getenv.
59664         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59665         __libc_secure_getenv.
59666         * inet/ruserpass.c (ruserpass): Likewise.
59667         * malloc/mtrace.c (mtrace): Likewise.
59668         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59669         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59670         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59671         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59672         HAVE_SECURE_GETENV.
59673         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59674         __secure_getenv to __libc_secure_getenv.
59675         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59677         Likewise.
59678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59679         Likewise.
59680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59682         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59683         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59684         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59686         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59687
59688 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59689
59690         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59691         (struct La_i86_retval): Likewise.
59692         (struct La_x86_64_regs): Likewise.
59693         (struct La_x86_64_retval): Likewise.
59694         (struct La_x32_regs): Likewise.
59695         (struct La_x32_retval): Likewise.
59696         (struct La_ppc32_regs): Likewise.
59697         (struct La_ppc32_retval): Likewise.
59698         (struct La_ppc64_regs): Likewise.
59699         (struct La_ppc64_retval): Likewise.
59700         (struct La_sh_regs): Likewise.
59701         (struct La_sh_retval): Likewise.
59702         (struct La_s390_32_regs): Likewise.
59703         (struct La_s390_32_retval): Likewise.
59704         (struct La_s390_64_regs): Likewise.
59705         (struct La_s390_64_retval): Likewise.
59706         (struct La_sparc32_regs): Likewise.
59707         (struct La_sparc32_retval): Likewise.
59708         (struct La_sparc64_regs): Likewise.
59709         (struct La_sparc64_retval): Likewise.
59710         (struct audit_ifaces): Remove architecture-specific pltenter and
59711         pltexit members.
59712         * sysdeps/i386/ldsodefs.h: New file.
59713         * sysdeps/powerpc/ldsodefs.h: Likewise.
59714         * sysdeps/s390/ldsodefs.h: Likewise.
59715         * sysdeps/sh/ldsodefs.h: Likewise.
59716         * sysdeps/sparc/ldsodefs.h: Likewise.
59717         * sysdeps/x86_64/ldsodefs.h: Likewise.
59718
59719 2012-07-25  Marek Polacek  <polacek@redhat.com>
59720
59721         [BZ #6808]
59722         * math/libm-test.inc (yn_test): Add another test.
59723         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59724         to ERANGE when the result is +-Inf.
59725         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59726         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59727         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59728         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59729
59730 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59731
59732         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59733         equal to 0.
59734         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59735         clock_t.
59736         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59737
59738 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59739
59740         * configure.in <sysdeps resolving>: Correct printing
59741         Implies_before.
59742         * configure: Regenerate.
59743
59744 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59745
59746         * math/w_ilogb.c: Include <limits.h>.
59747         * math/w_ilogbl.c: Likewise.
59748
59749 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59750
59751         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59752         va_copy.  Document allowing for unavailable va_copy only as
59753         pre-C99 compatibility.
59754         * manual/string.texi (Copying and Concatenation): Use va_copy
59755         instead of __va_copy in concat example.
59756
59757 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59758
59759         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59760         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59761         it if not null.
59762
59763         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59764         with O_NOLINK passed to __file_name_lookup.
59765
59766         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59767         with O_NOLINK passed to __file_name_lookup.
59768
59769         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59770         negative N or less than NGIDS.
59771
59772         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59773         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59774         enough.  Use memcpy instead of strncpy.
59775
59776 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59777
59778         * elf/Makefile (check-data): Remove.
59779         (localplt.data): New vpath directive.
59780         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59781         instead of $(check-data).
59782         * scripts/data/localplt-generic.data: Move to ...
59783         * sysdeps/generic/localplt.data: ... here.
59784         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59785         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59786         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59788         ... here.
59789         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59791         ... here.
59792         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59794         ... here.
59795         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59796         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59797         ... here.
59798         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59799         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59800         ... here.
59801         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59802         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59803         ... here.
59804
59805 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59806
59807         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59808         PPC32 and PPC64 files.
59809         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59810         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59811
59812 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59813
59814         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59815         __makecontext_ret to ...
59816         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59817         ... here and call exit if uc_link is NULL.  New file.
59818         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59819         __makecontext_ret.S.
59820         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59821         __makecontext_ret to ...
59822         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59823         ... here and call exit if uc_link is NULL.  New file.
59824         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59825         __makecontext_ret.S.
59826
59827 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59828
59829         * elf/elf.h (R_390_IRELATIVE): New definition.
59830         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59831         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59832         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59833         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59834         (elf_machine_lazy_rel): Likewise.
59835         * sysdeps/s390/dl-irel.h: New file.
59836         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59837         * sysdeps/s390/s390-64/memset.S: New asm code.
59838         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59839         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59840         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59841         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59842         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59843         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59844         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59845         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59846         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59847         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59848         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59849         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59850         * sysdeps/s390/s390-32/memset.S: New asm code.
59851         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59852
59853 2012-07-17  Marek Polacek  <polacek@redhat.com>
59854
59855         [BZ #14349]
59856         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59857         * sysdeps/s390/s390-64/configure.in: Likewise.
59858         * sysdeps/sparc/configure.in: Likewise.
59859         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59860         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59861         * sysdeps/i386/configure.in: Likewise.
59862         * sysdeps/x86_64/configure.in: Likewise.
59863         * sysdeps/sh/configure.in: Likewise.
59864         * sysdeps/s390/s390-32/configure: Regenerated.
59865         * sysdeps/s390/s390-64/configure: Likewise.
59866         * sysdeps/x86_64/configure: Likewise.
59867         * sysdeps/sh/configure: Likewise.
59868         * sysdeps/powerpc/powerpc64/configure: Likewise.
59869         * sysdeps/powerpc/powerpc32/configure: Likewise.
59870         * sysdeps/sparc/configure: Likwise.
59871         * sysdeps/i386/configure: Likewise.
59872
59873         * elf/dl-open.c: Comment fixes.
59874
59875 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59876
59877         * Makefile [CXX] (check-data): Remove.
59878         [CXX] (c++-types.data): New vpath directive.
59879         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59880         vpath.  Do not allow for C++ type data being missing.
59881         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59882         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59883         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59884         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59885         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59886         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59887         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59889         ... here.
59890         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59892         ... here.
59893         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59895         ... here.
59896         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59897         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59898         ... here.
59899         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59900         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59901         ... here.
59902         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59903         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59904         ... here.
59905         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59906         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59907         ... here.
59908         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59910
59911         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59912         definitions to architecture-specific files.
59913         (TLS_IE): Likewise.
59914         (TLS_LD): Likewise.
59915         (TLS_GD): Likewise.
59916         * sysdeps/i386/tls-macros.h: New file.
59917         * sysdeps/powerpc/tls-macros.h: Likewise.
59918         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59919         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59920         * sysdeps/sh/tls-macros.h: Likewise.
59921         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59922         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59923         * sysdeps/x86_64/tls-macros.h: Likewise.
59924
59925 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59926
59927         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59928         zero value for regular exit case.
59929
59930         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59931         (__start_context): Preserve zero value for regular exit case.
59932
59933 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59934             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59935
59936         * manual/setjmp.texi (setcontext): Clarify normal process
59937         termination when uc_link is the null pointer.
59938         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59939         exit call.
59940
59941 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59942
59943         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59944         preprocessor.  Test for each exception mask separately.
59945
59946 2012-07-16  Andreas Jaeger  <aj@suse.de>
59947
59948         * po/ru.po: Update from translation team.
59949
59950 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59951
59952         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59953         equal to 0.
59954         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59955         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59956         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59957         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59958         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59959
59960 2012-07-13  Andreas Jaeger  <aj@suse.de>
59961
59962         * po/fr.po: Update from translation team.
59963
59964 2012-07-12  Marek Polacek  <polacek@redhat.com>
59965
59966         [BZ #14173]
59967         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59968         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59969         loop condition.
59970
59971 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59972
59973         [BZ #13717]
59974         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59975         Change to 2.4.1 where previously 2.4.0.
59976         * sysdeps/unix/sysv/linux/configure: Regenerated.
59977         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59978         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59979         version.
59980         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59981         (__ASSUME_AT_CLKTCK): Remove.
59982         (__ASSUME_AT_PAGESIZE): Likewise.
59983         (__ASSUME_AT_XID): Likewise.
59984         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59985         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59986         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59987         unconditionally.
59988         (HAVE_AUX_PAGESIZE): Likewise.
59989         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59990         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59991         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59992
59993 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59994
59995         [BZ #14307]
59996         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59997         the temporary buffer used to invoke __gethostbyname2_r,
59998         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59999         host_data / struct gaih_addrtuple.
60000         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60001         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60002         header file nss/nsswitch.h.
60003         * nss/nsswitch.h (global scope): Add definition of implementation
60004         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60005         resolv/nss_dns/dns-host.c).
60006
60007 2012-07-11  Andreas Jaeger  <aj@suse.de>
60008
60009         * po/fr.po: Update from translation team.
60010
60011         * po/sv.po: Update from translation team
60012         * po/fr.po: Another update from translation team.
60013
60014 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60015
60016         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60017         for subnormals or multiply small sinh result by itself.
60018         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60020
60021 2012-07-11  David S. Miller  <davem@davemloft.net>
60022
60023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60024
60025 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60026
60027         [BZ #14347]
60028         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60029         (INTERNAL_MARK): Shift it here.
60030
60031 2012-07-10  Marek Polacek  <polacek@redhat.com>
60032
60033         [BZ #14151]
60034         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60035         libc_cv_asm_global_directive with .globl.
60036         * configure: Regenerated.
60037         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60038         with .globl.
60039         * sysdeps/i386/configure: Regenerated.
60040         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60041         with .globl.
60042         * sysdeps/x86_64/configure: Regenerated.
60043         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60044         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60045         * elf/tst-unique2mod2.c: Likewise.
60046         * elf/tst-unique2mod1.c: Likewise.
60047         * elf/tst-unique1mod2.c: Likewise.
60048         * elf/tst-unique1mod1.c: Likewise.
60049         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60050         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60051         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60052         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60053         * sysdeps/mach/sysdep.h: Likewise.
60054         * sysdeps/i386/sysdep.h: Likewise.
60055         * sysdeps/i386/i386-mcount.S: Likewise.
60056         * sysdeps/x86_64/_mcount.S: Likewise.
60057         * sysdeps/x86_64/sysdep.h: Likewise.
60058         * sysdeps/sh/_mcount.S: Likewise.
60059         * sysdeps/sh/sysdep.h: Likewise.
60060         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60061         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60062         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60063         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60064         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60065         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60066         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60067         * locale/localeinfo.h: Likewise.
60068         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60069         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60070
60071 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60072
60073         [BZ #14336]
60074         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60075         system".
60076         * manual/message.texi (The Uniforum approach): Likewise.
60077         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60078         (glibc iconv Implementation): Likewise.
60079
60080 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60081
60082         [BZ #14337]
60083         * math/s_clog.c (__clog): Avoid scaling a value down where that
60084         could result in underflow.
60085         * math/s_clog10.c (__clog10): Likewise.
60086         * math/s_clog10f.c (__clog10f): Likewise.
60087         * math/s_clog10l.c (__clog10l): Likewise.
60088         * math/s_clogf.c (__clogf): Likewise.
60089         * math/s_clogl.c (__clogl): Likewise.
60090         * math/libm-test.inc (clog_test): Add more tests.
60091         (clog10_test): Likewise.
60092         * sysdeps/i386/fpu/libm-test-ulps: Update.
60093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60094
60095 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60096
60097         [BZ #14283]
60098         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60099         by 7 not 8 to examine high bit of fractional part.
60100
60101         [BZ #14042]
60102         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60103         for call to __mcount_internal.
60104         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60105         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60106         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60107
60108 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60109
60110         [BZ #14154]
60111         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60112         approximation for values within 0x1p-13f of an odd multiple of
60113         pi/4.
60114         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60115         exception.  Add more tests.
60116         * sysdeps/i386/fpu/libm-test-ulps: Update.
60117
60118         [BZ #6778]
60119         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60120         inputs and return -1 for them.  Do not check for +Inf in case not
60121         reachable for +Inf.
60122         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60123         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60124         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60125         and return -1 for them.  Do not check for +Inf in case not
60126         reachable for +Inf.
60127         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60128         define.
60129         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60130         and return -1 for them.  Do not check for +Inf in case not
60131         reachable for +Inf.
60132         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60133         spurious underflow.
60134         * sysdeps/i386/fpu/libm-test-ulps: Update.
60135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60136
60137 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60138
60139         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60140
60141 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60142
60143         [BZ #14157]
60144         [BZ #14331]
60145         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60146         could result in spurious underflow.  Scale down values above
60147         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60148         * math/s_csqrtf.c (__csqrtf): Likewise.
60149         * math/s_csqrtl.c (__csqrtl): Likewise.
60150         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60151         spurious underflow.
60152         * sysdeps/i386/fpu/libm-test-ulps: Update.
60153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60154
60155 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60156
60157         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60158         xopen-msg.sed.
60159         * catgets/xopen-msg.awk: New file.
60160         * catgets/xopen-msg.sed: Removed.
60161
60162         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60163         po2text.sed.
60164         * intl/po2test.awk: New file.
60165         * intl/po2test.sed: Removed.
60166
60167 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60168
60169         [BZ #14328]
60170         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60171         or multiply small sinh result by itself.
60172         * math/s_ctanf.c (__ctanf): Likewise.
60173         * math/s_ctanh.c (__ctanh): Likewise.
60174         * math/s_ctanhf.c (__ctanhf): Likewise.
60175         * math/s_ctanhl.c (__ctanhl): Likewise.
60176         * math/s_ctanl.c (__ctanl): Likewise.
60177         * math/libm-test.inc (ctan_test_tonearest): New function.
60178         (ctan_test_towardzero): Likewise.
60179         (ctan_test_downward): Likewise.
60180         (ctan_test_upward): Likewise.
60181         (ctanh_test_tonearest): Likewise.
60182         (ctanh_test_towardzero): Likewise.
60183         (ctanh_test_downward): Likewise.
60184         (ctanh_test_upward): Likewise.
60185         (main): Call these new functions.
60186         * sysdeps/i386/fpu/libm-test-ulps: Update.
60187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60188
60189 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60190
60191         * .gitignore: Delete /ports entry.
60192
60193 2012-07-03  Andreas Jaeger  <aj@suse.de>
60194
60195         * po/bg.po: Update from translation team.
60196         * po/cs.po: Likewise.
60197         * po/de.po: Likewise.
60198         * po/hr.po: Likewise.
60199         * po/nl.pl: Likewise.
60200         * po/pl.po: Likewise.
60201         * po/vi.po: Likewise.
60202
60203 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60204
60205         * Makeconfig [!+link] (+link-before-libc): New variable.
60206         [!+link] (+link-after-libc): Likewise.
60207         [!+link] (+link-tests): Likewise.
60208         [!+link] (+link): Define in terms of $(+link-before-libc) and
60209         $(+link-after-libc).
60210         [!+link-static] (+link-static-before-libc): New variable.
60211         [!+link-static] (+link-static-after-libc): Likewise.
60212         [!+link-static] (+link-static-tests): Likewise.
60213         [!+link-static] (+link-static): Define in terms of
60214         $(+link-static-before-libc) and $(+link-static-after-libc).
60215         [build-shared] (link-libc-before-gnulib): New variable.
60216         [build-shared] (link-libc-tests): Likewise.
60217         [build-shared] (link-libc): Define in terms of
60218         $(link-libc-before-gnulib).
60219         [!build-shared] (link-libc-tests): New variable.
60220         (link-libc-static-tests): New variable.
60221         [!gnulib] (gnulib-arch): New variable.
60222         [!gnulib] (gnulib-tests): Likewise.
60223         [!gnulib] (static-gnulib-arch): Likewise.
60224         [!gnulib] (static-gnulib-tests): Likewise.
60225         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60226         Define with "=" instead of ":=".
60227         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60228         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60229         * Rules (binaries-all-notests): New variable.
60230         (binaries-all-tests): Likewise.
60231         (binaries-static-notests): Likewise.
60232         (binaries-static-tests): Likewise.
60233         (binaries-all): Define using $(binaries-all-notests) and
60234         $(binaries-all-tests).
60235         (binaries-static): Define using $(binaries-static-notests) and
60236         $(binaries-static-tests).
60237         (binaries-shared-tests): New variable.
60238         (binaries-shared-notests): Likewise.
60239         (binaries-shared): Remove variable.
60240         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60241         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60242         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60243         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60244         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60245         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60246         * elf/Makefile (sln-modules): New variable.
60247         (extra-objs): Add $(sln-modules:=.o).
60248         (ldconfig-modules): Add static-stubs.
60249         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60250         * elf/static-stubs.c: New file.
60251
60252         [BZ #14283]
60253         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60254         by 7 not 8 to examine high bit of fractional part.  Use volatile
60255         variables when splitting into final array of floats if
60256         __FLT_EVAL_METHOD__ != 0.
60257         * math/libm-test.inc (cos_test): Add another test.
60258         (sin_test): Likewise.
60259         * sysdeps/i386/fpu/libm-test-ulps: Update.
60260
60261         [BZ #14273]
60262         * math/libm-test.inc (cosh_test): Add more tests.
60263
60264         * version.h (RELEASE): Set to "development".
60265         (VERSION): Set to "2.16.90".
60266
60267 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60268
60269         * NEWS: Update copyright. Remove last-updated date.
60270         Mention math library bug fixes and timezone data changes.
60271         * README: Mention GNU/Hurd, x32, and HPPA support status.
60272
60273 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60274
60275         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60276
60277 2012-06-27  Andreas Jaeger  <aj@suse.de>
60278
60279         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60280
60281 2012-06-25  Andreas Jaeger  <aj@suse.de>
60282
60283         * sysdeps/s390/fpu/libm-test-ulps: Update.
60284
60285 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60286             Thomas Schwinge  <thomas@codesourcery.com>
60287
60288         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60289         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60290         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60291         fanotify_mark.
60292
60293 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60294
60295         * sysdeps/mach/start.c: Remove file.
60296         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60297         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60298         * sysdeps/sh/init-first.c: Likewise.
60299
60300         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60301         registers for frame unwinding purposes, add CFI directives.
60302         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60303         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60304         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60305         Likewise.
60306
60307         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60308         __fortify_fail returning.
60309         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60310
60311         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60312         sysdeps/sh/____longjmp_chk.S.
60313         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60314         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60315         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60316         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60317
60318         * sysdeps/sh/abort-instr.h: New file.
60319         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60320         process in case exit returns.
60321
60322         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60323         initialize the GOT register before use.
60324
60325         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60326         calculation of ARGC > 4.
60327
60328         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60329         meaningful names to some local labels.
60330
60331 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60332             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60333
60334         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60335         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60336         (__arch_compare_and_exchange_val_16_acq): Likewise.
60337         (__arch_compare_and_exchange_val_32_acq): Likewise.
60338         (atomic_exchange_and_add): Fix gUSA sequence.
60339         (atomic_add): Likewise.
60340         (atomic_add_negative): Likewise.
60341         (atomic_add_zero): Likewise.
60342         (atomic_bit_test_set): Likewise.
60343
60344 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60345
60346         [BZ #13579]
60347         * include/link.h (struct link_map): Add l_free_initfini.
60348         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60349         l_initfini.
60350         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60351         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60352         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60353         set.
60354
60355 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60356
60357         * configure.in: Use AC_LANG_SOURCE.
60358         * configure: Regenerate.
60359
60360 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60361
60362         * configure.in (libc_cv_localstatedir): New substituted variable.
60363         * configure: Regenerated.
60364         * config.make.in (localstatedir): New variable, substituted from
60365         libc_cv_localstatedir.
60366         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60367         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60368         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60369         * sysdeps/gnu/configure: Regenerated.
60370
60371 2012-06-21  Jeff Law  <law@redhat.com>
60372
60373         [BZ #14277]
60374         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60375         free.  Simplify list management for _LIBC case.
60376
60377 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60378
60379         [BZ #14273]
60380         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60381         Clear sign bit of 64-bit integer value before comparing against
60382         overflow value.
60383
60384         * sysdeps/mach/configure: Regenerated.
60385
60386 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60387
60388         [BZ #14278]
60389         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60390
60391 2012-06-21  Jeff Law  <law@redhat.com>
60392
60393         [BZ #13882]
60394         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60395         uint16_t for elements in the "seen" array to avoid char overflows.
60396         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60397         * elf/dl-open.c (dl_open_worker): Likewise.
60398
60399 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60400
60401         * scripts/list-sources.sh: Scan PORTS for translations.
60402         * po/libc.pot: Regenerated.
60403
60404 2012-06-21  Andreas Jaeger  <aj@suse.de>
60405
60406         [BZ #12194]
60407         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60408         warning.
60409         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60410         * bits/byteswap-16.h (__bswap_16): Likewise.
60411         * bits/byteswap.h (__bswap_constant_16): Likewise.
60412
60413 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60414
60415         [BZ #14117]
60416         * sysdeps/i386/fpu_control.h: Removed.
60417         * sysdeps/x86_64/fpu_control.h: Moved to ...
60418         * sysdeps/x86/fpu_control.h: Here.
60419
60420         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60421         (_FPU_SETCW): Likewise.
60422
60423 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60424
60425         [BZ #14117]
60426         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60427         * sysdeps/x86/fpu/bits/mathinline.h: This.
60428         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60429
60430         [BZ #14050]
60431         [BZ #14117]
60432         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60433         functions if __x86_64__ is defined.
60434
60435 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60436
60437         * string/endian.h: Add !__ASSEMBLER__ condition for including
60438         conversion interfaces.
60439
60440 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60441
60442         [BZ #14241]
60443         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60444         of ABS(x) in calculating zero to negative powers other than odd
60445         integers.
60446         * math/libm-test.inc (pow_test): Add more tests.
60447
60448 2012-06-15  Andreas Jaeger  <aj@suse.de>
60449
60450         * manual/contrib.texi (Contributors): Update entry of Liubov
60451         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60452         Machado Filho.
60453
60454 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60455
60456         * string/string.h: Add __wur to GNU version of strerror_r.
60457
60458 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60459
60460         [BZ #14229]
60461         * string/Makefile (tests): Add tst-strtok_r.
60462         * string/tst-strtok_r.c: New file.
60463         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60464         RAX_LP/RDX_LP on SAVE_PTR.
60465
60466 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60467
60468         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60469
60470 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60471
60472         * libm_test.inc (csqrt_test): Allow more spurious underflow
60473         exceptions.
60474         (j0_test): Likewise.
60475         (j1_test): Likewise.
60476         (y0_test): Likewise.
60477         (y1_test): Likewise.
60478
60479 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60480
60481         * po/Makefile (libc.pot): Use UTF-8 charset.
60482
60483 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60484
60485         [BZ #14210]
60486         Suppress sign-conversion warning from FD_SET.
60487         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60488         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60489         not unsigned long int.
60490         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60491
60492 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60493
60494         [BZ #14050]
60495         [BZ #14117]
60496         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60497         __extern_always_inline instead of __extern_inline.
60498         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60499         (__signbit): Likewise.
60500         (__signbitl): Support C++ namespace.
60501         (lrintf): New inline function.
60502         (lrint): Likewise.
60503         (llrintf): Likewise.
60504         (llrint): Likewise.
60505         (fmaxf): Likewise.
60506         (fmax): Likewise.
60507         (fminf): Likewise.
60508         (fmin): Likewise.
60509         (rint): Likewise.
60510         (rintf): Likewise.
60511         (ceil): Likewise.
60512         (ceilf): Likewise.
60513         (floor): Likewise.
60514         (floorf): Likewise.
60515         (nearbyint): Likewise.
60516         (nearbyintf): Likewise.
60517
60518 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60519
60520         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60521         non-default versions.
60522
60523 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60524
60525         [BZ #14218]
60526         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60527
60528 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60529
60530         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60531         (FE_UPWARD, FE_DOWNWARD): Don't define.
60532         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60533         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60534
60535         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60536         reading it.
60537         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60538         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60539
60540 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60541
60542         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60543         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60544         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60545         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60546
60547 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60548
60549         [BZ #14117]
60550         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60551         * sysdeps/i386/fpu/Implies: New file.
60552         * sysdeps/x86_64/fpu/Implies: Likewise.
60553         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60554         * sysdeps/x86/fpu/bits/fenv.h: This.
60555
60556         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60557         __SSE_MATH__.
60558
60559 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60560
60561         [BZ #14134]
60562         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60563         character 0xffff that matches the last element of the
60564         conversion table.
60565
60566 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60567
60568         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60569         fmodl commit.
60570
60571 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60572
60573         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60574         values higher than 25.6283.
60575
60576 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60577
60578         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60579         subnormal exponent extraction and add some __builtin_expect.
60580         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60581         Fix for subnormal mantissa calculation.
60582
60583 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60584
60585         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60586         cpu2 is -1 and errno is not ENOSYS.
60587
60588 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60589
60590         [BZ #14117]
60591         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60592         * sysdeps/x86/bits/string.h: This.
60593         * sysdeps/x86_64/bits/string.h: Removed.
60594
60595         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60596         if not compiling for x86-64, but compiling for >= i486.
60597
60598         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60599         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60600
60601         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60602         New macro from Linux kernel 3.4.0.
60603         (FP_XSTATE_MAGIC2): Likewise.
60604         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60605         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60606         (struct _fpx_sw_bytes): New struct.
60607         (struct _xsave_hdr): Likewise.
60608         (struct _ymmh_state): Likewise.
60609         (struct _xstate): Likewise.
60610
60611         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60612         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60613         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60614         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60615         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60616         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60617
60618         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60619         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60620         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60621         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60622         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60623         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60624
60625 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60626
60627         [BZ #13743]
60628         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60629         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60630         (sysdep_headers): Include sys/platform/ppc.h.
60631         * sysdeps/powerpc/test-gettimebase.c: Test for
60632         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60633         * manual/Makefile (appendices): Include platform.texi.
60634         * manual/contrib.texi (Contributors): Update @node pointers.
60635         * manual/maint.texi (Maintenance): Likewise.
60636         (Platform): New node.
60637         * manual/platform.texi: New file.  Document the new features.
60638
60639 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60640             Jakub Jelinek  <jakub@redhat.com>
60641
60642         [BZ #14188]
60643         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60644         where __builtin_expect is unavailable.
60645
60646 2012-06-03  David S. Miller  <davem@davemloft.net>
60647
60648         * stdlib/longlong.h: Updated from GCC.
60649
60650 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60651
60652         [BZ #14042]
60653         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60654         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60655         __mcount_internal.
60656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60657         (GLIBC_2.16): Likewise.
60658
60659 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60660
60661         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60662
60663 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60664
60665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60666         (default-abi): New variable.
60667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60668         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60669         variable.
60670         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60671         Likewise.
60672         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60673         Likewise.
60674         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60675         Likewise.
60676
60677         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60678         definition.  Document in comment.
60679
60680 2012-06-01  David S. Miller  <davem@davemloft.net>
60681
60682         * stdlib/longlong.h: Updated from GCC.
60683
60684 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60685
60686         [BZ #14117]
60687         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60688         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60689         sys/debugreg.h sys/io.h here.
60690         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60691         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60692         sys/io.h.
60693         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60694         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60695         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60696         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60697         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60698         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60699
60700         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60701         Define only if __x86_64__ is defined.
60702
60703 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60704
60705         [BZ #14048]
60706         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60707         Use int64_t for variable i.
60708         * math/libm-test.inc (fmod_test): Add more tests.
60709
60710         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60711         z computation is not scheduled after fetestexcept.
60712         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60713         Use math_force_eval instead of asm to ensure calculation scheduled
60714         before exception test.
60715         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60716         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60717
60718 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60719
60720         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60721         computation is not scheduled after fetestexcept.
60722
60723 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60724
60725         [BZ #14117]
60726         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60727         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60728
60729 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60730
60731         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60732         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60733
60734 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60735
60736         [BZ #14117]
60737         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60738         <bits/wordsize.h>.
60739         (__WCHAR_MIN): Support __WORDSIZE == 64.
60740         (__WCHAR_MAX): Likewise.
60741
60742         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60743         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60744
60745         [BZ #14183]
60746         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60747         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60748
60749         [BZ #14117]
60750         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60751         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60752
60753         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60754         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60755
60756         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60757         Defined to 1 if __x86_64__ isn't defined.
60758         (_STAT_VER_LINUX_OLD): New.
60759         (st_atime): Remove duplicate.
60760         (st_mtime): Likewise.
60761         (st_ctime): Likewise.
60762
60763 2012-05-31  David S. Miller  <davem@davemloft.net>
60764
60765         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60766         entries.
60767
60768 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60769
60770         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60771         gen-libm-test.pl.
60772
60773         [BZ #14132]
60774         * elf/dl-reloc.c: Include <_itoa.h>.
60775         (_dl_reloc_bad_type): Remove use of INTUSE.
60776         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60777         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60778         * stdio-common/psiginfo.c (psiginfo): Likewise.
60779         * stdio-common/psignal.c (psignal): Likewise.
60780         * string/strsignal.c (strsignal): Likewise.
60781         * include/signal.h (_sys_siglist): Declare hidden proto.
60782         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60783         INTVARDEF with libc_hidden_data_def.
60784         * stdio-common/itoa-udigits.c: Likewise.
60785         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60786         (_itoa_lower_digits_internal): Remove declaration.
60787         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60788         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60789         (_sys_sigabbrev_internal): Remove aliases.
60790         (_sys_siglist): Define hidden alias.
60791
60792 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60793
60794         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60795         bits/sysctl.h.
60796
60797 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60798
60799         [BZ #14117]
60800         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60801         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60802
60803         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60804         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60805         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60806         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60807         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60808         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60809
60810         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60811         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60812         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60813
60814         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60815         with __addr.
60816         (insw): Likewise.
60817         (insl): Likewise.
60818         (outsb): Likewise.
60819         (outsw): Likewise.
60820         (outsl): Likewise.
60821
60822         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60823         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60824         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60825
60826         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60827         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60828         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60829         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60830         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60831         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60832
60833         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60834         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60835
60836         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60837         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60838
60839         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60840         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60841         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60842
60843         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60844         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60845         to ...
60846         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60847
60848         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60849         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60850         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60851
60852         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60853         for x86-64.
60854         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60855
60856 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60857
60858         * math/math.h (M_El): Use two more decimal places.
60859         (M_LOG2El): Likewise.
60860         (M_LOG10El): Likewise.
60861         (M_LN2l): Likewise.
60862         (M_LN10l): Likewise.
60863         (M_PIl): Likewise.
60864         (M_PI_2l): Likewise.
60865         (M_PI_4l): Likewise.
60866         (M_1_PIl): Likewise.
60867         (M_2_PIl): Likewise.
60868         (M_2_SQRTPIl): Likewise.
60869         (M_SQRT2l): Likewise.
60870         (M_SQRT1_2l): Likewise.
60871
60872 2012-05-31  David S. Miller  <davem@davemloft.net>
60873
60874         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60875         values between float registers.
60876         * sysdeps/sparc/sparc64/memset.S: Likewise.
60877         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60878
60879 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60880
60881         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60882         -D_FORTIFY_SOURCE=1.
60883         (CPPFLAGS-tst-longjmp_chk.c): Define.
60884         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60885         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60886         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60887         CFLAGS-tst-wchar-h.c.
60888
60889 2012-05-31  Marek Polacek  <polacek@redhat.com>
60890
60891         [BZ #14132]
60892         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60893         __endmntent_internal): Remove declaration.
60894         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60895         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60896         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60897
60898 2012-05-30  David S. Miller  <davem@davemloft.net>
60899
60900         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60901         (___Q_simulate_exceptions): Use real FP ops rather than writing
60902         into the %fsr.
60903         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60904         Likewise.
60905
60906 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60907
60908         [BZ #14117]
60909         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60910         * sysdeps/x86/bits/xtitypes.h: This.
60911
60912         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60913         * sysdeps/x86/bits/wordsize.h: This.
60914
60915         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60916         * sysdeps/x86/bits/huge_vall.h: This.
60917
60918         * sysdeps/i386/bits/select.h: Removed.
60919         * sysdeps/x86_64/bits/select.h: Renamed to ...
60920         * sysdeps/x86/bits/select.h: This.
60921
60922         * sysdeps/i386/bits/setjmp.h: Removed.
60923         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60924         * sysdeps/x86/bits/setjmp.h: This.
60925
60926         * sysdeps/i386/bits/mathdef.h: Removed.
60927         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60928         * sysdeps/x86/bits/mathdef.h: This.
60929
60930 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60931
60932         [BZ #14132]
60933         * include/sys/socket.h (__connect_internal)
60934         (__libc_sa_len_internal): Remove declaration.
60935         (__connect, __libc_sa_len): Declare hidden_proto.
60936         (SA_LEN): Remove use of INTUSE.
60937         * socket/connect.c: Add libc_hidden_def.
60938         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60939         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60940         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60941         alias.
60942         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60943         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60944         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60945         of adding _internal alias.
60946
60947 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60948
60949         [BZ #14117]
60950         * sysdeps/i386/bits/link.h: Removed.
60951         * sysdeps/i386/bits/linkmap.h: Likewise.
60952         * sysdeps/x86_64/bits/link.h: Renamed to ...
60953         * sysdeps/x86/bits/link.h: This.
60954         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60955         * sysdeps/x86/bits/linkmap.h: This.
60956
60957         * sysdeps/i386/bits/endian.h: Removed.
60958         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60959         * sysdeps/x86/bits/endian.h: This.
60960
60961         * sysdeps/i386/bits/byteswap.h: Removed.
60962         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60963         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60964         * sysdeps/x86/bits/byteswap.h: This.
60965         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60966         * sysdeps/x86/bits/byteswap-16.h: This.
60967         * sysdeps/i386/Implies: Add x86.
60968         * sysdeps/x86_64/Implies: Likewise.
60969
60970 2012-05-30  David S. Miller  <davem@davemloft.net>
60971
60972         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60973         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60974         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60975         (FP_TRAPPING_EXCEPTIONS): Define.
60976         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60977         (FP_TRAPPING_EXCEPTIONS): Define.
60978         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60979         subnormals only when inexact has been signalled or underflow
60980         exceptions are enabled.
60981         (_FP_PACK_CANONICAL): Likewise.
60982
60983 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60984
60985         [BZ #14183]
60986         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60987         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60988
60989 2012-05-30  Richard Henderson  <rth@twiddle.net>
60990
60991         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60992         with #ifndef NOT_IN_libc.
60993
60994         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60995         marked to avoid plt entry.
60996
60997 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60998
60999         [BZ #14112]
61000         * Makeconfig (default-abi): New macro.
61001         (abi-includes): Likewise.
61002         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61003         $(abi-$(default-abi)-lib-soname) for soname if defined.
61004         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61005         abi-variants.
61006         * Makefile (installed-stubs): Likewise.
61007         * include/stubs-biarch.h: Removed.
61008         * scripts/lib-names.awk: Only handle one library at a time.
61009         * scripts/soversions.awk: Remove WORDSIZE support.
61010         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61011         entries.
61012         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61013         Removed.
61014         (syscall-list-default-condition): Likewise.
61015         (syscall-list-default-condition): Likewise.
61016         (syscall-list-includes): Likewise.
61017         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61018         syscall-list-* with abi-*.  Handle undefined abi-variants.
61019         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61020         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61021         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61022         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61023         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61024         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61025         Removed.
61026         (syscall-list-32-options): Likewise.
61027         (syscall-list-32-condition): Likewise.
61028         (syscall-list-64-options): Likewise.
61029         (syscall-list-64-condition): Likewise.
61030         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61031         macro.
61032         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61033         Renamed to ...
61034         (abi-*): This.
61035         (abi-64-ld-soname): New macro.
61036         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61037         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61038         Renamed to ...
61039         (abi-*): This.
61040         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61041         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61042
61043 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61044
61045         * sysdeps/unix/sysv/linux/kernel-features.h
61046         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61047         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61048         include <kernel-features.h>.
61049         [!__NR_ftruncate64]: Remove conditional code.
61050         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61051         [__NR_ftruncate64]: Make code unconditional.
61052         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61053         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61054         include <kernel-features.h>.
61055         [!__NR_ftruncate64]: Remove conditional code.
61056         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61057         [__NR_ftruncate64]: Make code unconditional.
61058         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61060         include <kernel-features.h>.
61061         [!__NR_ftruncate64]: Remove conditional code.
61062         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61063         [__NR_ftruncate64]: Make code unconditional.
61064         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61066         include <kernel-features.h>.
61067         [!__NR_ftruncate64]: Remove conditional code.
61068         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61069         [__NR_ftruncate64]: Make code unconditional.
61070         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61071
61072         * configure.in (libc_cv_fpie): Weaken to a compile test using
61073         LIBC_TRY_CC_OPTION.
61074         * configure: Regenerated.
61075
61076 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61077
61078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61082         Refreshed.
61083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61086         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61087         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61089         Refreshed.
61090
61091 2012-05-27  David S. Miller  <davem@davemloft.net>
61092
61093         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61094         (___Q_zero): New.
61095         (__Q_simulate_exceptions): Return void.  Change to simulate
61096         exceptions by writing into the %fsr.
61097         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61098         (__Qp_handle_exceptions): Likewise.
61099         (numbers): Delete.
61100         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61101         __Qp_handle_exceptions.
61102         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61103         __Qp_handle_exceptions.
61104         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61105         as unused and give dummy FP_RND_NEAREST initializer.
61106         (FP_INHIBIT_RESULTS): Define.
61107         (___Q_simulate_exceptions): Update declaration.
61108         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61109         formatting.
61110         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61111         as unused and give dummy FP_RND_NEAREST initializer.
61112         (__Qp_handle_exceptions): Update declaration.
61113         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61114         formatting.
61115
61116 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61117
61118         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61119         the temporary FPU control word.
61120         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61121         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61122         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61123         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61124         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61125         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61126         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61127         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61128         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61129         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61130         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61131
61132 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61133
61134         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61135         fields.
61136
61137 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61138
61139         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61140         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61141         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61142         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61143         Likewise.
61144         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61145         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61146         Likewise.
61147
61148 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61149
61150         * po/h.po: Update from translation team.
61151
61152 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61153
61154         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61155
61156         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61157         handling of denormals.
61158         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61159         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61160         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61161         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61162         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61163         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61164         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61165         Likewise.
61166
61167 2012-05-26  Marek Polacek  <polacek@redhat.com>
61168
61169         [BZ #14152]
61170         * math/libm-test.inc (fma_test): Don't always expect underflow
61171         exception.
61172
61173 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61174
61175         [BZ #12416]
61176         * elf/tst-execstack.c: Include stackinfo.h.
61177         (do_test): Adjust test case to ensure that pthread_getattr_np
61178         behaviour remains the same after marking stack executable.
61179
61180 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61181
61182         * sysdeps/unix/sysv/linux/kernel-features.h
61183         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61184         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61185         kernel-features.h.
61186         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61187         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61188         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61189         kernel-features.h.
61190         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61191         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61192
61193 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61194
61195         * configure.in: Define the default includes to being none.
61196         * configure: Regenerated.
61197
61198 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61199
61200         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61201         * sysdeps/x86_64/setjmp.S: Likewise.
61202         * sysdeps/i386/bsd-setjmp.S: Likewise.
61203         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61204         * sysdeps/i386/setjmp.S: Likewise.
61205         * sysdeps/i386/__longjmp.S: Likewise.
61206         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61207         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61208
61209         * include/stap-probe.h: New file.
61210         * configure.in: Handle --enable-systemtap.
61211         * configure: Regenerated.
61212         * config.h.in (USE_STAP_PROBE): New #undef.
61213         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61214         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61215         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61216
61217 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61218
61219         [BZ #13717]
61220         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61221         to 2.4.0 where earlier.
61222         * sysdeps/unix/sysv/linux/configure: Regenerated.
61223         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61224         <kernel-features.h>.
61225         [__ASSUME_32BITUIDS]: Make code unconditional.
61226         [!__ASSUME_32BITUIDS]: Remove conditional code.
61227         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61228         <kernel-features.h>.
61229         [__ASSUME_32BITUIDS]: Make code unconditional.
61230         [!__ASSUME_32BITUIDS]: Remove conditional code.
61231         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61232         [__ASSUME_32BITUIDS]: Make code unconditional.
61233         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61234         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61235         <kernel-features.h>.
61236         [__ASSUME_32BITUIDS]: Make code unconditional.
61237         [!__ASSUME_32BITUIDS]: Remove conditional code.
61238         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61239         <kernel-features.h>.
61240         [__ASSUME_32BITUIDS]: Make code unconditional.
61241         [!__ASSUME_32BITUIDS]: Remove conditional code.
61242         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61243         <kernel-features.h>.
61244         [__ASSUME_32BITUIDS]: Make code unconditional.
61245         [!__ASSUME_32BITUIDS]: Remove conditional code.
61246         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61247         <kernel-features.h>.
61248         [__ASSUME_32BITUIDS]: Make code unconditional.
61249         [!__ASSUME_32BITUIDS]: Remove conditional code.
61250         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61251         <kernel-features.h>.
61252         [__ASSUME_32BITUIDS]: Make code unconditional.
61253         [!__ASSUME_32BITUIDS]: Remove conditional code.
61254         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61255         <kernel-features.h>.
61256         [__ASSUME_32BITUIDS]: Make code unconditional.
61257         [!__ASSUME_32BITUIDS]: Remove conditional code.
61258         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61259         <kernel-features.h>.
61260         [__ASSUME_32BITUIDS]: Make code unconditional.
61261         [!__ASSUME_32BITUIDS]: Remove conditional code.
61262         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61263         <kernel-features.h>.
61264         [__ASSUME_32BITUIDS]: Make code unconditional.
61265         [!__ASSUME_32BITUIDS]: Remove conditional code.
61266         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61267         <kernel-features.h>.
61268         [__ASSUME_32BITUIDS]: Make code unconditional.
61269         [!__ASSUME_32BITUIDS]: Remove conditional code.
61270         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61271         <kernel-features.h>.
61272         [__ASSUME_32BITUIDS]: Make code unconditional.
61273         [!__ASSUME_32BITUIDS]: Remove conditional code.
61274         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61275         <kernel-features.h>.
61276         [__NR_setresgid] (__setresgid): Do not declare.
61277         [__ASSUME_32BITUIDS]: Make code unconditional.
61278         [!__ASSUME_32BITUIDS]: Remove conditional code.
61279         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61280         <kernel-features.h>.
61281         [__NR_setresuid] (__setresuid): Do not declare.
61282         [__ASSUME_32BITUIDS]: Make code unconditional.
61283         [!__ASSUME_32BITUIDS]: Remove conditional code.
61284         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61285         <kernel-features.h>.
61286         [__ASSUME_32BITUIDS]: Make code unconditional.
61287         [!__ASSUME_32BITUIDS]: Remove conditional code.
61288         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61289         <kernel-features.h>.
61290         [__ASSUME_32BITUIDS]: Make code unconditional.
61291         [!__ASSUME_32BITUIDS]: Remove conditional code.
61292         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61293         <kernel-features.h>.
61294         [__ASSUME_32BITUIDS]: Make code unconditional.
61295         [!__ASSUME_32BITUIDS]: Remove conditional code.
61296         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61297         <kernel-features.h>.
61298         [__ASSUME_32BITUIDS]: Make code unconditional.
61299         [!__ASSUME_32BITUIDS]: Remove conditional code.
61300         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61301         <kernel-features.h>.
61302         [__ASSUME_32BITUIDS]: Make code unconditional.
61303         [!__ASSUME_32BITUIDS]: Remove conditional code.
61304         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61305         <kernel-features.h>.
61306         [__ASSUME_32BITUIDS]: Make code unconditional.
61307         [!__ASSUME_32BITUIDS]: Remove conditional code.
61308         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61309         <kernel-features.h>.
61310         [__ASSUME_32BITUIDS]: Make code unconditional.
61311         [!__ASSUME_32BITUIDS]: Remove conditional code.
61312         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61313         <kernel-features.h>.
61314         [__ASSUME_32BITUIDS]: Make code unconditional.
61315         [!__ASSUME_32BITUIDS]: Remove conditional code.
61316         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61317         <kernel-features.h>.
61318         [__ASSUME_32BITUIDS]: Make code unconditional.
61319         [!__ASSUME_32BITUIDS]: Remove conditional code.
61320         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61321         <kernel-features.h>.
61322         [__ASSUME_32BITUIDS]: Make code unconditional.
61323         [!__ASSUME_32BITUIDS]: Remove conditional code.
61324         * sysdeps/unix/sysv/linux/kernel-features.h
61325         (__ASSUME_SETRESUID_SYSCALL): Remove.
61326         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61327         (__ASSUME_32BITUIDS): Likewise.
61328         (__ASSUME_LDT_WORKS): Likewise.
61329         (__ASSUME_O_DIRECTORY): Likewise.
61330         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61331         architecture but not kernel version.
61332         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61333         (__ASSUME_MMAP2_SYSCALL): Likewise.
61334         (__ASSUME_STAT64_SYSCALL): Likewise.
61335         (__ASSUME_IPC64): Likewise.
61336         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61337         <kernel-features.h>.
61338         [__ASSUME_32BITUIDS]: Make code unconditional.
61339         [!__ASSUME_32BITUIDS]: Remove conditional code.
61340         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61341         <kernel-features.h>.
61342         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61343         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61344         132096]: Remove conditional code.
61345         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61346         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61347         <kernel-features.h>.
61348         [__ASSUME_32BITUIDS]: Make code unconditional.
61349         [!__ASSUME_32BITUIDS]: Remove conditional code.
61350         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61351         <kernel-features.h>.
61352         [__ASSUME_32BITUIDS]: Make code unconditional.
61353         [!__ASSUME_32BITUIDS]: Remove conditional code.
61354         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61355         <kernel-features.h>.
61356         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61357         unconditional.
61358         (__setresgid): Do not declare.
61359         [__ASSUME_32BITUIDS]: Make code unconditional.
61360         [!__ASSUME_32BITUIDS]: Remove conditional code.
61361         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61362         <kernel-features.h>.
61363         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61364         unconditional.
61365         (__setresuid): Do not declare.
61366         [__ASSUME_32BITUIDS]: Make code unconditional.
61367         [!__ASSUME_32BITUIDS]: Remove conditional code.
61368         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61369         <kernel-features.h>.
61370         [__ASSUME_32BITUIDS]: Make code unconditional.
61371         [!__ASSUME_32BITUIDS]: Remove conditional code.
61372         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61373         <kernel-features.h>.
61374         [__ASSUME_32BITUIDS]: Make code unconditional.
61375         [!__ASSUME_32BITUIDS]: Remove conditional code.
61376
61377 2012-05-25  Richard Henderson  <rth@twiddle.net>
61378
61379         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61380         dl_hwcap to ifunc resolver.
61381         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61382         elf_ifunc_invoke.
61383         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61384         dl_hwcap to ifunc resolver.
61385         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61386
61387 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61388
61389         [BZ #14153]
61390         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61391         for |x| <= 2**-26, not 2**-57.
61392         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61393         exception.
61394
61395 2012-05-24  Jeff Law  <law@redhat.com>
61396
61397         * stdio-common/Makefile (tests): Add bug25.
61398         * stdio-common/bug25.c: New test.
61399
61400 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61401
61402         [BZ #13576]
61403         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61404         multiple of MALLOC_ALIGNMENT in size.
61405         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61406
61407 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61408
61409         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61410         Require >= 256.
61411         (FILENAME_MAX): Use macro-int-constant.
61412         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61413         (_IOFBF): Use macro-int-constant.
61414         (_IOLBF): Likewise.
61415         (_IONBF): Likewise.
61416         (SEEK_CUR): Likewise.
61417         (SEEK_END): Likewise.
61418         (SEEK_SET): Likewise.
61419         (TMP_MAX): Likewise.
61420         (EOF): Use macro-int-constant.  Require < 0.
61421         (NULL): Use macro-constant.  Require == 0.
61422         (stdin): Require type to be FILE *.
61423         (stdout): Likewise.
61424         (stderr): Likewise.
61425         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61426         macro-int-constant.
61427         (EXIT_SUCCESS): Likewise.
61428         (NULL): Use macro-constant.  Require == 0.
61429         (RAND_MAX): Use macro-int-constant.
61430         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61431         [C99-based standards] (strtof): Require function.
61432         [C99-based standards] (strtold): Likewise.
61433         [C99-based standards] (strtoll): Likewise.
61434         [C99-based standards] (strtoull): Likewise.
61435         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61436         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61437         [ISO || ISO99 || ISO11] (math.h): Likewise.
61438         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61439         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61440         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61441
61442 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61443
61444         [BZ #14132]
61445         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61446         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61447         * intl/dgettext.c (DCGETTEXT): Likewise.
61448         * intl/gettext.c (DCGETTEXT): Likewise.
61449         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61450         * posix/regex_internal.h (gettext): Likewise.
61451         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61452         Remove declaration.
61453         * include/argz.h (__argz_count_internal)
61454         (__argz_stringify_internal): Remove declaration.
61455         (__argz_count, __argz_stringify): Declare hidden proto.
61456         * intl/dcgettext.c: Remove use of INTDEF.
61457         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61458         * string/argz-stringify.c: Likewise.
61459         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61460         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61461         Declare hidden proto.
61462         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61463         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61464         Declare hidden proto.
61465         * include/stdio.h (__asprintf_internal): Don't declare.
61466         (__asprintf): Don't define as macro.  Declare hidden proto.
61467         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61468         (__fsetlocking): Declare hidden proto.
61469         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61470         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61471         hidden proto.
61472         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61473         (_IO_setlinebuf): Remove use of INTUSE.
61474         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61475         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61476         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61477         Remove declaration.
61478         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61479         (_IO_do_flush): Remove use of INTUSE.
61480         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61481         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61482         (_IO_adjust_column, _IO_least_wmarker)
61483         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61484         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61485         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61486         (_IO_default_doallocate, _IO_wdefault_doallocate)
61487         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61488         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61489         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61490         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61491         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61492         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61493         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61494         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61495         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61496         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61497         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61498         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61499         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61500         proto.
61501         (_IO_flush_all_internal, _IO_adjust_column_internal)
61502         (_IO_default_uflow_internal, _IO_default_finish_internal)
61503         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61504         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61505         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61506         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61507         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61508         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61509         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61510         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61511         (_IO_file_close_internal, _IO_file_close_it_internal)
61512         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61513         (_IO_file_init_internal, _IO_file_attach_internal)
61514         (_IO_file_fopen_internal, _IO_file_read_internal)
61515         (_IO_file_sync_internal, _IO_file_seek_internal)
61516         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61517         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61518         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61519         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61520         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61521         (_IO_list_all_internal, _IO_link_in_internal)
61522         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61523         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61524         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61525         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61526         (_IO_do_write_internal, _IO_padn_internal)
61527         (_IO_getline_info_internal, _IO_getline_internal)
61528         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61529         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61530         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61531         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61532         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61533         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61534         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61535         with libc_hidden_ver, remove use of INTUSE.
61536         * libio/genops.c: Likewise.
61537         * libio/freopen.c: Likewise.
61538         * libio/freopen64.c: Likewise.
61539         * libio/iofclose.c: Likewise.
61540         * libio/iofdopen.c: Likewise.
61541         * libio/iofflush.c: Likewise.
61542         * libio/iofflush_u.c: Likewise.
61543         * libio/iofgets.c: Likewise.
61544         * libio/iofgets_u.c: Likewise.
61545         * libio/iofopen.c: Likewise.
61546         * libio/iofopncook.c: Likewise.
61547         * libio/iofread.c: Likewise.
61548         * libio/iofread_u.c: Likewise.
61549         * libio/ioftell.c: Likewise.
61550         * libio/iofwrite.c: Likewise.
61551         * libio/iogetline.c: Likewise.
61552         * libio/iogets.c: Likewise.
61553         * libio/iogetwline.c: Likewise.
61554         * libio/iopadn.c: Likewise.
61555         * libio/iopopen.c: Likewise.
61556         * libio/ioseekoff.c: Likewise.
61557         * libio/ioseekpos.c: Likewise.
61558         * libio/iosetbuffer.c: Likewise.
61559         * libio/iosetvbuf.c: Likewise.
61560         * libio/ioungetc.c: Likewise.
61561         * libio/ioungetwc.c: Likewise.
61562         * libio/iovdprintf.c: Likewise.
61563         * libio/iovsprintf.c: Likewise.
61564         * libio/iovsscanf.c: Likewise.
61565         * libio/memstream.c: Likewise.
61566         * libio/obprintf.c: Likewise.
61567         * libio/oldfileops.c: Likewise.
61568         * libio/oldiofclose.c: Likewise.
61569         * libio/oldiofdopen.c: Likewise.
61570         * libio/oldiofopen.c: Likewise.
61571         * libio/oldiopopen.c: Likewise.
61572         * libio/oldstdfiles.c: Likewise.
61573         * libio/putc.c: Likewise.
61574         * libio/setbuf.c: Likewise.
61575         * libio/setlinebuf.c: Likewise.
61576         * libio/stdfiles.c: Likewise.
61577         * libio/strops.c: Likewise.
61578         * libio/vasprintf.c: Likewise.
61579         * libio/vscanf.c: Likewise.
61580         * libio/vsnprintf.c: Likewise.
61581         * libio/vswprintf.c: Likewise.
61582         * libio/wfiledoalloc.c: Likewise.
61583         * libio/wfileops.c: Likewise.
61584         * libio/wgenops.c: Likewise.
61585         * libio/wmemstream.c: Likewise.
61586         * libio/wstrops.c: Likewise.
61587         * libio/__fpurge.c: Likewise.
61588         * libio/__fsetlocking.c: Likewise.
61589         * assert/assert.c: Likewise.
61590         * debug/fgets_chk.c: Likewise.
61591         * debug/fgets_u_chk.c: Likewise.
61592         * debug/fread_chk.c: Likewise.
61593         * debug/fread_u_chk.c: Likewise.
61594         * debug/gets_chk.c: Likewise.
61595         * debug/obprintf_chk.c: Likewise.
61596         * debug/vasprintf_chk.c: Likewise.
61597         * debug/vdprintf_chk.c: Likewise.
61598         * debug/vsnprintf_chk.c: Likewise.
61599         * debug/vsprintf_chk.c: Likewise.
61600         * malloc/mtrace.c: Likewise.
61601         * misc/error.c: Likewise.
61602         * misc/syslog.c: Likewise.
61603         * stdio-common/asprintf.c: Likewise.
61604         * stdio-common/fxprintf.c: Likewise.
61605         * stdio-common/getw.c: Likewise.
61606         * stdio-common/isoc99_fscanf.c: Likewise.
61607         * stdio-common/isoc99_scanf.c: Likewise.
61608         * stdio-common/isoc99_vfscanf.c: Likewise.
61609         * stdio-common/isoc99_vscanf.c: Likewise.
61610         * stdio-common/isoc99_vsscanf.c: Likewise.
61611         * stdio-common/printf-prs.c: Likewise.
61612         * stdio-common/printf_fp.c: Likewise.
61613         * stdio-common/printf_fphex.c: Likewise.
61614         * stdio-common/printf_size.c: Likewise.
61615         * stdio-common/putw.c: Likewise.
61616         * stdio-common/scanf.c: Likewise.
61617         * stdio-common/sprintf.c: Likewise.
61618         * stdio-common/tmpfile.c: Likewise.
61619         * stdio-common/vfprintf.c: Likewise.
61620         * stdio-common/vfscanf.c: Likewise.
61621         * stdlib/strfmon_l.c: Likewise.
61622         * sunrpc/openchild.c: Likewise.
61623         * sunrpc/xdr_stdio.c: Likewise.
61624         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61625         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61626
61627 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61628
61629         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61630
61631         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61632         in the third column, to generate for the shared library an IFUNC
61633         that uses _dl_vdso_vsym.
61634         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61635         * Makeconfig (object-suffixes-noshared): New variable.
61636
61637         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61638         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61639         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61640         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61641
61642         [BZ #14132]
61643         * include/sys/time.h (__gettimeofday): Remove macro.
61644         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61645         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61646         Remove INTDEF.
61647         (__gettimeofday): Add libc_hidden_def.
61648         (gettimeofday): Add libc_hidden_weak.
61649         * sysdeps/mach/gettimeofday.c: Likewise.
61650         * sysdeps/posix/gettimeofday.c: Likewise.
61651         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61652         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61653         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61654         (__gettimeofday_internal): Remove strong_alias.
61655         (__gettimeofday): Add libc_hidden_def.
61656         (gettimeofday): Add libc_hidden_weak.
61657         * sysdeps/unix/syscalls.list (gettimeofday):
61658         Remove __gettimeofday_internal alias.
61659
61660 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61661             H.J. Lu  <hongjiu.lu@intel.com>
61662
61663         [BZ #12495]
61664         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61665         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61666         (largebin_index_32_big): New.
61667         (largebin_index): Use it for 16-byte alignment.
61668         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61669         correction with front_misalign.
61670
61671 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61672
61673         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61675         Likewise.
61676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61677         Likewise.
61678         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61679         Likewise.
61680         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61681         Likewise.
61682         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61683         Likewise.
61684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61685         Likewise.
61686         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61687         Likewise.
61688         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61689         Likewise.
61690         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61691         Likewise.
61692         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61693         Likewise.
61694         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61695         Likewise.
61696         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61697         Likewise.
61698
61699         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61700         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61701
61702 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61703
61704         [BZ #10846]
61705         [BZ #14036]
61706         * math/libm-test.inc (exp_test): Add test from bug 14036.
61707         (pow_test): Add test from bug 10846.
61708
61709         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61710         and other flags.
61711         (special_function): Do not include flags in test name.
61712         (parse_args): Likewise.
61713         * sysdeps/i386/fpu/libm-test-ulps: Update.
61714         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61715         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61716         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61718
61719         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61720         exceptions.
61721         * math/libm-test.inc ("Philosophy"): Update comment about
61722         exception testing.
61723         (UNDERFLOW_EXCEPTION): New macro.
61724         (UNDERFLOW_EXCEPTION_OK): Likewise.
61725         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61726         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61727         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61728         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61729         (INVALID_EXCEPTION_OK): Update value.
61730         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61731         (OVERFLOW_EXCEPTION_OK): Likewise.
61732         (IGNORE_ZERO_INF_SIGN): Likewise.
61733         (test_exceptions): Handle underflow exceptions.
61734         (acos_test): Update for underflow exception expectations.
61735         (cexp_test): Likewise.
61736         (clog_test): Likewise.
61737         (clog10_test): Likewise.
61738         (csqrt_test): Likewise.
61739         (ctan_test): Likewise.
61740         (ctanh_test): Likewise.
61741         (exp_test): Likewise.
61742         (exp10_test): Likewise.
61743         (exp2_test): Likewise.
61744         (expm1_test): Likewise.
61745         (fma_test): Likewise.
61746         (j0_test): Likewise.
61747         (jn_test): Likewise.
61748         (nexttoward_test): Likewise.
61749         (pow_test): Likewise.
61750         (scalbn_test): Likewise.
61751         (scalbln_test): Likewise.
61752         (tan_test): Likewise.
61753         (y1_test): Likewise.
61754         * sysdeps/i386/fpu/libm-test-ulps: Update.
61755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61756
61757 2012-05-23  David S. Miller  <davem@davemloft.net>
61758
61759         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61760         (__libc_sigaction): Remove unused local variables.
61761
61762 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61763
61764         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61765
61766 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         mktime: avoid signed integer overflow
61769         * time/mktime.c (__mktime_internal): Do not mishandle the case
61770         where diff == INT_MIN.
61771
61772         mktime: simplify computation of average
61773         * time/mktime.c (ranged_convert): Use new time_t_avg function
61774         instead of rolling our own (probably-slower) code.
61775
61776         mktime: do not assume signed right shift propagates sign bit
61777         * time/mktime.c (isdst_differ): New static function.
61778         (__mktime_internal): No need to normalize tm_isdst now.
61779         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61780         tm_isdst values.
61781
61782         mktime: merge another wrapv change from gnulib
61783         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61784         from some compilers.
61785
61786         mktime: remove incorrect attempt at unusual arithmetics
61787         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61788         The code didn't really work on such machines anyway.
61789         (TYPE_MINIMUM): Assume two's complement.
61790         (twos_complement_arithmetic): Verify that long_int and time_t
61791         are two's complement (or unsigned, in the latter case).
61792
61793         mktime: check signed shifts on long_int and time_t, too
61794         * time/mktime.c (SHR): Check that shifts work as desired
61795         on the types long_int and time_t too, as SHR is used on
61796         such types.
61797
61798         mktime: do not assume 'long' is wide enough
61799         * time/mktime.c (verify): Move decl up.
61800         (long_int): New type.
61801         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61802         to remove assumption in the code that 'long' is wide enough to
61803         store year values.  This assumption is not true on x32 and on
61804         some non-glibc platforms.
61805
61806         mktime: merge wrapv change from gnulib
61807         * time/mktime.c (WRAPV): New macro.
61808         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61809         (guess_time_tm, __mktime_internal): Do not assume that signed
61810         integer overflow wraps around; modern compilers generate code
61811         where this assumption is no longer valid.
61812
61813 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61814
61815         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61816         Replace "jmp L(pseudo_end)" with "ret".
61817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61818         Likewise.
61819
61820 2012-05-23  Andreas Jaeger  <aj@suse.de>
61821
61822         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61823         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61824
61825 2012-05-23  Andreas Jaeger  <aj@suse.de>
61826             Maximilian Attems  <max@stro.at>
61827
61828         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61829         New macros.
61830
61831 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61832
61833         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61834         code so that pseudo_end is just ret and the stack pointer is
61835         correct also for static library in error case.
61836
61837 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61838
61839         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61840         move to syscalls.list.
61841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61845
61846         * manual/install.texi (Running make install): Do not mention Linux
61847         kernel version for which pt_chown is not needed.
61848         (Linux): Do not mention problems with nscd with 2.0 kernels.
61849         * INSTALL: Regenerated.
61850
61851 2012-05-23  Andreas Jaeger  <aj@suse.de>
61852
61853         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61854         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61855         macro.
61856         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61857         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61858         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61859         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61860         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61861         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61862         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61863         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61864         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61865         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61866         * sysdeps/unix/sysv/linux/bits/in.h
61867         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61868
61869 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61870
61871         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61872         (PREPARE_VERSION): Just use assert instead, it will be elided
61873         under [NDEBUG] anyway.
61874
61875 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61876
61877         * sysdeps/unix/sysv/linux/Makefile: Include
61878         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61879         (sysdep_routines): Remove sysctl.
61880         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61881         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61882         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61883         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61884         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61885
61886 2012-05-22  Andreas Jaeger  <aj@suse.de>
61887
61888         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61889         that pseudo_end is just ret and the stack pointer is correct also
61890         for static library in error case.
61891
61892 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61893
61894         [BZ #14122]
61895         * nss/nsswitch.c (defconfig_entries): New variable.
61896         (__nss_database_lookup): Don't leak defconfig entries.
61897         (nss_parse_service_list): Don't leak on error paths.
61898         (free_database_entries): New function.
61899         (free_defconfig): New function.
61900         (free_mem): Move common code to free_database_entries.
61901
61902 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61903
61904         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61905         Add arch_prctl.
61906         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61907
61908         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61909         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61910         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61911         New macro.
61912         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61913         (INTERNAL_SYSCALL_TYPES): Likewise.
61914         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61915         (LOAD_REGS_TYPES_[1-6]): Likewise.
61916         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61917         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61918
61919 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61920
61921         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61922         copysignl for GLIBC_2_0.
61923         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61924         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61925         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61926         logbl for GLIBC_2_0.
61927         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61928         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61929
61930 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61931
61932         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61933         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61934
61935         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61936         Use "neg %eax".
61937
61938         * time/mktime.c: Update copyright years.
61939
61940 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61941
61942         mktime: merge comment-quoting-style change from gnulib
61943         * time/mktime.c: Quote 'like this' in comments.
61944         The GNU coding standards suggest that we no longer quote `like this',
61945         as "`" and "'" are typically rendered asymmetrically nowadays.
61946         The typical gnulib style is to quote 'like this' when quoting
61947         code, and "like this" when quoting English.
61948
61949         * time/mktime.c (compile-command): Add "-I.".
61950
61951         mktime: merge mktime-internal.h change from gnulib
61952         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61953
61954         mktime: merge time_r change from gnulib
61955         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61956
61957         mktime: merge DEBUG change from gnulib
61958         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61959         case system <time.h> has a #define.
61960
61961         mktime: merge <sys/types.h> change from gnulib
61962         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61963         since <time.t> is now guaranteed to define time_t.
61964
61965         mktime: merge HAVE_CONFIG_H change from gnulib
61966         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61967
61968 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61969
61970         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61971         Use "neg %eax".
61972
61973         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61974         __rlim_t cast.
61975         (struct rusage): Use anonymous union to pad each field to
61976         __syscall_slong_t.
61977
61978 2012-05-21  David S. Miller  <davem@davemloft.net>
61979
61980         * Makefules (o-iterator): Remove .s cases.
61981         (compile-command.s): Delete.
61982         (COMPILE.s): Delete.
61983         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61984
61985 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61986
61987         * configure.in (libc_cv_predef_stack_protector): Only consider
61988         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61989         * configure: Regenerated.
61990
61991 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61992
61993         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61994         New macro.  Use R*LP on int and pointer.
61995         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61996         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61997         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61998         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61999
62000         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62001         [__WORDSIZE_TIME64_COMPAT32] instead of
62002         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62003         (struct utmp): Likewise.
62004         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62005         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62006         Renamed to ...
62007         (__WORDSIZE_TIME64_COMPAT32): This.
62008         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62009         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62010         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62011         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62012         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62013         (__WORDSIZE_TIME64_COMPAT32): New macro.
62014
62015 2012-05-21  Andreas Jaeger  <aj@suse.de>
62016
62017         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62018         only if [SHARED]. Add prototype for __wcschr_ia32.
62019
62020 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62021
62022         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62023         of %rbp unmolested in the jmp_buf while mangling the low bits.
62024         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62025         unmolested high bits of %rbp while demangling the low bits.
62026         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62027
62028 2012-05-21  Andreas Jaeger  <aj@suse.de>
62029
62030         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62031         * sunrpc/svc_simple.c: Use it for registerrpc.
62032         * sunrpc/xcrypt.c: Use it for passwd2des.
62033
62034         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62035
62036 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62037
62038         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62039         Don't define if [__SYSCALL_WORDSIZE != 32].
62040         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62041         New macro.
62042
62043 2012-05-21  Bruno Haible  <bruno@clisp.org>
62044             Andreas Jaeger  <aj@suse.de>
62045
62046         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62047         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62048         inptr and inend for must_buffer_ch.
62049         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62050         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62051         * stdio-common/Makefile (tests): Remove bug15.
62052         (bug15-ENV): Remove macro.
62053         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62054         anymore.
62055
62056 2012-05-19  Andreas Jaeger  <aj@suse.de>
62057             Roland McGrath  <roland@hack.frob.com>
62058
62059         * manual/contrib.texi: Completely rewritten. It contains now an
62060         alphabetical list of contributors and their contributions.
62061
62062 2012-05-21  Richard Henderson  <rth@twiddle.net>
62063
62064         * misc/getauxval.c (__getauxval): Use unsigned long int.
62065         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62066         (getauxval): Use unsigned long int.
62067
62068 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62069
62070         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62071
62072 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62073
62074         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62075         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62076         __alignof__ (long double).
62077
62078 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62079
62080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62081
62082 2012-05-20  Richard Henderson  <rth@twiddle.net>
62083
62084         * misc/getauxval.c: New file.
62085         * misc/sys/auxv.h: New file.
62086         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62087         (routines): Add getauxval.
62088         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62089         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62090         * elf/dl-sysdep.c (_dl_auxv): Remove.
62091         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62092         * elf/dl-support.c (_dl_auxv): New variable.
62093         (_dl_aux_init): Initialize it.
62094         * manual/startup.texi (Auxiliary Vector): New node.
62095         * sysdeps/generic/bits/hwcap.h: New file.
62096         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62097         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62098         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62099         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62100         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62101         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62103         Update.
62104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62107         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62108         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62111         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62112
62113 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62114
62115         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62116
62117 2012-05-19  David S. Miller  <davem@davemloft.net>
62118
62119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62120
62121 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62122
62123         [BZ #14123]
62124         * math/s_ccosh.c: Include <float.h>
62125         (__ccosh): Avoid internal overflow calculating sinh and cosh
62126         values before multiplying by sin and cos values.
62127         * math/s_ccoshf.c: Likewise.
62128         * math/s_ccoshl.c: Likewise.
62129         * math/s_csin.c: Likewise.
62130         * math/s_csinf.c: Likewise.
62131         * math/s_csinl.c: Likewise.
62132         * math/s_csinh.c: Likewise.
62133         * math/s_csinhf.c: Likewise.
62134         * math/s_csinhl.c: Likewise.
62135         * math/libm-test.inc (ccos_test): Add more tests.
62136         (ccosh_test): Likewise.
62137         (csin_test): Likewise.
62138         (csinh_test): Likewise.
62139         * sysdeps/i386/fpu/libm-test-ulps: Update.
62140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62141
62142 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62143
62144         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62145         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62146
62147         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62148
62149 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62150
62151         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62152         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62153         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62154         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62155         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62156         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62157         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62158         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62159         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62160         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62161         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62162         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62163         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62164         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62165         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62166         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62167         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62168         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62169         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62170         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62171         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62172         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62173         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62174         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62175         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62176         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62177         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62178         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62179         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62180         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62181         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62182
62183 2012-05-18  Andreas Jaeger  <aj@suse.de>
62184
62185         * csu/.gitignore: Delete.
62186
62187 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62188
62189         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62190         (timex): Use __syscall_slong_t.
62191
62192 2012-05-18  Andreas Jaeger  <aj@suse.de>
62193             Carlos O'Donell  <carlos_odonell@mentor.com>
62194
62195         * manual/install.texi (Configuring and compiling): Update
62196         description about files modified in the source directory.
62197         * INSTALL: Regenerated.
62198
62199 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62200
62201         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62202         value.  Use "or" to set return value to -1.
62203         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62204         negate return value.
62205
62206 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62207
62208         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62209         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62210         failure if the compiler has Graphite support disabled.
62211         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62212         Likewise.
62213         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62214         (CFLAGS-memmove.c): Likewise.
62215         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62216         Likewise.
62217
62218 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62219
62220         * sysdeps/x86_64/x32/_itoa.h: New file.
62221
62222         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62223         getdents system call only if kernel and user dirents have the
62224         same d_ino and d_off.
62225
62226         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62227         LLONG_MAX != LONG_MAX.
62228         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62229         (_fitoa_word): Likewise.
62230
62231         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62232         years.
62233         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62234         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62235         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62236
62237         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62238         include <bits/wordsize.h>.  Check __x86_64__ instead of
62239         __WORDSIZE.
62240         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62241         if __x86_64__ is defined.  Use anonymous union on fpstate.
62242
62243         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62244         anonymous union.
62245
62246 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62247
62248         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62249         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62250         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62251         Refer to _rtld_local_ro instead of _rtld_global_ro.
62252         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62253         Likewise.
62254         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62255         Likewise.
62256         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62257         Likewise.
62258         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62259         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62260         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62261
62262         [BZ #10882]
62263         * sysdeps/powerpc/powerpc32/dl-machine.c
62264         (__elf_machine_runtime_setup) [PROF]: Don't reference
62265         _dl_prof_resolve.
62266
62267 2012-05-18  Andreas Jaeger  <aj@suse.de>
62268
62269         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62270         function only available for GCCs before 3.4 since GCC 3.4
62271         introduced a builtin.
62272         (lrint): Likewise.
62273         (llrintf): Likewise.
62274         (llrint): Likewise.
62275         (fmaxf): Likewise.
62276         (fmax): Likewise.
62277         (fminf): Likewise.
62278         (fmin): Likewise.
62279         (rint): Likewise.
62280         (rintf): Likewise.
62281         (nearbyint): Likewise.
62282         (nearbyintf): Likewise.
62283         (ceil): Likewise.
62284         (ceilf): Likewise.
62285         (floor): Likewise.
62286         (floorf): Likewise.
62287
62288 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62289
62290         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62291         on both fields and cast pointer to __syscall_ulong_t.
62292
62293         * bits/types.h (__fsword_t): New type.
62294         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62295         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62296         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62297         (__FSWORD_T_TYPE): Likewise.
62298         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62299         (__FSWORD_T_TYPE): Likewise.
62300         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62301         (__FSWORD_T_TYPE): Likewise.
62302         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62303         (__FSWORD_T_TYPE): Likewise.
62304         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62305         __SWORD_TYPE with __fsword_t.
62306         (statfs64): Likewise.
62307
62308 2012-05-17  David S. Miller  <davem@davemloft.net>
62309
62310         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62311
62312 2012-05-17  Andreas Jaeger  <aj@suse.de>
62313
62314         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62315         warning.
62316
62317 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62318
62319         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62320
62321 2012-05-17  Andreas Jaeger  <aj@suse.de>
62322
62323         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62324         when it is used.
62325
62326 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62327
62328         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62329
62330 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62331
62332         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62333         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62334
62335 2012-05-17  Andreas Jaeger  <aj@suse.de>
62336             Carlos O'Donell  <carlos_odonell@mentor.com>
62337
62338         [BZ #14059]
62339         * sysdeps/x86_64/multiarch/init-arch.h
62340         (bit_YMM_Usable): Rename to...
62341         (bit_AVX_Usable): ... this.
62342         (bit_FMA4_Usable): New macro.
62343         (bit_XMM_state): New macro.
62344         (bit_YMM_state): New macro.
62345         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62346         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62347         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62348         (CPUID_OSXSAVE): New macro.
62349         (CPUID_AVX): New macro.
62350         (CPUID_FMA4): New macro.
62351         (index_YMM_Usable): Rename to...
62352         (index_AVX_Usable): ... this.
62353         (HAS_AVX): Use HAS_ARCH_FEATURE.
62354         (HAS_FMA4): Likewise.
62355         (HAS_YMM_USABLE): Remove.
62356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62357         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62358         are present.
62359         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62360         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62361         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62362         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62363         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62364
62365 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62366
62367         * math/libm-test.c: Support platforms without multiple rounding modes.
62368         * math/bug-nextafter.c: Support platforms without FP exceptions.
62369         * math/bug-nexttoward.c: Likewise.
62370         * math/test-fenv.c: Likewise.
62371         * math/test-misc.c: Likewise.
62372         * stdlib/bug-getcontext.c: Likewise.
62373
62374 2012-05-17  Andreas Jaeger  <aj@suse.de>
62375
62376         * manual/examples/search.c (critter_cmp): Change signature to
62377         avoid warnings.
62378         * manual/string.texi (Collation Functions): Likewise.
62379
62380 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62381
62382         * bits/types.h: Fold copyright years.
62383         * bits/typesizes.h: Likewise.
62384         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62385         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62386         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62387         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62388         * time/time.h: Likewise.
62389
62390 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62391
62392         [BZ #208]
62393         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62394         in instead of returning them.  Return void.
62395         (__libc_mallinfo): Accumulate over all arenas.
62396         (__malloc_stats): Adjust for change in int_mallinfo interface.
62397
62398 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62399
62400         [BZ #10375]
62401         * configure.in (NM): Add AC_CHECK_TOOL for it.
62402         (libc_extra_cflags): New substituted variable.
62403         Check for -fstack-protector being used implicitly.
62404         * configure: Regenerated.
62405         * config.make.in (config-extra-cflags): New variable,
62406         gets @libc_extra_cflags@.
62407         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62408
62409         [BZ #10375]
62410         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62411         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62412         * configure: Regenerated.
62413         * config.make.in (CPPUNDEFS): New substituted variable.
62414         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62415         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62416         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62417
62418 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62419
62420         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62421         (mq_attr): Use __syscall_slong_t.
62422
62423 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62424
62425         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62426         Check __x86_64__ instead of __WORDSIZE.
62427         (_STAT_VER_LINUX): Likewise.
62428         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62429         __syscall_ulong_t and __syscall_slong_t.
62430         (stat64): Likewise.
62431
62432 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62433
62434         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62435
62436 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62437
62438         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62439
62440 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62441
62442         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62443         __syscall_ulong_t.
62444
62445         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62446         include <bits/wordsize.h>.  Check __x86_64__ instead of
62447         __WORDSIZE.
62448         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62449         defined.
62450         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62451
62452         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62453         include <bits/wordsize.h>.  Check __x86_64__ instead of
62454         __WORDSIZE.
62455         (user_regs_struct): Use "__extension__ unsigned long long"
62456         instead of "unsigned long" if __x86_64__ is defined.
62457         (user): Likewise.  Pad after pointer field if __ILP32__ is
62458         defined.
62459
62460 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62461
62462         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62463         versions 5 to 9.
62464         * configure: Regenerated.
62465         * manual/install.texi (texinfo): Increase version requirement to
62466         4.5 or later.
62467         * INSTALL: Regenerated.
62468
62469         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62470
62471 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62472
62473         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62474
62475         * sysdeps/x86_64/x32/ffs.c: New file.
62476
62477         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62478         __syscall_ulong_t.
62479         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62480         defined.  Use __syscall_ulong_t.
62481         (shminfo): Use __syscall_ulong_t.
62482         (shm_info): Likewise.
62483
62484         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62485         __syscall_ulong_t.
62486
62487         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62488         <bits/wordsize.h>.
62489         (msgqnum_t): Use __syscall_ulong_t.
62490         (msglen_t): Likewise.
62491         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62492         __syscall_ulong_t.
62493
62494         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62495         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62496
62497         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62498
62499         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62500         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62501
62502         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62503         __syscall_slong_t.
62504
62505         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62506         include <bits/wordsize.h>.  Check __x86_64__ instead of
62507         __WORDSIZE.
62508
62509         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62510         "unsigned long long int" if __x86_64__ is defined.
62511         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62512
62513         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62514         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62515         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62516
62517         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62518         <stdint.h>.
62519         (GET_PC): Cast to uintptr_t first.
62520         (GET_FRAME): Likewise.
62521         (GET_STACK): Likewise.
62522
62523         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62524         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62525         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62526         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62527         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62528         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62529         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62530         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62531         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62532         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62533         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62534         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62535         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62536         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62537         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62538         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62539         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62540         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62541         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62542         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62543         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62544         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62545         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62546         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62547         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62548         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62549         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62550         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62551         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62552
62553 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62554
62555         * Makerules (+depfiles): Also collect depfiles from .oS in
62556         $(extra-objs).
62557         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62558         .oS, $(libnldbl-routines)).
62559
62560         * Makerules (native-compile-mkdep-flags): Define.
62561         * sunrpc/Makefile (extra-objs): Add $(addprefix
62562         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62563         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62564         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62565         calling $(make-target-directory).
62566
62567 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62568
62569         * bits/types.h (__snseconds_t): Removed.
62570         * time/time.h (struct timespec): Replace __snseconds_t with
62571         __syscall_slong_t.
62572         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62573         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62574         Likewise.
62575         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62576         (__SNSECONDS_T_TYPE): Likewise.
62577         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62578         (__SNSECONDS_T_TYPE): Likewise.
62579         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62580         (__SNSECONDS_T_TYPE): Likewise.
62581
62582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62583
62584         * sysdeps/mach/hurd/bits/typesizes.h
62585         (__SYSCALL_SLONG_TYPE): New macro.
62586         (__SYSCALL_ULONG_TYPE): Likewise.
62587
62588 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62589
62590         * bits/types.h (__syscall_slong_t): New type.
62591         (__syscall_ulong_t): Likewise.
62592
62593         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62594         (__SYSCALL_ULONG_TYPE): Likewise.
62595         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62596         (__SYSCALL_SLONG_TYPE): Likewise.
62597         (__SYSCALL_ULONG_TYPE): Likewise.
62598         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62599         (__SYSCALL_SLONG_TYPE): Likewise.
62600         (__SYSCALL_ULONG_TYPE): Likewise.
62601         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62602         (__SYSCALL_SLONG_TYPE): Likewise.
62603         (__SYSCALL_ULONG_TYPE): Likewise.
62604
62605 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62606
62607         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62608         Add sigaltstack-offsets.sym.
62609         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62610         <sigaltstack-offsets.h>.
62611         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62612         longjmp_msg pointer.
62613         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62614         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62615         signal stack.
62616         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62617
62618 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62619
62620         * elf/stackguard-macros.h: Remove file.
62621         * sysdeps/generic/stackguard-macros.h: New file.
62622         * sysdeps/i386/stackguard-macros.h: Likewise.
62623         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62624         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62625         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62626         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62627         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62628         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62629         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62630         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62631         <elf/stackguard-macros.h>.
62632
62633         [BZ #14109]
62634         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62635         __aligned__ in attribute.
62636         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62637         (gregset_t): Likewise.
62638
62639 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62640
62641         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62642         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62643         * sysdeps/x86_64/x32/Implies-after: New file.
62644
62645 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62646
62647         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62648         and access return value for _dl_profile_fixup.  Use R10_LP to
62649         load frame size.
62650
62651 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62652
62653         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62654
62655 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62656
62657         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62658         * sysdeps/x86_64/x32/sysdep.h: New file.
62659
62660 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62661
62662         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62663         * sysdeps/x86_64/setjmp.S: Likewise.
62664
62665 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62666
62667         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62668         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62669         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62670         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62671         remove unused global constant.
62672
62673 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62674
62675         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62676         include of <not-cancel.h>.
62677
62678 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62679
62680         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62681
62682 2012-05-15  Jeff Law  <law@redhat.com>
62683             Andreas Jaeger  <aj@suse.de>
62684
62685         [BZ #13594]
62686         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62687         out from...
62688         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62689         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62690         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62691         code changing __hst_map_handle.map.
62692
62693 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62694
62695         * configure.in (sysnames): Look for Implies-before and Implies-after
62696         files.
62697         * configure: Regenerated.
62698
62699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62700
62701         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62702         8-byte data alignment with LP_SIZE alignment.
62703
62704 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62705
62706         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62707         into R10_LP.
62708
62709 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62710
62711         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62712
62713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62714
62715         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62716         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62717         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62718         Likewise.
62719         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62720
62721 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62722
62723         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62724         (stackinfo_sub_sp): Likewise.
62725
62726 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62727
62728         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62729         RAX_LP.
62730
62731 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62732
62733         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62734         into R*_LP.
62735
62736 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62737
62738         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62739         sizes into R*_LP.
62740
62741 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62742
62743         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62744
62745 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62746
62747         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62748         into R11_LP and load __x86_64_shared_cache_size_half into
62749         R8_LP.
62750
62751 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62752
62753         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62754         R8_LP.
62755
62756 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62757
62758         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62759         logb for POWER7.
62760         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62761         logbf for POWER7.
62762         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62763         logbl for POWER7.
62764         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62765         powerpc32/power7/fpu/s_logb.c via #include.
62766         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62767         powerpc32/power7/fpu/s_logbf.c via #include.
62768         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62769         powerpc32/power7/fpu/s_logbl.c via #include.
62770
62771 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62772
62773         * README.libm: Remove file.
62774
62775 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62776
62777         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62778         count for x32.  Use R*_LP and omit operand-size suffix.
62779
62780 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62781
62782         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62783         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62784         * sysdeps/x86_64/x32/shlib-versions: New file.
62785
62786 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62787
62788         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62789         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62790         Use _dl_fatal_printf instead.
62791
62792 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62793
62794         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62795         set if not set by the user.  Do not allow for being unset.
62796         * sysdeps/unix/sysv/linux/configure: Regenerated.
62797
62798 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62799
62800         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62801         the `q' suffix from lea and replace .quad with ASM_ADDR.
62802
62803 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62804
62805         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62806         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62807         instead of $17.
62808         (PTR_DEMANGLE): Likewise.
62809
62810 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62811
62812         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62813         (LP_OP): Likewise.
62814         (ASM_ADDR): Likewise.
62815         (RAX_LP): Likewise.
62816         (RBP_LP): Likewise.
62817         (RBX_LP): Likewise.
62818         (RCX_LP): Likewise.
62819         (RDI_LP): Likewise.
62820         (RSI_LP): Likewise.
62821         (RSP_LP): Likewise.
62822         (R8_LP): Likewise.
62823         (R9_LP): Likewise.
62824         (R10_LP): Likewise.
62825         (R10_LP): Likewise.
62826         (R11_LP): Likewise.
62827         (R12_LP): Likewise.
62828         (R13_LP): Likewise.
62829         (R14_LP): Likewise.
62830         (R15_LP): Likewise.
62831
62832 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62833
62834         * sysdeps/x86_64/x32/dl-machine.h: New file.
62835
62836 2012-05-14  Andreas Jaeger  <aj@suse.de>
62837
62838         * manual/Makefile (subdir): Remove export of subdir.
62839         (all): Remove target.
62840         (.PHONY): Remove all from list.
62841         (mkinstalldirs): Remove.
62842         (.PHONY): Remove installdirs from list.
62843         ($(inst_infodir)/libc.info): Use make-target-directory.
62844         (installdirs): Remove.
62845         (subdir_%): Remove.
62846         (glibc-targets): Remove.
62847         (lib): Remove.
62848         (stubs): Remove.
62849         ($(objpfx)stubs ../po/manual.pot): Remove.
62850         ($(objpfx)stamp%): Remove.
62851         (make-target-directory): Remove.
62852         (subdir_install): Remove.
62853         (routines): Remove.
62854         (aux): Remove.
62855         (sources): Remove.
62856         (objects): Remove.
62857         (headers): Remove.
62858
62859         [BZ #13750]
62860         * manual/.gitignore: Remove, it's not needed anymore.
62861         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62862         all files in it.
62863         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62864         directory.
62865         (texis): Renamed to $(objpfx)texis.
62866         (texis-path): New, contains path to generated files.
62867         (chapters.%): Use texis-path for complete path, add extra argument
62868         libc-texinfo.sh.
62869         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62870         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62871         (summary,texi, stamp-summary): Use complete path of
62872         files. Generate files in build dir.
62873         (dir-add.texi): Build in build dir.
62874         (libm-err.texi,stamp-libm-err): Likewise.
62875         (version.texi, stamp-version): Likewise.
62876         (.%c.texi): Likewise.
62877         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62878         (mostlyclean): Remove target.
62879         (realclean): Remove target.
62880         (generated): Add new variable with contents from mostlyclean and
62881         realclean, remove entries duplicated in common-mostlyclean, add
62882         stamp-libm-err and stamp-version.
62883         (generated-dirs): Add libc directory.
62884         ($(inst_infodir)/libc.info): Install files from build dir.
62885
62886         * manual/install.texi (Configuring and compiling): Adjust since
62887         the info files are not part of the tar ball anymore.
62888
62889 2012-05-14  Andreas Jaeger  <aj@suse.de>
62890
62891         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62892         variable.
62893
62894 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62895
62896         [BZ #13717]
62897         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62898         to 2.2.0 where earlier.
62899         * sysdeps/unix/sysv/linux/configure: Regenerated.
62900         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62901         Remove conditional code.
62902         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62903         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62904         Remove conditional code.
62905         [!__NR_lchown]: Likewise.
62906         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62907         [__NR_lchown]: Likewise.
62908         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62909         comment referencing __ASSUME_LCHOWN_SYSCALL.
62910         * sysdeps/unix/sysv/linux/i386/sigaction.c
62911         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62912         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62913         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62914         Remove conditional code.
62915         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62916         (__protocol_available): Remove #if 0 code.
62917         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62918         conditional code.
62919         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62920         * sysdeps/unix/sysv/linux/kernel-features.h
62921         (__ASSUME_GETCWD_SYSCALL): Don't define.
62922         (__ASSUME_REALTIME_SIGNALS): Likewise.
62923         (__ASSUME_PREAD_SYSCALL): Likewise.
62924         (__ASSUME_PWRITE_SYSCALL): Likewise.
62925         (__ASSUME_POLL_SYSCALL): Likewise.
62926         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62927         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62928         non-SPARC.
62929         (__ASSUME_SIOCGIFNAME): Don't define.
62930         (__ASSUME_MSG_NOSIGNAL): Likewise.
62931         (__ASSUME_SENDFILE): Define unconditionally.
62932         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62933         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62934         conditional code.
62935         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62936         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62937         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62938         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62939         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62940         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62941         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62943         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62944         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62946         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62947         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62949         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62950         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62952         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62953         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62955         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62956         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62958         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62959         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62961         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62962         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62964         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62965         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62966         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62967         Remove conditional code.
62968         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62969         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62970         Remove conditional code.
62971         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62972         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62973         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62974         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62975         Remove conditional code.
62976         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62977         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62978         Remove conditional code.
62979         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62980         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62981         Remove conditional code.
62982         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62983         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62984         Remove conditional code.
62985         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62986         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62987         Remove conditional code.
62988         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62989         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62990         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62991         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62992         * sysdeps/unix/sysv/linux/sigaction.c
62993         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62994         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62995         * sysdeps/unix/sysv/linux/sigpending.c
62996         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62997         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62998         * sysdeps/unix/sysv/linux/sigprocmask.c
62999         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63000         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63001         * sysdeps/unix/sysv/linux/sigsuspend.c
63002         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63003         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63004         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63005         (__libc_missing_rt_sigs): Remove.
63006         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63007         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63008         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63009         Remove conditional code.
63010         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63011         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63012         return 1.
63013         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63014         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63015         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63016         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63017
63018 2012-05-14  Andreas Jaeger  <aj@suse.de>
63019
63020         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63021         it's not used in glibc.
63022         (__coshm1): Likewise.
63023         (__acosh1p): Likewise.
63024         (__sgn): Likewise.
63025
63026         * manual/string.texi (Copying and Concatenation): Add missing
63027         variable in concat example.
63028         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63029
63030 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63031
63032         [BZ #14103]
63033         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63034         __builtin_clzl with __builtin_clzll.
63035
63036 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63037
63038         [BZ #14104]
63039         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63040         libc_freeres_ptr.
63041
63042 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63043
63044         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63045         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63046         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63047         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63048
63049 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63050
63051         * NEWS: Update ia64 info.
63052
63053 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63054
63055         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63056         used as bcopy.
63057
63058 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63059
63060         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63061         * sysdeps/unix/syscalls.list (dup3): Likewise.
63062         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63063         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63064
63065 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63066
63067         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63068         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63069
63070 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63071
63072         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63073         thread pointer.
63074         (TLS_IE): Use mov/add instead of movq/addq to load thread
63075         pointer.
63076         (TLS_GD_PREFIX): New.
63077         (TLS_GD): Use it.
63078
63079 2012-05-11  David S. Miller  <davem@davemloft.net>
63080
63081         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63082         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63083         (_FPU_SETCW): Likewise.
63084
63085 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63086
63087         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63088         is 32-byte aligned.
63089
63090 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63091
63092         [BZ #11837]
63093         * iconvdata/gb18030.c: Update tables.
63094         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63095         characters specially.
63096         (BODY for TO_LOOP): Add encoding of missing ranges.
63097
63098 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63099
63100         [BZ #13673]
63101         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63102         * sysdeps/mach/hurd/dup3.c: Likewise.
63103         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63104         * sysdeps/powerpc/memmove.c:: Likewise.
63105
63106 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63107
63108         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63109         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63110
63111 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63112
63113         * elf/elf.h (R_X86_64_RELATIVE64): New.
63114         (R_X86_64_NUM): Updated.
63115         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63116         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63117         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63118         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63119         tst-quad1pie tst-quad2pie
63120         (modules-names): Add tst-quadmod1 tst-quadmod2.
63121         ($(objpfx)tst-quad1): New dependency.
63122         ($(objpfx)tst-quad2): Likewise.
63123         ($(objpfx)tst-quad1pie): Likewise.
63124         ($(objpfx)tst-quad2pie): Likewise.
63125         * sysdeps/x86_64/tst-quad1.c: New file.
63126         * sysdeps/x86_64/tst-quad1pie.c: New file.
63127         * sysdeps/x86_64/tst-quad2.c: Likewise.
63128         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63129         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63130         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63131         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63132         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63133
63134 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63135
63136         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63137         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63138         * streams/stropts.h (t_scalar_t): Define type.
63139
63140         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63141         (_PATH_PRESERVE): Set to "/var/lib".
63142         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63143
63144         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63145         instead of int.
63146
63147         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63148         if __dir_mkfile succeeded.
63149
63150         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63151         checking for _hurd_dtablesize.  Unlock it right after having
63152         finished _hurd_dtable allocation.
63153
63154 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63155
63156         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63157         * sysdeps/mach/hurd/configure: Regenerated.
63158         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63159         special-casing to...
63160         * sysdeps/gnu/configure.in: ... this new file.
63161         * sysdeps/unix/sysv/linux/configure: Regenerated.
63162         * sysdeps/gnu/configure: New generated file.
63163
63164         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63165         for Linux: use nsec instead of usec, as well as:
63166         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63167         members of type struct timespec.
63168         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63169         New macros.
63170         (struct stat64): Likewise.
63171         (_STATBUF_ST_NSEC): New macro.
63172         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63173
63174         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63175         __strtoul_internal rather than strtoul.
63176
63177 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63178
63179         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63180         and reject them.
63181
63182 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63183
63184         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63185         which preserves existing values.
63186         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63187
63188 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63189
63190         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63191         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63192         greater than FD_SETSIZE.
63193
63194 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63195
63196         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63197         allocated, call __vm_protect to finish enabling the existing space, and
63198         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63199         allocate the remainder.
63200
63201 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63202
63203         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63204         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63205
63206 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63207
63208         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63209         sysdeps/mach/hurd/readlink.c.
63210
63211         * posix/tst-sysconf.c (posix_options): Only use
63212         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63213         _POSIX_SYNCHRONIZED_IO when they are defined
63214         * sysdeps/mach/hurd/bits/posix_opt.h:
63215         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63216         (_XOPEN_REALTIME): Undefine macro.
63217         (_XOPEN_REALTIME_THREADS): Undefine macro.
63218         (_XOPEN_SHM): Undefine macro.
63219         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63220         macro to -1.
63221         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63222         macro to -1.
63223         (_POSIX_ASYNC_IO): Undefine macro.
63224         (_POSIX_PRIORITIZED_IO): Undefine macro.
63225         (_POSIX_SPIN_LOCKS): Define macro to -1.
63226
63227         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63228         SA_NODEFER, SA_RESETHAND.
63229         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63230         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63231         F_DUPFD_CLOEXEC.
63232
63233 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63234
63235         * elf/Makefile (pldd-modules): Define unconditionally.
63236
63237 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63238
63239         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63240
63241 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63242
63243         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63244         Return ENOENT when name is empty.
63245         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63246
63247 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63248
63249         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63250
63251         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63252
63253 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63254
63255         Fix mlock in all cases except non-readable pages.
63256         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63257         instead of VM_PROT_ALL as parameter to __vm_wire function.
63258
63259         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63260         (__mkdir): When path is `/', just fail with EEXIST.
63261         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63262
63263 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63264
63265         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63266         <sys/uio.h> (for writev).
63267         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63268         and <sys/param.h> (for MIN).
63269
63270 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63271
63272         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63273         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63274         if interrupted.
63275
63276 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63277
63278         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63279         Depend on against $(link-rpcuserlibs).
63280
63281 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63282
63283         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63284         (__libc_stack_end): Do not use attribute_relro.
63285         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63286         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63287         to libthread-provided value.
63288         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63289         attribute_relro.
63290
63291 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63292
63293         [BZ #3748]
63294         * bits/libc-lock.h (__libc_once_get): New macro.
63295         * sysdeps/mach/bits/libc-lock.h: Likewise.
63296         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63297         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63298         instead of using implementation details.
63299
63300         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63301         * libio/freopen.c: Likewise.
63302         * libio/freopen64.c: Likewise.
63303         * misc/syslog.c: Likewise.
63304         * nscd/connections.c: Likewise.
63305         * nscd/netgroupcache.c: Likewise.
63306         * sysdeps/posix/getcwd.c: Likewise.
63307
63308 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63309
63310         * math/w_ilogbf.c: Add #include <limits.h>.
63311
63312 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63313
63314         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63315         path instead of returning without unlocking.
63316
63317         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63318         immediate-write ioctls.
63319         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63320
63321 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63322
63323         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63324         __builtin_frame_address instead of making assumptions about the
63325         location of the return address relative to DATA.  Force early load of
63326         the return address.
63327         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63328         __builtin_frame_address.
63329
63330         dup3 for GNU Hurd.
63331         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63332         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63333         implement dup3 and do some further code clean-ups.
63334         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63335         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63336
63337 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63338
63339         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63340
63341         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63342         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63343         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63344         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63345         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63346         d->port.lock.
63347
63348         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63349         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63350         when handler == SIG_ERR, not when handler != SIG_ERR.
63351
63352 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63353
63354         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63355         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63356         definitions.
63357
63358         accept4 for GNU Hurd.
63359         * include/sys/socket.h (__libc_accept4): New prototype.
63360         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63361         to implement __libc_accept4.
63362         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63363         __libc_accept4.
63364         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63365
63366         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63367         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63368         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63369         signal-defines.sym.
63370
63371 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63372
63373         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63374
63375 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63376
63377         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63378         assertion on O_CLOEXEC flag.
63379         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63380         * hurd/intern-fd.c: Likewise.
63381         * hurd/port2fd.c: Likewise.
63382
63383 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63384
63385         [BZ #3906]
63386         * bits/in.h (IPV6_PKTINFO): Define new macro.
63387         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63388
63389 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63390
63391         [BZ #13954]
63392         [BZ #13955]
63393         [BZ #13956]
63394         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63395         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63396         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63397         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63398         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63399         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63400         * math/libm-test.inc (logb_test) : Additional logb tests.
63401
63402 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63403             Andreas Jaeger  <aj@suse.de>
63404
63405         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63406         * configure: Regenerated.
63407         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63408         * config.make.in (link-obsolete-rpc): New substituted variable.
63409         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63410         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63411         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63412         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63413         so that libc.a contains the symbols.
63414         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63415         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63416         * sunrpc/auth_none.c: Likewise.
63417         * sunrpc/auth_unix.c: Likewise.
63418         * sunrpc/authdes_prot.c: Likewise.
63419         * sunrpc/authuxprot.c: Likewise.
63420         * sunrpc/clnt_gen.c: Likewise.
63421         * sunrpc/clnt_perr.c: Likewise.
63422         * sunrpc/clnt_raw.c: Likewise.
63423         * sunrpc/clnt_simp.c: Likewise.
63424         * sunrpc/clnt_tcp.c: Likewise.
63425         * sunrpc/clnt_udp.c: Likewise.
63426         * sunrpc/clnt_unix.c: Likewise.
63427         * sunrpc/des_crypt.c: Likewise.
63428         * sunrpc/des_soft.c: Likewise.
63429         * sunrpc/get_myaddr.c: Likewise.
63430         * sunrpc/key_call.c: Likewise.
63431         * sunrpc/key_prot.c: Likewise.
63432         * sunrpc/netname.c: Likewise.
63433         * sunrpc/pm_getmaps.c: Likewise.
63434         * sunrpc/pm_getport.c: Likewise.
63435         * sunrpc/pmap_clnt.c: Likewise.
63436         * sunrpc/pmap_prot.c: Likewise.
63437         * sunrpc/pmap_prot2.c: Likewise.
63438         * sunrpc/pmap_rmt.c: Likewise.
63439         * sunrpc/publickey.c: Likewise.
63440         * sunrpc/rpc_cmsg.c: Likewise.
63441         * sunrpc/rpc_common.c: Likewise.
63442         * sunrpc/rpc_dtable.c: Likewise.
63443         * sunrpc/rpc_prot.c: Likewise.
63444         * sunrpc/rpc_thread.c: Likewise.
63445         * sunrpc/rtime.c: Likewise.
63446         * sunrpc/svc.c: Likewise.
63447         * sunrpc/svc_auth.c: Likewise.
63448         * sunrpc/svc_raw.c: Likewise.
63449         * sunrpc/svc_run.c: Likewise.
63450         * sunrpc/svc_tcp.c: Likewise.
63451         * sunrpc/svc_udp.c: Likewise.
63452         * sunrpc/svc_unix.c: Likewise.
63453         * sunrpc/svcauth_des.c: Likewise.
63454         * sunrpc/xcrypt.c: Likewise.
63455         * sunrpc/xdr.c: Likewise.
63456         * sunrpc/xdr_array.c: Likewise.
63457         * sunrpc/xdr_float.c: Likewise.
63458         * sunrpc/xdr_intXX_t.c: Likewise.
63459         * sunrpc/xdr_mem.c: Likewise.
63460         * sunrpc/xdr_rec.c: Likewise.
63461         * sunrpc/xdr_ref.c: Likewise.
63462         * sunrpc/xdr_sizeof.c: Likewise.
63463         * sunrpc/xdr_stdio.c: Likewise.
63464
63465 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63466
63467         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63468         change.  Update copyright years.
63469
63470 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63471
63472         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63473
63474 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63475             Joseph Myers  <joseph@codesourcery.com>
63476             Paul Pluzhnikov  <ppluzhnikov@google.com>
63477
63478         [BZ #14012]
63479         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63480         requiring rpcgen.
63481         [cross-compiling] (extra-libs): Likewise.
63482         [cross-compiling] (extra-libs-others): Likewise.
63483         [cross-compiling] (librpcsvc-routines): Likewise.
63484         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63485         [cross-compiling] (omit-deps): Likewise.
63486         (sunrpc-CPPFLAGS): New variable.
63487         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63488         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63489         (cross-rpcgen-objs): New variable.
63490         (extra-objs): Append $(cross-rpcgen-objs).
63491         ($(cross-rpcgen-objs)): New rule.
63492         ($(objpfx)cross-rpcgen): Likewise.
63493         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63494         comment.
63495         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63496         ($(objpfx)x%.stmp): Likewise.
63497         * sunrpc/proto.h [IS_IN_build] (_): Define.
63498         [IS_IN_build] (_libc_intl_domainname): Likewise.
63499
63500 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63501
63502         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63503         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63504         and R_X86_64_TPOFF64.
63505
63506 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63507
63508         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63509         sysdeps/unix/sysv/syscalls.list.
63510         (stime): Likewise.
63511         (utime): Likewise.
63512         * sysdeps/unix/sysv/syscalls.list: Remove file.
63513
63514 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         [BZ #3440]
63517         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63518         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63519         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63520         (__LC_IDENTIFICATION): Make these macros useful in #if
63521         expressions, as required by C99.
63522
63523 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63524
63525         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63526         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63527         after this.
63528
63529 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63530
63531         * stdlib/longlong.h: Updated from GCC.
63532
63533 2012-05-09  Andreas Jaeger  <aj@suse.de>
63534
63535         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63536         default is first entry.
63537         (run_mode): Set type.
63538         (main): Remove informal message about syslog.
63539         (options): Fix typo.
63540
63541         [BZ #14053]
63542         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63543         to asm.
63544         (lrint): Likewise.
63545         (llrintf): Likewise.
63546         (llrint): Likewise.
63547         (rint): Likewise.
63548         (rintf): Likewise.
63549         (nearbyint): Likewise.
63550         (nearbyintf): Likewise.
63551
63552 2012-05-09  Andreas Jaeger  <aj@suse.de>
63553             Pedro Alves  <palves@redhat.com>
63554
63555         * nscd/nscd.c (run_mode): Use enum.
63556         (main): Cleanup coding style issue.
63557
63558 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63559             Andreas Jaeger  <aj@suse.de>
63560
63561         * nscd/nscd.c (go_background): Replaced with...
63562         (run_mode): ... this.
63563         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63564         (options): Add -F --foreground.
63565         (main): Implement it.
63566         (parse_opt): Parse it.
63567
63568 2012-05-09  Andreas Jaeger  <aj@suse.de>
63569
63570         [BZ #14083]
63571         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63572         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63573         -Wconversion warning.
63574         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63575         Likewise.
63576
63577 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63578
63579         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63580         == 0.
63581         (LC_ALL): Use macro-int-constant.
63582         (LC_COLLATE): Likewise.
63583         (LC_CTYPE): Likewise.
63584         (LC_MESSAGES): Likewise.
63585         (LC_MONETARY): Likewise.
63586         (LC_NUMERIC): Likewise.
63587         (LC_TIME): Likewise.
63588         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63589         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63590         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63591         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63592         Specify type.
63593         [C99-based standards] (float_t): Expect type.
63594         [C99-based standards] (double_t): Expect type.
63595         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63596         type.
63597         [C99-based standards] (HUGE_VALL): Likewise.
63598         [C99-based standards] (INFINITY): Likewise.
63599         [C99-based standards] (NAN): Likewise.
63600         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63601         [C99-based standards] (FP_NAN): Likewise.
63602         [C99-based standards] (FP_NORMAL): Likewise.
63603         [C99-based standards] (FP_SUBNORMAL): Likewise.
63604         [C99-based standards] (FP_ZERO): Likewise.
63605         [C99-based standards] (FP_FAST_FMA): Use
63606         optional-macro-int-constant.  Specify type.  Require == 1.
63607         [C99-based standards] (FP_FAST_FMAF): Likewise.
63608         [C99-based standards] (FP_FAST_FMAL): Likewise.
63609         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63610         [C99-based standards] (FP_ILOGBNAN): Likewise.
63611         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63612         Specify type.
63613         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63614         [C99-based standards] (math_errhandling): Specify type.
63615         [ISO99 || ISO11] (signgam): Do not allow.
63616         [non-C99-based standards] (copysignf): Do not allow.
63617         [non-C99-based standards] (exp2f): Likewise.
63618         [non-C99-based standards] (log2f): Likewise.
63619         [non-C99-based standards] (modff): Allow.
63620         [non-C99-based standards] (erff): Do not allow.
63621         [non-C99-based standards] (erfcf): Likewise.
63622         [non-C99-based standards] (gammaf): Likewise.
63623         [non-C99-based standards] (hypotf): Likewise.
63624         [non-C99-based standards] (j0f): Likewise.
63625         [non-C99-based standards] (j1f): Likewise.
63626         [non-C99-based standards] (jnf): Likewise.
63627         [non-C99-based standards] (lgammaf): Likewise.
63628         [non-C99-based standards] (tgammaf): Likewise.
63629         [non-C99-based standards] (y0f): Likewise.
63630         [non-C99-based standards] (y1f): Likewise.
63631         [non-C99-based standards] (ynf): Likewise.
63632         [non-C99-based standards] (isnanf): Likewise.
63633         [non-C99-based standards] (acoshf): Likewise.
63634         [non-C99-based standards] (asinhf): Likewise.
63635         [non-C99-based standards] (atanhf): Likewise.
63636         [non-C99-based standards] (cbrtf): Likewise.
63637         [non-C99-based standards] (expm1f): Likewise.
63638         [non-C99-based standards] (ilogbf): Likewise.
63639         [non-C99-based standards] (log1pf): Likewise.
63640         [non-C99-based standards] (logbf): Likewise.
63641         [non-C99-based standards] (nextafterf): Likewise.
63642         [non-C99-based standards] (remainderf): Likewise.
63643         [non-C99-based standards] (rintf): Likewise.
63644         [non-C99-based standards] (scalbf): Likewise.
63645         [non-C99-based standards] (copysignl): Likewise.
63646         [non-C99-based standards] (exp2l): Likewise.
63647         [non-C99-based standards] (log2l): Likewise.
63648         [non-C99-based standards] (modfl): Allow.
63649         [non-C99-based standards] (erfl): Do not allow.
63650         [non-C99-based standards] (erfcl): Likewise.
63651         [non-C99-based standards] (gammal): Likewise.
63652         [non-C99-based standards] (hypotl): Likewise.
63653         [non-C99-based standards] (j0l): Likewise.
63654         [non-C99-based standards] (j1l): Likewise.
63655         [non-C99-based standards] (jnl): Likewise.
63656         [non-C99-based standards] (lgammal): Likewise.
63657         [non-C99-based standards] (tgammal): Likewise.
63658         [non-C99-based standards] (y0l): Likewise.
63659         [non-C99-based standards] (y1l): Likewise.
63660         [non-C99-based standards] (ynl): Likewise.
63661         [non-C99-based standards] (isnanl): Likewise.
63662         [non-C99-based standards] (acoshl): Likewise.
63663         [non-C99-based standards] (asinhl): Likewise.
63664         [non-C99-based standards] (atanhl): Likewise.
63665         [non-C99-based standards] (cbrtl): Likewise.
63666         [non-C99-based standards] (expm1l): Likewise.
63667         [non-C99-based standards] (ilogbl): Likewise.
63668         [non-C99-based standards] (log1pl): Likewise.
63669         [non-C99-based standards] (logbl): Likewise.
63670         [non-C99-based standards] (nextafterl): Likewise.
63671         [non-C99-based standards] (remainderl): Likewise.
63672         [non-C99-based standards] (rintl): Likewise.
63673         [non-C99-based standards] (scalbl): Likewise.
63674         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63675         [non-C99-based standards] (FP_*): Do not allow.
63676         [C99-based standards] (FP_*): Change to
63677         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63678         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63679         allow.
63680         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63681         (SIG_ERR): Likewise.
63682         [X/Open-based standards] (SIG_HOLD): Likewise.
63683         (SIG_IGN): Likewise.
63684         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63685         positive value.
63686         (SIGFPE): Likewise.
63687         (SIGILL): Likewise.
63688         (SIGINT): Likewise.
63689         (SIGSEGV): Likewise.
63690         (SIGTER): Likewise.
63691         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63692         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63693         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63694         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63695         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63696         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63697         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63698         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63699         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63700         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63701         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63702         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63703         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63704         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63705         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63706         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63707         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63708         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63709         [X/Open-based standards] (SIGTRAP): Likewise.
63710         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63711         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63712         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63713         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63714         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63715         allow.
63716
63717 2012-05-08  Ian Wienand  <ianw@vmware.com>
63718
63719         [BZ #14080]
63720         * time/tzset.c (__tzset_parse_tz): Update default rules for
63721         daylight time changes in the Energy Policy Act of 2005.
63722
63723 2012-05-09  Andreas Jaeger  <aj@suse.de>
63724
63725         [BZ #13983]
63726         * elf/ldconfig.c (parse_conf): Change string to make clear that
63727         ldconfig only issued a warning if ld.so.conf does not exist.
63728
63729 2012-05-08  David S. Miller  <davem@davemloft.net>
63730
63731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63732         movxtod instead of popping the value on the stack.
63733
63734         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63735
63736 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63737
63738         * config.h.in: Add HAVE_ARM_PCS_VFP.
63739
63740 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63741
63742         [BZ #13979]
63743         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63744         checking but the checks are disabled for any reason.
63745
63746 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63747
63748         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63749         and ELF64_R_TYPE with ELFW(R_TYPE).
63750
63751 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63752
63753         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63754         (ulimit): Likewise.
63755
63756         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63757         (settimeofday): Likewise.
63758
63759 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63760
63761         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63762         a struct th_u2 inside the union, and move tu_block/tu_code into
63763         a new th_u3 union of tu_block/tu_code inside of that.  Move
63764         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63765         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63766         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63767         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63768         (th_stuff): Change to th_u1.tu_stuff.
63769         (th_data): Define.
63770         (th_msg): Change to th_u1.th_u2.tu_data.
63771
63772 2012-05-07  David S. Miller  <davem@davemloft.net>
63773
63774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63775
63776         [BZ #14074]
63777         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63778         (SETUP_PIC_REG): Use it.
63779         (SETUP_PIC_REG_LEAF): Use it.
63780
63781 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63782
63783         [BZ #13885]
63784         [BZ #13923]
63785         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63786         USE_AS_EXPM1L.
63787         (EXPL_FINITE): Likewise.
63788         (FLDLOG): Likewise.
63789         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63790         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63791         e_expl.S.
63792         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63793         USE_AS_EXPM1L.
63794         (EXPL_FINITE): Likewise.
63795         (FLDLOG): Likewise.
63796         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63797         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63798         e_expl.S.
63799         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63800         test of -max_value argument for long double.
63801         * sysdeps/i386/fpu/libm-test-ulps: Update.
63802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63803
63804 2012-05-06  David S. Miller  <davem@davemloft.net>
63805
63806         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63807         quad soft-float symbols whose references which are compiler
63808         generated.
63809         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63810
63811 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63812
63813         [BZ #13884]
63814         [BZ #13914]
63815         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63816         USE_AS_EXP10L.
63817         (EXPL_FINITE): Likewise.
63818         (FLDLOG): Likewise.
63819         (c0): Likewise.
63820         (c1): Likewise.
63821         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63822         Adjust comments for base varying.
63823         (__expl_finite): Change alias to EXPL_FINITE.
63824         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63825         e_expl.S.
63826         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63827         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63828         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63829         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63830         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63831         USE_AS_EXP10L.
63832         (EXPL_FINITE): Likewise.
63833         (FLDLOG): Likewise.
63834         (c0): Likewise.
63835         (c1): Likewise.
63836         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63837         Adjust comments for base varying.
63838         (__expl_finite): Change alias to EXPL_FINITE.
63839         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63840         tests for bugs.
63841         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63842
63843         [BZ #14064]
63844         * math/libm-test.inc (check_float_internal): Correct ulp
63845         calculation for subnormal expected results.
63846
63847 2012-05-06  Andreas Jaeger  <aj@suse.de>
63848
63849         * Makeconfig (+math-flags): New, set to -frounding-math.
63850         (+cflags): Add +math-flags so that all of glibc gets compiled with
63851         it.
63852
63853         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63854
63855 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63856
63857         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63858         Disable one test.
63859
63860         [BZ #13787]
63861         [BZ #13922]
63862         [BZ #14036]
63863         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63864         (__ieee754_expl): Allow for and saturate large arguments.
63865         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63866         (u_threshold): Likewise.
63867         (__exp): Call __ieee754_exp before checking for overflow and
63868         underflow.
63869         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63870         (u_threshold): Likewise.
63871         (__expf): Call __ieee754_expf before checking for overflow and
63872         underflow.
63873         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63874         (u_threshold): Likewise.
63875         (__expl): Call __ieee754_expl before checking for overflow and
63876         underflow.
63877         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63878         (__ieee754_expl): Allow for and saturate large arguments.
63879         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63880         missing overflow exception on overflow.
63881         (expm1_test): Do not allow missing overflow exception on overflow.
63882
63883         * sysdeps/i386/fpu/e_expl.c: Move to ...
63884         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63885         rather than using inline asm.
63886         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63887         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63888         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63889
63890         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63891         (nice): Likewise.
63892         (poll): Likewise.
63893         (signal): Likewise.
63894         (time): Likewise.
63895         (times): Likewise.
63896
63897 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63898
63899         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63900         sysdeps/unix/common/syscalls.list.
63901         (fchmod): Likewise.
63902         (fchown): Likewise.
63903         (ftruncate): Likewise.
63904         (getrusage): Likewise.
63905         (gettimeofday): Likewise.
63906         (setpgid): Likewise.
63907         (setregid): Likewise.
63908         (setreuid): Likewise.
63909         (sigaction): Likewise.
63910         (truncate): Likewise.
63911         (vhangup): Likewise.
63912         * sysdeps/unix/common/syscalls.list: Remove file.
63913         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63914         * sysdeps/unix/sysv/linux/Implies: Likewise.
63915
63916 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63917
63918         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63919         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63920         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63921         Moved to ...
63922         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63923         Here.
63924         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63925         to ...
63926         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63927         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63928         to ...
63929         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63930         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63931         to ...
63932         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63933         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63934         to ...
63935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63936         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63937         to ...
63938         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63939         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63940         to ...
63941         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63942         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63943         to ...
63944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63945         Here.
63946         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63947         to ...
63948         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63949         Here.
63950         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63951         to ...
63952         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63953         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63954         Moved to ...
63955         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63956         Here.
63957         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63958         to ...
63959         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63960
63961 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63962
63963         * sysdeps/unix/common/bits/dirent.h: Remove file.
63964         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63965
63966         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63967         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63968         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63969         * sysdeps/unix/bsd/isatty.c: Likewise.
63970         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63971         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63972         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63973
63974 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63975
63976         [BZ #13563]
63977         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63978         long double comparison inaccuracies.
63979         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63980         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63981
63982 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63983
63984         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63985         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63986
63987 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63988
63989         [BZ #14049]
63990         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63991         nonzero digits before rounding a hex value.
63992         * stdlib/tst-strtod.c (tests): Add another test.
63993
63994 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63995
63996         * sysdeps/s390/fpu/libm-test-ulps: Update.
63997
63998 2012-05-03  Andreas Jaeger  <aj@suse.de>
63999
64000         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64001         does not get optimized out.
64002         (malloc_opt_barrier): New.
64003
64004 2012-05-03  Andreas Jaeger  <aj@suse.de>
64005             Roland McGrath  <roland@hack.frob.com>
64006
64007         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64008         intermediate file deletion.
64009         (generated): Add .symlist files.
64010
64011 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64012
64013         [BZ #13775]
64014         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64015         Redirect under this condition.
64016         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64017         [__USE_GNU] (__dprintf_chk): Not under this condition.
64018         [__USE_GNU] (__vdprintf_chk): Likewise.
64019         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64020         under this condition.
64021         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64022         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64023         [__USE_XOPEN2K8] (vdprintf): Likewise.
64024         [__USE_GNU] (__dprintf_chk): Not under this condition.
64025         [__USE_GNU] (__vdprintf_chk): Likewise.
64026         [__USE_GNU] (dprintf): Likewise.
64027         [__USE_GNU] (vdprintf): Likewise.
64028
64029 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64030
64031         * elf/Makefile (common-generated): Set this instead of generated for
64032         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64033         $(all-built-dso)-derived lists.
64034
64035 2012-05-03  Andreas Jaeger  <aj@suse.de>
64036
64037         * sysdeps/i386/fpu/libm-test-ulps: Update.
64038
64039         * FAQ: Removed.
64040         * FAQ.in: Likewise.
64041         * scripts/gen-FAQ.pl: Likewise.
64042         * manual/install.texi (Installation): Point to online location of
64043         FAQ.
64044         * Makefile (files-for-dist): Remove FAQ.
64045         (FAQ): Remove.
64046
64047 2012-05-02  Allan McRae  <allan@archlinux.org>
64048
64049         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64050         (LDFLAGS-reldepmod5.so): Likewise.
64051         (LDFLAGS-reldep6mod1.so): Likewise.
64052         (LDFLAGS-reldep6mod4.so): Likewise.
64053         (LDFLAGS-reldep8mod3.so): Likewise.
64054         (LDFLAGS-unload4mod1.so): Likewise.
64055         (LDFLAGS-unload4mod2.so): Likewise.
64056         (LDFLAGS-tst-initorder): Likewise.
64057         (LDFLAGS-tst-initordera2.so): Likewise.
64058         (LDFLAGS-tst-initordera3.so): Likewise.
64059         (LDFLAGS-tst-initordera4.so): Likewise.
64060         (LDFLAGS-tst-initorderb2.so): Likewise.
64061         (LDFLAGS-noload): Likewise.
64062         (LDFLAGS-next): Likewise.
64063         (LDFLAGS-order2mod1.so): Likewise.
64064         (LDFLAGS-order2mod2.so): Likewise.
64065         (LDFLAGS-tst-initorder2): Likewise.
64066         (LDFLAGS-tst-initorder2a.so): Likewise.
64067         (LDFLAGS-tst-initorder2b.so): Likewise.
64068         (LDFLAGS-tst-initorder2c.so): Likewise.
64069         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64070
64071 2012-05-02  David S. Miller  <davem@davemloft.net>
64072
64073         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64074
64075 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64076
64077         [BZ #14055]
64078         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64079
64080 2012-05-02  Andreas Jaeger  <aj@suse.de>
64081
64082         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64083         since we manipulate rounding mode.
64084         (CPPFLAGS-test-idouble.c): Likewise.
64085         (CPPFLAGS-test-ifloat.c): Likewise.
64086         (CFLAGS-test-ldouble.c): Likewise.
64087         (CFLAGS-test-double.c): Likewise.
64088         (CFLAGS-test-float.c): Likewise.
64089         (CFLAGS-test-misc.c): Likewise.
64090         (CFLAGS-test-test-fenv.c): Likewise.
64091
64092 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64093
64094         [BZ #2550]
64095         [BZ #2570]
64096         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64097         comparisons to determine direction to adjust input.
64098
64099 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64100
64101         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64102         output to the target.
64103
64104         * scripts/localplt.awk: New file.
64105         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64106         (check-localplt-CFLAGS): Variable removed.
64107         ($(all-built-dso:=.jmprel)): New static pattern rule.
64108         (generated): Add those targets.
64109         (localplt-built-dso): New variable.
64110         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64111
64112         * elf/check-localplt.c: File removed.
64113
64114         * scripts/check-execstack.awk: New file.
64115         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64116         (check-execstack-CFLAGS): Variable removed.
64117         ($(objpfx)check-execstack.h): Target removed.
64118         ($(objpfx)execstack-default): New target.
64119         (generated): Add that instead of check-execstack.h.
64120         ($(all-built-dso:=.phdr)): New static pattern rule.
64121         (generated): Add those targets.
64122         * elf/check-execstack.c: File removed.
64123
64124         * scripts/check-textrel.awk: New file.
64125         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64126         (check-textrel-CFLAGS): Variable removed.
64127         (all-built-dso): Use := to define.o
64128         ($(all-built-dso:=.dyn)): New static pattern rule.
64129         (generated): Add those targets.
64130         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64131         * config.make.in (READELF): New substituted variable.
64132         * elf/check-textrel.c: File removed.
64133
64134 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64135
64136         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64137         allow.
64138         * conform/data/ctype.h-data [C99-based standards] (isblank):
64139         Expect function.
64140         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64141         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64142         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64143         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64144         Specify type.  Require positive value.
64145         (EILSEQ): Likewise.
64146         (ERANGE): Likewise.
64147         [ISO || POSIX] (EILSEQ): Do not expect.
64148         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64149         Specify type.  Require positive value.
64150         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64151         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64152         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64153         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64154         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64155         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64156         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64157         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64158         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64159         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64160         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64161         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64162         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64163         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64164         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64165         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64166         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64167         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64168         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64169         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64170         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64171         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64172         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64173         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64174         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64175         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64176         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64177         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64178         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64179         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64180         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64181         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64182         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64183         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64184         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64185         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64186         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64187         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64188         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64189         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64190         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64191         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64192         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64193         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64194         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64195         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64196         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64197         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64198         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64199         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64200         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64201         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64202         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64203         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64204         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64205         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64206         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64207         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64208         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64209         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64210         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64211         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64212         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64213         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64214         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64215         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64216         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64217         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64218         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64219         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64220         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64221         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64222         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64223         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64224         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64225         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64226         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64227         Require >= 2.
64228         (FLT_ROUNDS): Expect as macro, not constant.
64229         (FLT_MANT_DIG): Use macro-int-constant.
64230         (DBL_MANT_DIG): Likewise.
64231         (LDBL_MANT_DIG): Likewise.
64232         (FLT_DIG): Likewise.
64233         (DBL_DIG): Likewise.
64234         (LDBL_DIG): Likewise.
64235         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64236         (DBL_MIN_EXP): Likewise.
64237         (LDBL_MIN_EXP): Likewise.
64238         (FLT_MAX_EXP): Use macro-int-constant.
64239         (DBL_MAX_EXP): Likewise.
64240         (LDBL_MAX_EXP): Likewise.
64241         (FLT_MAX_10_EXP): Likewise.
64242         (DBL_MAX_10_EXP): Likewise.
64243         (LDBL_MAX_10_EXP): Likewise.
64244         (FLT_MAX): Use macro-constant.
64245         (DBL_MAX): Likewise.
64246         (LDBL_MAX): Likewise.
64247         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64248         (DBL_EPSILON): Likewise.
64249         (LDBL_EPSILON): Likewise.
64250         (FLT_MIN): Likewise.
64251         (DBL_MIN): Likewise.
64252         (LDBL_MIN): Likewise.
64253         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64254         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64255         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64256         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64257         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64258         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64259         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64260         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64261         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64262         [ISO11] (FLT_TRUE_MIN): Likewise.
64263         [ISO11] (LDBL_TRUE_MIN): Likewise.
64264         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64265         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64266         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64267         (SCHAR_MAX): Likewise.
64268         (UCHAR_MAX): Likewise.
64269         (CHAR_MIN): Likewise.
64270         (CHAR_MAX): Likewise.
64271         (MB_LEN_MAX): Use macro-int-constant.
64272         (SHRT_MIN): Use macro-int-constant.  Specify type.
64273         (SHRT_MAX): Likewise.
64274         (USHRT_MAX): Likewise.
64275         (INT_MAX): Likewise.
64276         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64277         bound negative.
64278         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64279         bound with "U".
64280         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64281         bound with "L".
64282         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64283         bound negative.  Suffix upper bound with "L".
64284         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64285         bound with "UL".
64286         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64287         Specify type.
64288         [C99-based standards] (LLONG_MAX): Likewise.
64289         [C99-based standards] (ULLONG_MAX): Likewise.
64290         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64291         == 0.
64292         [ISO11] (max_align_t): Require type.
64293         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64294
64295         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64296         from $CFLAGS, without defining away __attribute__ calls.
64297         (checknamespace): Use $CFLAGS_namespace.
64298
64299         * conform/conformtest.pl (@keywords): Only include C99 keywords
64300         for standards based on C99 or C11.
64301
64302         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64303         Disable tests.
64304         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64305         UNIX98]: Likewise.
64306
64307         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64308         usability of symbols in #if.
64309
64310         * conform/conformtest.pl: If macro or constant types start
64311         "promoted:", expect the symbol to be of the following type
64312         promoted by the integer promotions.
64313
64314         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64315         in one place.  Also handle "macro-constant".
64316
64317         * conform/conformtest.pl: Only accept expected macro values with
64318         "==".  Parse all "macro" lines in one place.
64319         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64320
64321         * conform/conformtest.pl: Handle braced types on "constant" lines
64322         instead of handling "typed-constant".
64323         * conform/data/signal.h-data: Use "constant" instead of
64324         "typed-constant".
64325
64326         * conform/conformtest.pl: Handle "optional-" at start of lines in
64327         one place rather than duplicating several cases.  Handle each
64328         format of "macro" line with initial "optional-".
64329
64330         * conform/conformtest.pl: Only accept expected constant or
64331         optional-constant values with "==".  Parse all "constant" lines in
64332         one place.  Parse all "optional-constant" lines in one place.
64333         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64334         * conform/data/fmtmsg.h-data: Likewise.
64335         * conform/data/netinet/in.h-data: Likewise.
64336         * conform/data/tar.h-data: Likewise.
64337         * conform/data/limits.h-data: Use "==" form on "constant" and
64338         "optional-constant" lines.
64339
64340         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64341         Use -std=c99 for XOPEN2K.
64342         (@knownproblems): Remove.
64343         (newtoken): Don't check %isknown.
64344
64345         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64346         Do not expect macro.
64347         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64348         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64349         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64350         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64351         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64352         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64353         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64354         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64355         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64356         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64357         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64358         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64359         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64360         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64361         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64362         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64363         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64364         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64365         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64366         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64367         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64368         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64369         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64370         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64371         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64372         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64373         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64374         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64375         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64376         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64377         [XPG3] (acosh): Likewise.
64378         [XPG3] (asinh): Likewise.
64379         [XPG3] (atanh): Likewise.
64380         [XPG3] (cbrt): Likewise.
64381         [XPG3] (expm1): Likewise.
64382         [XPG3] (ilogb): Likewise.
64383         [XPG3] (log1p): Likewise.
64384         [XPG3] (logb): Likewise.
64385         [XPG3] (nextafter): Likewise.
64386         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64387         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64388         [XPG3] (remainder): Likewise.
64389         [XPG3] (rint): Likewise.
64390         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64391         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64392         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64393         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64394         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64395         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64396         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64397         [UNIX98 || XOPEN2K] (scalb): Expect.
64398         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64399         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64400         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64401         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64402         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64403         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64404         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64405         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64406         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64407         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64408         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64409         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64410         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64411         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64412         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64413         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64414         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64415         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64416         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64417         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64418         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64419         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64420         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64421         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64422         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64423         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64424         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64425         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64426         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64427         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64428         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64429         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64430         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64431         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64432         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64433         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64434         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64435         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64436         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64437         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64438         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64439         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64440         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64441         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64442         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64443         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64444         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64445         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64446         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64447         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64448         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64449         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64450         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64451         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64452         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64453         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64454         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64455         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64456         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64457         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64458         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64459         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64460         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64461         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64462         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64463         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64464         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64465         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64466         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64467         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64468         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64469         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64470         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64471         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64472         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64473         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64474         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64475         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64476         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64477         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64478         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64479         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64480         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64481         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64482         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64483         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64484         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64485         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64486         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64487         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64488         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64489         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64490         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64491         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64492         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64493         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64494         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64495         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64496         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64497         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64498         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64499         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64500         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64501         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64502         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64503         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64504         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64505         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64506         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64507         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64508         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64509         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64510         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64511         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64512         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64513         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64514         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64515         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64516         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64517         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64518         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64519         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64520         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64521         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64522         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64523         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64524         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64525         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64526         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64527         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64528         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64529         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64530         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64531         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64532         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64533         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64534         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64535
64536         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64537         _XOPEN_SOURCE_EXTENDED for XPG4.
64538
64539         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64540
64541         * Makeconfig (localtime): Remove variable.
64542         (inst_localtime-file): Likewise.
64543
64544 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64545
64546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64547         Update.
64548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64549         Update.
64550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64551         Update.
64552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64553         Update.
64554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64555         Update.
64556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64557         Update.
64558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64559         Update.
64560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64561         Update.
64562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64563         Update.
64564
64565 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64566
64567         [BZ #2550]
64568         [BZ #2570]
64569         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64570         comparisons to determine direction to adjust input.
64571         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64572         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64573         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64574         Likewise.
64575         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64576         Likewise.
64577         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64578         Likewise.
64579         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64580         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64581         Likewise.
64582         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64583         Likewise.
64584         * math/libm-test.inc (nexttoward_test): Add more tests.
64585
64586 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64587
64588         [BZ #14040]
64589         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64590         in version GLIBC_2.1, not GLIBC_2.0.
64591         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64592         Likewise.
64593
64594 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64595
64596         [BZ #13942]
64597         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64598         (1 - x) * (1 + x).
64599         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64600         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64601         * math/libm-test.inc (acos_test): Add more tests.
64602         (asin_test): Likewise.
64603         * sysdeps/i386/fpu/libm-test-ulps: Update.
64604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64605
64606         [BZ #14034]
64607         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64608         of square root.
64609         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64610         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64611         * math/libm-test.inc (acos_test_tonearest): New function.
64612         (acos_test_towardzero): Likewise.
64613         (acos_test_downward): Likewise.
64614         (acos_test_upward): Likewise.
64615         (asin_test_tonearest): Likewise.
64616         (asin_test_towardzero): Likewise.
64617         (asin_test_downward): Likewise.
64618         (asin_test_upward): Likewise.
64619         (main): Call the new functions.
64620         * sysdeps/i386/fpu/libm-test-ulps: Update.
64621         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64622
64623         [BZ #13884]
64624         [BZ #13924]
64625         * math/e_exp10.c: Include <float.h>.
64626         (__ieee754_exp10): Handle underflow here rather than multiplying
64627         large negative argument by M_LN10.
64628         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64629         of __ieee754_expf.
64630         * math/e_exp10l.c: Include <float.h>.
64631         (__ieee754_exp10l): Handle underflow here rather than multiplying
64632         large negative argument by M_LN10l.
64633         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64634         spurious overflow exception on underflow.
64635
64636 2012-04-29  Marek Polacek  <polacek@redhat.com>
64637
64638         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64639         (__fortify_function): New macro.
64640         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64641         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64642         __extern_always_inline.
64643         * libio/bits/stdio2.h: Likewise.
64644         * libio/bits/stdio.h: Likewise.
64645         * string/string.h: Likewise.
64646         * string/bits/string3.h: Likewise.
64647         * include/stdio.h: Likewise.
64648         * stdlib/bits/stdlib.h: Likewise.
64649         * stdlib/stdlib.h: Likewise.
64650         * rt/bits/mqueue2.h: Likewise.
64651         * rt/mqueue.h: Likewise.
64652         * posix/bits/unistd.h: Likewise.
64653         * posix/unistd.h: Likewise.
64654         * io/bits/poll2.h: Likewise.
64655         * io/bits/fcntl2.h: Likewise.
64656         * io/fcntl.h: Likewise.
64657         * io/sys/poll.h: Likewise.
64658         * misc/bits/syslog.h: Likewise.
64659         * misc/bits/syslog-ldbl.h: Likewise.
64660         * misc/sys/syslog.h: Likewise.
64661         * socket/bits/socket2.h: Likewise.
64662         * socket/sys/socket.h: Likewise.
64663         * debug/tst-chk1.c: Likewise.
64664         * wcsmbs/bits/wchar2.h: Likewise.
64665         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64666         * wcsmbs/wchar.h: Likewise.
64667
64668 2012-04-29  Andreas Jaeger  <aj@suse.de>
64669
64670         * Makerules (tests): Remove enable-check-abi protection.
64671         (check-abi-warn): Remove.
64672         (check-abi-%): Remove check-abi-warn usage.
64673
64674         * configure.in: Remove check-abi configure option.
64675         * configure: Regenerated.
64676         * config.make.in (enable-check-abi): Remove.
64677
64678 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64679
64680         [BZ #14033]
64681         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64682         double functions to double *_finite functions.
64683
64684         [BZ #13941]
64685         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64686         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64687         LDBL_MIN_EXP.
64688         * stdio-common/Makefile (tests): Add tst-sprintf3.
64689         * stdio-common/tst-sprintf3.c: New file.
64690
64691         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64692         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64693
64694 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64695
64696         * conform/conformtest.pl: Remove duplicate typed-constant
64697         handling.
64698
64699 2012-04-28  David S. Miller  <davem@davemloft.net>
64700
64701         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64702         (check-abi-%): Remove AWK script prerequisite and explicit
64703         abilist directory.
64704         (check-abi): Rewrite to just diff the symlist with the abilist.
64705         (config-tls, config-abi-config): Delete, no longer used.
64706         (update-abi-%): Remove AWK script and explicit abilist directory.
64707         (update-abi): Rewrite to simply compare and conditionally copy the
64708         symlist and the sysdep abilist file.  Remove update-abi-config
64709         checks.
64710         * abilist/ld.abilist: Remove.
64711         * abilist/libBrokenLocale.abilist: Remove.
64712         * abilist/libanl.abilist: Remove.
64713         * abilist/libcrypt.abilist: Remove.
64714         * abilist/libdl.abilist: Remove.
64715         * abilist/librt.abilist: Remove.
64716         * abilist/libthread_db.abilist: Remove.
64717         * abilist/libutil.abilist: Remove.
64718         * scripts/extract-abilist.awk: Remove.
64719         * scripts/merge-abilist.awk: Remove.
64720         * sysdeps/generic/libcidn.abilist: New file.
64721         * sysdeps/generic/libnss_compat.abilist: New file.
64722         * sysdeps/generic/libnss_db.abilist: New file.
64723         * sysdeps/generic/libnss_dns.abilist: New file.
64724         * sysdeps/generic/libnss_files.abilist: New file.
64725         * sysdeps/generic/libnss_hesiod.abilist: New file.
64726         * sysdeps/generic/libnss_nis.abilist: New file.
64727         * sysdeps/generic/libnss_nisplus.abilist: New file.
64728         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64729         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64730         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64731         file.
64732         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64733         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64734         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64735         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64736         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64737         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64738         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64739         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64740         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64741         file.
64742         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64743         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64744         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64745         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64746         file.
64747         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64748         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64749         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64750         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64751         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64752         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64753         file.
64754         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64755         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64756         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64757         file.
64758         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64759         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64760         New file.
64761         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64762         New file.
64763         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64764         New file.
64765         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64766         New file.
64767         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64768         New file.
64769         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64770         New file.
64771         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64772         New file.
64773         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64774         New file.
64775         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64776         New file.
64777         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64778         New file.
64779         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64780         New file.
64781         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64782         New file.
64783         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64784         New file.
64785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64786         file.
64787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64788         New file.
64789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64790         New file.
64791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64792         file.
64793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64794         New file.
64795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64796         New file.
64797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64798         file.
64799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64800         New file.
64801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64802         New file.
64803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64804         New file.
64805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64806         New file.
64807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64808         New file.
64809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64810         New file.
64811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64812         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64813         file.
64814         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64815         New file.
64816         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64817         file.
64818         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64819         file.
64820         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64821         file.
64822         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64823         file.
64824         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64825         file.
64826         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64827         New file.
64828         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64829         file.
64830         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64831         file.
64832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64833         New file.
64834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64835         file.
64836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64837         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64838         file.
64839         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64840         New file.
64841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64842         file.
64843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64844         file.
64845         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64846         file.
64847         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64848         file.
64849         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64850         file.
64851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64852         New file.
64853         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64854         file.
64855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64856         file.
64857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64858         New file.
64859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64860         file.
64861         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64862         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64863         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64864         file.
64865         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64866         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64867         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64868         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64869         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64870         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64871         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64872         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64873         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64874         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64875         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64876         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64877         file.
64878         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64879         New file.
64880         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64881         file.
64882         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64883         file.
64884         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64885         file.
64886         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64887         file.
64888         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64889         file.
64890         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64891         New file.
64892         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64893         New file.
64894         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64895         file.
64896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64897         New file.
64898         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64899         file.
64900         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64901         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64902         file.
64903         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64904         New file.
64905         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64906         file.
64907         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64908         file.
64909         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64910         file.
64911         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64912         file.
64913         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64914         file.
64915         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64916         New file.
64917         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64918         New file.
64919         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64920         file.
64921         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64922         New file.
64923         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64924         file.
64925
64926 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64927
64928         * conform/conformtest.pl: Fix typo in handling typed-constant from
64929         allow-header.
64930
64931 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64932
64933         * README: Cut down references to pre-2.6 Linux kernels and
64934         Linuxthreads.  Update lists of configurations in libc and ports
64935         and sort alphabetically.  Say "or newer" with Linux kernel version
64936         requirements.
64937
64938         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64939
64940 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64941
64942         [BZ #887]
64943         * math/libm-test.inc (logb_test_downward): New test to expose
64944         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64945         rounding mode.
64946
64947 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64948
64949         [BZ #14027]
64950         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64951         to be done.
64952         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64953         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64954
64955 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64956
64957         * sysdeps/unix/i386/brk.S: Remove file.
64958         * sysdeps/unix/i386/dl-brk.S: Likewise.
64959         * sysdeps/unix/i386/pipe.S: Likewise.
64960         * sysdeps/unix/i386/sigreturn.S: Likewise.
64961         * sysdeps/unix/i386/syscall.S: Likewise.
64962         * sysdeps/unix/i386/vfork.S: Likewise.
64963         * sysdeps/unix/i386/wait.S: Likewise.
64964
64965         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64966         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64967
64968         * configure.in (arm*-none*): Do not allow without
64969         --enable-hacker-mode.
64970         (netbsd*): Remove case setting base_os.
64971         (386bsd*): Likewise.
64972         (freebsd*): Likewise.
64973         (bsdi*): Likewise.
64974         (osf*): Likewise.
64975         (sunos*): Likewise.
64976         (ultrix*): Likewise.
64977         (newsos*): Likewise.
64978         (dynix*): Likewise.
64979         (*bsd*): Likewise.
64980         (sysv*): Likewise.
64981         (isc*): Likewise.
64982         (esix*): Likewise.
64983         (sco*): Likewise.
64984         (minix*): Likewise.
64985         (irix4*): Likewise.
64986         (irix6*): Likewise.
64987         (solaris[2-9]*): Likewise.
64988         (none): Likewise.
64989         * configure: Regenerated.
64990
64991 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64992
64993         [BZ #11521]
64994         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64995         overflow or cancellation in calculating denominator.
64996         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64997         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64998         down expression to avoid unexpected rounding in newer GCCs.
64999         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65000
65001 2012-04-26  David S. Miller  <davem@davemloft.net>
65002
65003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65004         long-double compat symbols.
65005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65018
65019 2012-04-25  David S. Miller  <davem@davemloft.net>
65020
65021         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65022         HWCAP_* values only after the memory barriers have been defined.
65023         (atomic_full_barrier): Define.
65024         (atomic_read_barrier): Define.
65025         (atomic_write_barrier): Define.
65026
65027 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65028
65029         * shlib-versions: Add libgcc_s version information.
65030         * sysdeps/generic/libgcc_s.h: Remove.
65031         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65032         libgcc_s.h.
65033         * sysdeps/gnu/unwind-resume.c: Likewise.
65034         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65035
65036 2012-04-25  David S. Miller  <davem@davemloft.net>
65037
65038         * sysdeps/unix/sparc/brk.S: Delete.
65039         * sysdeps/unix/sparc/dl-brk.S: Delete.
65040         * sysdeps/unix/sparc/pipe.S: Delete.
65041         * sysdeps/unix/sparc/sysdep.S: Delete.
65042         * sysdeps/unix/sparc/sysdep.h: Delete.
65043         * sysdeps/unix/sparc/vfork.S: Delete.
65044         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65045         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65046         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65047         (ret_ERRVAL, r0, r1, MOVE): Define.
65048         (JUMPTARGET): Remove.
65049         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65050         sysdeps/unix/sparc/sysdep.h
65051         (ENTRY, END): Remove.
65052         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65053
65054 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65055
65056         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65057         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65058         -DIS_IN_build.
65059
65060         * timezone/README: Update upstream location and email address for
65061         tzcode and tzdata.
65062         * timezone/zdump.c: Update from tzcode 2012b.
65063         * timezone/zic.c: Likewise.
65064
65065         * configure.in (libc_cv_as_needed): Remove test.
65066         * configure: Regenerated.
65067         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65068         conditional definition.
65069         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65070         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65071         * config.make.in (have-as-needed): Remove variable.
65072
65073 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65074             Paul Pluzhnikov  <ppluzhnikov@google.com>
65075
65076         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65077         strings correctly.
65078
65079 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65080
65081         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65082         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65083         * sysdeps/sh/strlen.S: Likewise.
65084
65085 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65086
65087         * sysdeps/unix/fork.S: Remove file.
65088         * sysdeps/unix/i386/fork.S: Likewise.
65089         * sysdeps/unix/sparc/fork.S: Likewise.
65090
65091         * sysdeps/unix/system.c: Remove file.
65092         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65093
65094         * sysdeps/unix/getegid.S: Remove file.
65095         * sysdeps/unix/geteuid.S: Likewise.
65096
65097 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65098
65099         * scripts/check-localplt.awk: New file.
65100         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65101         of diff.
65102         * scripts/data/localplt-generic.data: Add a comment.
65103
65104         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65105         NODE when __dir_mkfile failed.
65106         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65107         Reported by Ludovic Courtès <ludo@gnu.org>.
65108
65109 2012-04-24  Andreas Jaeger  <aj@suse.de>
65110
65111         * Makerules (common-clean): Also remove gen-as-const-headers
65112         files.
65113
65114 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65115
65116         * Makerules (native-compile): Do not change working directory for
65117         build.  Use $(OUTPUT_OPTION) in command.
65118         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65119
65120 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65121
65122         [BZ #13886]
65123         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65124         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65125         * math/libm-test.inc (floor_test): Add more tests.
65126         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65127
65128 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65129
65130         * sysdeps/unix/getdents.c: Remove file.
65131         * sysdeps/unix/sysv/getdents.c: Likewise.
65132         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65133
65134         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65135         sysdeps/unix/mman/syscalls.list.
65136         (mmap): Likewise.
65137         (mprotect): Likewise.
65138         (msync): Likewise.
65139         (munmap): Likewise.
65140         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65141         * sysdeps/unix/mman/syscalls.list: Remove.
65142         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65143
65144         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65145         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65146         * configure: Regenerated.
65147         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65148         $(libgcc_s_suffix).
65149         * config.make.in (libgcc_s_suffix): Remove variable.
65150
65151 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65152
65153         * sysdeps/unix/sysv/gethostname.c: Move to ...
65154         * sysdeps/posix/gethostname.c: ... here.
65155
65156         * sysdeps/unix/execve.S: Remove file.
65157
65158         * sysdeps/unix/_exit.S: Remove file.
65159
65160 2012-04-23  Andreas Jaeger  <aj@suse.de>
65161
65162         [BZ #13739]
65163         * manual/Makefile: Remove make dist support, there's no
65164         need for a stand-alone documentation tar ball.
65165         (TEXI2DVI): Define always, it's not in Makeconfig.
65166         (dist): Removed.
65167         (tar-it): Removed.
65168         (edition): Removed.
65169         (glibc-doc-$(edition).tar): Removed
65170         (%.Z): Removed.
65171         (%.gz): Removed.
65172         (%.uu): Removed.
65173         (ETAGS): Remove, it's in Makeconfig.
65174         (move-if-change): Remove, it's in Makeconfig.
65175
65176 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65177
65178         [BZ #13970]
65179         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65180         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65181         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65182         (strtod_l, strtof_l, strtold_l): Remove __wur.
65183         It is not necessarily an error to ignore strtol's return value.
65184         One can reliably look at the stored endptr to decide whether
65185         the number had valid syntax.
65186
65187 2012-04-21  Andreas Jaeger  <aj@suse.de>
65188
65189         [BZ #13739]
65190         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65191
65192 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65193
65194         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65195         * sysdeps/unix/sysv/Versions: Remove file.
65196
65197 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65198
65199         [BZ #13927]
65200         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65201
65202 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65203
65204         [BZ #7064]
65205         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65206         version from __vm86.
65207
65208 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65209
65210         * sysdeps/unix/common/lxstat.c: Remove file.
65211         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65212
65213         * sysdeps/unix/sysv/Makefile: Remove file.
65214
65215         * sysdeps/unix/sysv/direct.h: Remove file.
65216
65217         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65218         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65219         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65220         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65221         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65222         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65223         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65224
65225         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65226
65227         * sysdeps/unix/xmknod.c: Remove file.
65228         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65229
65230         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65231
65232         * sysdeps/unix/sysv/i386/time.S: Remove file.
65233
65234         * sysdeps/unix/fxstat.c: Remove file.
65235         * sysdeps/unix/xstat.c: Likewise.
65236         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65237
65238         * sysdeps/unix/sysv/sigaction.c: Remove file.
65239
65240         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65241         (sysdep_headers): Remove variable.
65242         [termio.h not in sysdep_headers] (generated): Likewise.
65243         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65244         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65245         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65246         * sysdeps/unix/sysv/tcflow.c: Likewise.
65247         * sysdeps/unix/sysv/tcflush.c: Likewise.
65248         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65249         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65250         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65251         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65252         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65253
65254         * sysdeps/unix/siglist.c: Remove file.
65255
65256         * sysdeps/unix/getppid.S: Remove file.
65257
65258         * sysdeps/unix/mkdir.c: Remove file.
65259         * sysdeps/unix/rmdir.c: Likewise.
65260
65261 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65262
65263         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65264         ERR_MAX value.
65265         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65266         errlist-compat value.
65267
65268 2012-04-18  David S. Miller  <davem@davemloft.net>
65269
65270         * sysdeps/generic/memcopy.h (reg_char): Delete.
65271         * debug/strcat_chk.c: Use char, not reg_char.
65272         * debug/strcpy_chk.c: Likewise.
65273         * debug/strncat_chk.c: Likewise.
65274         * debug/strncpy_chk.c: Likewise.
65275         * string/memchr.c: Likewise.
65276         * string/memrchr.c: Likewise.
65277         * string/rawmemchr.c: Likewise.
65278         * string/strcat.c: Likewise.
65279         * string/strchr.c: Likewise.
65280         * string/strchrnul.c: Likewise.
65281         * string/strcmp.c: Likewise.
65282         * string/strcpy.c: Likewise.
65283         * string/strncat.c: Likewise.
65284         * string/strncmp.c: Likewise.
65285         * string/strncpy.c: Likewise.
65286
65287 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65288
65289         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65290         __builtin_memcopy is called when src and dest ranges are known to not
65291         overlap.
65292
65293 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65294
65295         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65296         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65297         fwd_align_merge macro call.
65298         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65299         bwd_align_merge macro call.
65300         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65301
65302 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65303
65304         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65305         bwd_align_merge macros.
65306         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65307         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65308         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65309
65310 2012-04-18  David S. Miller  <davem@davemloft.net>
65311
65312         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65313
65314 2012-04-18  Andreas Jaeger  <aj@suse.de>
65315
65316         [BZ# 6794]
65317         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65318         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65319         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65320
65321         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65322         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65323         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65324
65325         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65326         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65327         Adjust for changed ldbl-128 files.
65328
65329         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65330         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65331         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65332
65333 2012-04-17  David S. Miller  <davem@davemloft.net>
65334
65335         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65336
65337 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65338
65339         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65340         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65341         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65342         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65343         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65344         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65345
65346 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65347
65348         [BZ #6794]
65349         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65350         * math/libm-test.inc: Add ilogb errno and exception tests.
65351         * math/w_ilogb.c: New file: ilogb wrapper.
65352         * math/w_ilogbf.c: New file: ilogbf wrapper.
65353         * math/w_ilogbl.c: New file: ilogbl wrapper.
65354         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65355         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65356         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65357         exception being thrown with 0.0 as argument.
65358         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65359         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65360         exception being thrown with 0.0 as argument.
65361         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65362         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65363         exception being thrown with 0.0 as argument.
65364         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65365         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65366         exception being thrown with 0.0 as argument.
65367         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65368         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65369         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65370         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65371         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65372         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65373         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65374         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65375         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65376
65377 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65378
65379         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65380         with altivec.
65381
65382 2012-04-16  Marek Polacek  <polacek@redhat.com>
65383
65384         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65385
65386 2012-04-16  Marek Polacek  <polacek@redhat.com>
65387
65388         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65389         operands of fdivp instruction.
65390
65391 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65392
65393         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65394         * elf/tst-auditmod3b.c: Likewise.
65395         * elf/tst-auditmod4b.c: Likewise.
65396         * elf/tst-auditmod5b.c: Likewise.
65397         * elf/tst-auditmod6b.c: Likewise.
65398         * elf/tst-auditmod6c.c: Likewise.
65399         * elf/tst-auditmod7b.c: Likewise.
65400         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65401         * sysdeps/x86_64/preconfigure.in: Likewise.
65402         * sysdeps/x86_64/preconfigure: Regenerated.
65403
65404 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65405
65406         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65407         __ILP32__.
65408
65409 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65410
65411         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65412         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65413
65414 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65415
65416         [BZ #13973]
65417         * locale/iso-639.def: Fix gl language name. Spotted by
65418         Yaron Shahrabani.
65419
65420 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65421
65422         [BZ #2074]
65423         * libio/libio.h (__io_write_fn): Update comment.
65424
65425 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65426
65427         [BZ #2074]
65428         * stdio.texi (Hook Functions): The user provided writer function
65429         is not allowed to return -1.
65430
65431 2012-04-11  David S. Miller  <davem@davemloft.net>
65432
65433         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65434
65435 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65436
65437         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65438         Add a leading slash to rtkaio.
65439
65440 2012-04-11  Jim Meyering  <meyering@redhat.com>
65441
65442         [BZ #11959]
65443         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65444         It is not necessarily an error to ignore fwrite's return
65445         value.  One can reliably use ferror to test for errors after
65446         the fact.
65447
65448 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65449
65450         * bits/types.h (__snseconds_t): New type.
65451         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65452
65453         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65454         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65455         (__SNSECONDS_T_TYPE): Likewise.
65456         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65457         (__SNSECONDS_T_TYPE): Likewise.
65458         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65459         (__SNSECONDS_T_TYPE): Likewise.
65460
65461 2012-04-10  Andreas Jaeger  <aj@suse.de>
65462
65463         [BZ #2636]
65464         * manual/time.texi (Processor Time): Return type of times is
65465         elapsed real time since an arbitrary point in the past.
65466         (CPU Time): Move CLK_TCK from here...
65467         (Processor Time): ...to here.  Correct description.
65468         * manual/conf.texi (Constants for Sysconf): Correct description of
65469         _SC_CLK_TCK.
65470
65471 2012-04-10  David S. Miller  <davem@davemloft.net>
65472
65473         [BZ #13967]
65474         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65475         where the is a gap between DT_REL(A) and DT_JMPREL.
65476
65477 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65478
65479         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65480         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65481         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65482
65483 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65484
65485         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65486         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65487         (dl_main): Handle --inhibit-cache.
65488         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65489         _dl_inhibit_cache.
65490         * elf/dl-load.c (_dl_map_object): Use it.
65491         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65492
65493 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65494
65495         [BZ #13872]
65496         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65497         (__ieee754_powl): Saturate large exponents rather than testing for
65498         overflow of y*log2(x).
65499         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65500         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65501         exceptions.
65502
65503         [BZ #11521]
65504         * math/s_ctan.c: Include <float.h>.
65505         (__ctan): Avoid internal overflow or cancellation in calculating
65506         denominator.
65507         * math/s_ctanf.c: Likewise.
65508         * math/s_ctanl.c: Likewise.
65509         * math/s_ctanh.c: Likewise.
65510         * math/s_ctanhf.c: Likewise.
65511         * math/s_ctanhl.c: Likewise.
65512         * math/libm-test.inc (ctan_test): Add more tests.
65513         (ctanh_test): Likewise.
65514         * sysdeps/i386/fpu/libm-test-ulps: Update.
65515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65516
65517 2012-04-09  Andreas Jaeger  <aj@suse.de>
65518
65519         [BZ #6894]
65520         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65521         is an optional BSD extension.
65522
65523         [BZ #10254]
65524         * manual/stdio.texi (Opening Streams): Document additional fopen
65525         parameters.
65526
65527 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65528
65529         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65530         %eax without telling the compiler.
65531
65532 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65533
65534         [BZ # 13963]
65535         * manual/install.texi: Use sourceware.org.
65536
65537 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65538
65539         [BZ #13873]
65540         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65541         (__ieee754_pow): Generate overflow and underflow using huge*huge
65542         and tiny*tiny rather than just returning constant infinity or zero
65543         for large exponents.
65544         * math/libm-test.inc (pow_test): Require overflow exceptions for
65545         applicable cases of large exponents.
65546
65547         [BZ #706]
65548         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65549         (__ieee754_pow): Use iterative multiplication algorithm only for
65550         integer exponents with absolute value below 1024.  Check for odd
65551         integer exponents when using algorithm for real exponents.
65552         * math/libm-test.inc (pow_test): Add more tests.
65553         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65554
65555 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65556
65557         [BZ #13705]
65558         * math/libm-test.inc (exp_test): Do not allow overflow exception
65559         on underflow test.
65560
65561 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65562
65563         [BZ #13705]
65564         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65565         instead of __kernel_standard_f.
65566
65567 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65568
65569         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65570         * sysdeps/x86_64/memset_chk.S: Likewise.
65571
65572 2012-04-08  Andreas Jaeger  <aj@suse.de>
65573
65574         [BZ #10153]
65575         * manual/startup.texi (Environment Access): Describe return value
65576         for putenv and setenv.
65577
65578         [BZ #6895]
65579         * manual/filesys.texi (Directory Entries): Add description for
65580         DT_LNK.
65581
65582         [BZ #6890]
65583         * manual/filesys.texi (Directory Entries): Clarify that it's file
65584         system not operating system in the description of DT_UNKNOWN.
65585
65586         [BZ #6578]
65587         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65588
65589 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65590
65591         [BZ #6649]
65592         * manual/llio.texi (Opening and Closing Files): Add cross
65593         reference to explain mode argument.
65594
65595 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65596
65597         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65598         * sysdeps/x86_64/memset_chk.S: Likewise.
65599
65600 2012-04-07  David S. Miller  <davem@davemloft.net>
65601
65602         * elf/elf.h (R_SPARC_WDISP10): Define.
65603         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65604         R_SPARC_SIZE32.
65605         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65606         R_SPARC_SIZE64 and R_SPARC_H34.
65607
65608 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65609
65610         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65611         conditions and remove no longer applicable assertion.
65612
65613 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65614
65615         * bits/byteswap.h: Include <features.h>.
65616         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65617         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65618
65619 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65620
65621         * bits/byteswap.h (__bswap_16): Removed.
65622         Include <bits/byteswap-16.h> to get __bswap_16.
65623         * sysdeps/i386/bits/byteswap.h: Likewise.
65624         * sysdeps/s390/bits/byteswap.h: Likewise.
65625         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65626         * bits/byteswap-16.h: New file.
65627         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65628         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65629         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65630         * string/Makefile (headers): Add bits/byteswap-16.h.
65631
65632 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65633
65634         [BZ #13895]
65635         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65636         extra indirection.
65637         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65638         * nss/tst-nss-static.c: New.
65639
65640 2012-04-06  Robert Millan  <rmh@gnu.org>
65641
65642         [BZ #6486]
65643         * manual/llio.texi (File Position Primitive): lseek
65644         refers to WHENCE when it really means OFFSET.
65645
65646 2012-04-06  Andreas Jaeger  <aj@suse.de>
65647
65648         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65649         strncmp declarations.
65650
65651         * abilist/libc.abilist: Add __poll and __ppoll.
65652
65653 2012-04-05  David S. Miller  <davem@davemloft.net>
65654
65655         * scripts/check-local-headers.sh: Accept a host triplet in the
65656         path matched by the exclude regexp.
65657
65658         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65659         definition.
65660         * sysdeps/powerpc/powerpc32/dl-machine.h
65661         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65662         * sysdeps/s390/s390-32/dl-machine.h
65663         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65664         * sysdeps/sparc/sparc32/dl-machine.h
65665         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65666         * sysdeps/sparc/sparc64/dl-machine.h
65667         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65668
65669         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65670         lazy binding.
65671         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65672         undefined symbol errors.
65673
65674         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65675         DT_NEEDED entries.
65676
65677 2012-04-05  Michael Matz  <matz@suse.de>
65678
65679         [BZ #13592]
65680         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65681
65682 2012-04-05  Andreas Jaeger  <aj@suse.de>
65683
65684         [BZ #13908]
65685         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65686         comment.
65687
65688 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65689
65690         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65691         which ROUND is no valid rounding mode.
65692
65693 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65694
65695         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65696         read again.
65697         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65698
65699 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65700
65701         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65702         an exception using FPU order intentionally.
65703
65704 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65705
65706         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65707         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65708         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65709         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65710
65711 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65712
65713         [BZ #12340]
65714         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65715         EINVAL when BUFLEN is too smal.
65716
65717 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65718
65719         [BZ #13553]
65720         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65721         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65722
65723 2012-04-03  Andreas Jaeger  <aj@suse.de>
65724
65725         [BZ #13938]
65726         * manual/setjmp.texi (System V contexts): Fix sentence.
65727
65728         [BZ #13926]
65729         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65730         New macro for this case.
65731         [!__GNUC__] (__bswap_64): New inline function for this case.
65732         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65733         * bits/byteswap.h: Likewise.
65734         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65735         ull, guard with __GLIBC_HAVE_LONG_LONG.
65736
65737         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65738         __GLIBC_HAVE_LONG_LONG.
65739
65740         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65741         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65742
65743 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65744
65745         [BZ #13691]
65746         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65747         inptr and inend, rather than using last_ch.
65748
65749 2012-04-02  David S. Miller  <davem@davemloft.net>
65750
65751         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65752         * stdio-common/printf-parse.h (read_int): Change return type to
65753         'int', return -1 on INT_MAX overflow.
65754         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65755         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65756         overflows INT_MAX.  Check for overflow of in-format-string precision
65757         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65758         SIZE_MAX not INT_MAX for integer overflow test.
65759         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65760         skip the construct in the format string but do not record anything.
65761         * stdio-common/bug22.c: Adjust to test both width/prevision
65762         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65763         explicitly for proper errno values.
65764
65765 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65766
65767         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65768         CHAR_MAX.
65769         * string/test-strcmp.c [! WIDE]: Likewise.
65770         * time/tst-mktime2.c: Likewise for INT_MAX.
65771         * string/test-string.h: #include <sys/param.h> for MIN.
65772
65773         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65774         * sysdeps/i386/init-first.c (init): Likewise.
65775         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65776         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65777         * sysdeps/sh/init-first.c (init): Likewise.
65778
65779 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65780
65781         * po/ru.po: Update from translation team.
65782         * po/vi.po: Likewise.
65783
65784 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65785
65786         * resolv/nss_dns/dns-host.c: Merge copyright years.
65787
65788 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65789
65790         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65791         Optimize memcpy with prefetch if
65792         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65793         src, dst pointers have unequal 16 byte alignments.
65794
65795 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65796
65797         [BZ #13928]
65798         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65799         from a CNAME entry and return the minimum ttl for the query.
65800         (gaih_getanswer_slice): Likewise.
65801
65802 2012-03-30  Jeff Law  <law@redhat.com>
65803
65804         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65805         due to long keys.
65806         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65807         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65808
65809         * resolv/nss_dns/dns-host.c: Update copyright year.
65810
65811 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65812
65813         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65814         requests to save a system call.  Fix check that all bytes are sent.
65815
65816         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65817         comments for sendmmsg.
65818
65819 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65820
65821         [BZ #13691]
65822         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65823         with only 1 character between 0x0041 and 0x01b0.
65824         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65825         * wcsmbs/tst-mbsnrtowcs.c: New file.
65826
65827 2012-03-29  David S. Miller  <davem@davemloft.net>
65828
65829         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65830         small copies by hand.
65831
65832 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65833
65834         [BZ #13761]
65835         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65836         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65837         group memberships.
65838
65839 2012-03-28  David S. Miller  <davem@davemloft.net>
65840
65841         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65842         that branches into memcpy.
65843         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65844         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65845         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65846         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65847         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65848         bits.
65849         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65850         implementation too.
65851         * sysdeps/sparc/mempcpy.S: New file.
65852
65853         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65854         the IFUNC routine in the libc case.
65855         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65856
65857         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65858         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65859         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65860         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65861         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65862         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65863         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65864         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65865
65866         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65867         loop to 256 bytes instead of 64 bytes and fix test signedness.
65868
65869         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65870         * sysdeps/sparc/sparc32/Makefile: rather than here...
65871         * sysdeps/sparc/sparc64/Makefile: and here.
65872
65873 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65874
65875         * malloc/mallocbug.c: Avoid warnings about unused variables.
65876
65877 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65878
65879         [BZ #13760]
65880         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65881         in the right place. Discard and retry query if response is
65882         larger than input buffer size.
65883
65884 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65885
65886         [BZ #369]
65887         [BZ #2678]
65888         [BZ #3866]
65889         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65890         x for large integer exponent.
65891         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65892         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65893         sign of result as needed afterwards.
65894         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65895         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65896         result for underflowing pow the same as for overflow.
65897         (__kernel_standard_l): Handle powl overflow and underflow here
65898         rather than calling __kernel_standard.
65899         * math/libm-test.inc (pow_test): Add more tests.
65900
65901         [BZ #3868]
65902         [BZ #13879]
65903         [BZ #13910]
65904         [BZ #13911]
65905         [BZ #13912]
65906         [BZ #13913]
65907         [BZ #13915]
65908         [BZ #13916]
65909         [BZ #13917]
65910         [BZ #13918]
65911         [BZ #13919]
65912         [BZ #13920]
65913         [BZ #13921]
65914         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65915         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65916         (__kernel_standard_l): New function.
65917         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65918         __kernel_standard.
65919         * math/w_acosl.c (__acosl): Likewise.
65920         * math/w_asinl.c (__asinl): Likewise.
65921         * math/w_atan2l.c (__atan2l): Likewise.
65922         * math/w_atanhl.c (__atanhl): Likewise.
65923         * math/w_coshl.c (__coshl): Likewise.
65924         * math/w_exp10l.c (__exp10l): Likewise.
65925         * math/w_exp2l.c (__exp2l): Likewise.
65926         * math/w_fmodl.c (__fmodl): Likewise.
65927         * math/w_hypotl.c (__hypotl): Likewise.
65928         * math/w_j0l.c (__j0l, __y0l): Likewise.
65929         * math/w_j1l.c (__j1l, __y1l): Likewise.
65930         * math/w_jnl.c (__jnl, __ynl): Likewise.
65931         * math/w_lgammal.c (__lgammal): Likewise.
65932         * math/w_log10l.c (__log10l): Likewise.
65933         * math/w_log2l.c (__log2l): Likewise.
65934         * math/w_logl.c (__logl): Likewise.
65935         * math/w_powl.c (__powl): Likewise.
65936         * math/w_remainderl.c (__remainderl): Likewise.
65937         * math/w_scalbl.c (sysv_scalbl): Likewise.
65938         * math/w_sinhl.c (__sinhl): Likewise.
65939         * math/w_sqrtl.c (__sqrtl): Likewise.
65940         * math/w_tgammal.c (__tgammal): Likewise.
65941         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65942         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65943         * math/libm-test.inc (acos_test): Add more tests.
65944         (acosh_test): Likewise.
65945         (asin_test): Likewise.
65946         (atanh_test): Likewise.
65947         (exp_test): Likewise.
65948         (exp10_test): Likewise.
65949         (exp2_test): Likewise.
65950         (expm1_test): Likewise.
65951         (lgamma_test): Likewise.
65952         (log_test): Likewise.
65953         (log10_test): Likewise.
65954         (log1p_test): Likewise.
65955         (log2_test): Likewise.
65956         (pow_test): Do not allow some spurious overflow exceptions.
65957         (sqrt_test): Add more tests.
65958         (tgamma_test): Likewise.
65959         (y0_test): Likewise.
65960         (y1_test): Likewise.
65961         (yn_test): Likewise.
65962
65963 2012-03-27  Anton Blanchard  <anton@samba.org>
65964
65965         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65966         MAP_HUGETLB.
65967         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65968         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65969         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65970
65971 2012-03-27  David S. Miller  <davem@davemloft.net>
65972
65973         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65974
65975         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65976         have-as-vis3 check.
65977
65978 2012-03-27  Andreas Jaeger  <aj@suse.de>
65979
65980         * sysdeps/x86_64/elf/configure.in: Moved to ...
65981         * sysdeps/x86_64/configure.in: ... here.
65982         * sysdeps/x86_64/elf/start.S: Moved to ...
65983         * sysdeps/x86_64/start.S: ... here.
65984         * sysdeps/x86_64/elf/configure: Delete.
65985
65986         * sysdeps/x86_64/configure.in: Merge contents from
65987         sysdeps/i386/configure.in (without i686 check).
65988
65989         * sysdeps/i386/elf/Versions: Merge into ...
65990         * sysdeps/i386/Versions: ... this.
65991         * sysdeps/i386/elf/Versions: Delete file.
65992         * sysdeps/i386/elf/start.S: Moved to ...
65993         * sysdeps/i386/start.S: ...here.
65994         * sysdeps/i386/elf/configure.in: Merge into...
65995         * sysdeps/i386/configure.in: ...here.
65996         * sysdeps/i386/elf/configure.in: Delete file.
65997         * sysdeps/i386/elf/configure: Delete file.
65998
65999         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66000         * debug/backtracesyms.c: ... here.
66001         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66002         * debug/backtracesymsfd.c: ... here.
66003         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66004         * sysdeps/generic/ifunc-sel.h: ... here.
66005
66006         * sysdeps/unix/i386/start.c: Delete file.
66007         * sysdeps/unix/sparc/start.c: Delete file.
66008         * sysdeps/unix/start.c: Delete file.
66009
66010         * sysdeps/sh/elf/configure.in: Moved to ...
66011         * sysdeps/sh/configure.in: ... here.
66012         * sysdeps/sh/elf/start.S: Moved to ...
66013         * sysdeps/sh/start.S: ... here.
66014         * sysdeps/sh/elf/configure: Delete file.
66015
66016         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66017         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66018         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66019         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66020         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66021         * sysdeps/powerpc/powerpc64/start.S: here.
66022         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66023         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66024         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66025         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66026         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66027
66028         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66029         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66030         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66031         * sysdeps/powerpc/powerpc32/start.S: ... here.
66032         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66033         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66034         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66035
66036         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66037         * sysdeps/powerpc/ifunc-sel.h: ... here.
66038         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66039         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66040
66041         * sysdeps/sparc/elf/configure.in: Moved to ...
66042         * sysdeps/sparc/configure.in: ... here.
66043         * sysdeps/sparc/elf/configure: Delete file.
66044         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66045         * sysdeps/sparc/sparc32/start.S: ... here.
66046         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66047         * sysdeps/sparc/sparc64/start.S: ... here.
66048         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66049         * sysdeps/sparc/sparc32/Makefile: ... this.
66050         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66051         * sysdeps/sparc/sparc64/Makefile: ... this.
66052
66053         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66054         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66055         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66056         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66057         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66058         * sysdeps/s390/s390-32/setjmp.S: ... here.
66059         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66060         * sysdeps/s390/s390-32/configure.in: ... here.
66061         * sysdeps/s390/s390-32/elf/configure: Delete file.
66062         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66063         * sysdeps/s390/s390-32/start.S: ... here.
66064
66065         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66066         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66067         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66068         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66069         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66070         * sysdeps/s390/s390-64/setjmp.S: ... here.
66071         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66072         * sysdeps/s390/s390-64/configure.in: ... here
66073         * sysdeps/s390/s390-64/elf/configure: Delete file.
66074         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66075         * sysdeps/s390/s390-64/start.S: ... here.
66076         * sysdeps/s390/s390-64/elf/configure: Delete.
66077
66078         * configure.in: Remove support for elf directories in sysdeps.
66079
66080         * configure: Regenerated.
66081         * sysdeps/i386/configure: Regenerated.
66082         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66083         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66084         * sysdeps/s390/s390-32/configure: Regenerated.
66085         * sysdeps/s390/s390-64/configure: Regenerated.
66086         * sysdeps/sh/configure: Regenerated.
66087         * sysdeps/sparc/configure: Regenerated.
66088         * sysdeps/x86_64/configure: Regenerated.
66089
66090 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66091
66092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66093
66094         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66095         denormal result into account.
66096
66097 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66098
66099         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66100         Reported by Allan McRae <allan@archlinux.org>.
66101
66102 2012-03-23  Jeff Law  <law@redhat.com>
66103
66104         * nss/getnssent.c (__nss_getent): Fix typo.
66105
66106 2012-03-23  David S. Miller  <davem@davemloft.net>
66107
66108         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66109
66110 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66111
66112         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66113         to pad to uint64_t for each field.
66114         (dl_tls_index): Replace unsigned long with uint64_t.
66115
66116 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66117         Paul Pluzhnikov  <ppluzhnikov@google.com>
66118
66119         [BZ #6528]
66120         * grp/Makefile (otherlibs): Don't set it.
66121         * inet/Makefile (otherlibs): Likewise.
66122         * login/Makefile (otherlibs): Likewise.
66123         * nscd/Makefile (otherlibs): Likewise.
66124         * posix/Makefile (otherlibs): Likewise.
66125         * pwd/Makefile (otherlibs): Likewise.
66126         * rt/Makefile (otherlibs): Likewise.
66127         * sunrpc/Makefile (otherlibs): Likewise.
66128         * nss/Makefile (otherlibs): Likewise.
66129         Add libnss_files to routines and static-only-routines.
66130         ($(objpfx)getent): Remove rule.
66131         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66132         static-only-routines.
66133
66134 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66135
66136         [BZ #13892]
66137         * math/s_cexp.c: Include <float.h>.
66138         (__cexp): Handle exp result overflowing not necessarily
66139         overflowing both real and imaginary parts of result.
66140         * math/s_cexpf.c: Likewise.
66141         * math/s_cexpl.c: Likewise.
66142         * math/libm-test.inc (cexp_test): Add more tests.
66143         * sysdeps/i386/fpu/libm-test-ulps: Update.
66144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66145
66146 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66147
66148         * include/link.h (ELFW): New macro.
66149         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66150         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66151
66152 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66153
66154         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66155         with uint64_t.
66156
66157 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66158
66159         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66160         declaration.
66161         (struct La_x32_retval): Likewise.
66162
66163 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66164
66165         * sysdeps/x86_64/preconfigure.in: New file.
66166         * sysdeps/x86_64/preconfigure: New generated file.
66167
66168 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66169
66170         [BZ #13824]
66171         * math/e_exp2l.c: Include <float.h>.
66172         (__ieee754_exp2l): Handle overflow and underflow cases
66173         separately.  Only pass fractional part of argument to
66174         __ieee754_expl.
66175         * math/libm-test.inc (exp2_test): Add more tests.
66176
66177         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66178         negating x to take absolute value.
66179         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66180         Likewise.
66181         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66182         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66183         Likewise.
66184         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66185         computing low part if x was negated.
66186         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66187
66188 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66189
66190         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66191         la_x32_gnu_pltexit.
66192         (pltexit): Cast int_retval to ptrdiff_t.
66193         * elf/tst-auditmod3b.c: Likewise.
66194         * elf/tst-auditmod4b.c: Likewise.
66195         * elf/tst-auditmod5b.c: Likewise.
66196         * elf/tst-auditmod6b.c: Likewise.
66197         * elf/tst-auditmod6c.c: Likewise.
66198         * elf/tst-auditmod7b.c: Likewise.
66199
66200         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66201         and x32_gnu_pltexit.
66202
66203         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66204         __ELF_NATIVE_CLASS.
66205         (La_x32_regs): New macro.
66206         (La_x32_retval): Likewise.
66207         (la_x32_gnu_pltenter): New function prototype.
66208         (la_x32_gnu_pltexit): Likewise.
66209
66210 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66211
66212         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66213         exponent.
66214
66215         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66216
66217         * configure.in (libc_cv_cc_nofma): Check for option to disable
66218         generation of FMA instructions.
66219         * configure: Regenerate.
66220         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66221         * sysdeps/ieee754/dbl-64/Makefile: New file.
66222         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66223         Remove brandred-fma4.
66224         (CFLAGS-brandred-fma4.c): Remove.
66225         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66226         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66227         define.
66228         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66229         define.
66230
66231 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66232
66233         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66234         LLONG_MAX != LONG_MAX.
66235         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66236         (_fitoa_word): Likewise.
66237         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66238         LLONG_MAX != LONG_MAX.
66239         * stdio-common/_itowa.h: Include <_itoa.h>.
66240         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66241         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66242         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66243         only if not defined.
66244         (_ITOA_WORD_TYPE): Likewise.
66245         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66246         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66247
66248 2012-03-21  David S. Miller  <davem@davemloft.net>
66249
66250         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66251
66252 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66253
66254         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66255         of x86_64 when setting libc_cv_slibdir, libdir and
66256         libc_cv_localedir.
66257         * sysdeps/unix/sysv/linux/configure: Regenerated.
66258
66259 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66260
66261         * manual/lang.texi (Old Varargs): Remove section.
66262         (How Variadic): Update menu.
66263         (va_start): Do not mention varargs.h.
66264
66265 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66266             Joseph Myers  <joseph@codesourcery.com>
66267
66268         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66269         link test.
66270         * configure: Regenerated.
66271
66272 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66273
66274         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66275         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66276         conformtest.pl
66277
66278 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66279
66280         * NOTES: Remove.
66281         * Makefile (files-for-dist): Remove NOTES.
66282         (NOTES): Remove rule.
66283         * README: Don't refer to NOTES.
66284         * manual/creature.texi: Don't include macros.texi.
66285         * manual/intro.texi (creature.texi): Remove comment referring to
66286         NOTES.
66287
66288         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66289         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66290         * configure: Regenerated.
66291         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66292         LIBC_TRY_CC_OPTION.
66293         (libc_cv_as_i686): Likewise.
66294         (libc_cv_cc_avx): Likewise.
66295         (libc_cv_cc_sse2avx): Likewise.
66296         (libc_cv_cc_fma4): Likewise.
66297         (libc_cv_cc_novzeroupper): Likewise.
66298         * sysdeps/i386/configure: Regenerated.
66299
66300         [BZ #13883]
66301         * sysdeps/i386/fpu/s_cexp.S: Remove.
66302         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66303         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66304         * math/libm-test.inc (cexp_test): Add more tests.
66305         * sysdeps/i386/fpu/libm-test-ulps: Update.
66306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66307
66308 2012-03-21  Allan McRae  <allan@archlinux.org>
66309
66310         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66311
66312 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66313
66314         [BZ #13871]
66315         * math/w_exp2.c: Do not include <float.h>.
66316         (o_threshold, u_threshold): Remove.
66317         (__exp2): Calculate result before checking finiteness and calling
66318         __kernel_standard.
66319         * math/w_exp2f.c: Likewise.
66320         * math/w_exp2l.c: Likewise.
66321         * math/libm-test.inc (exp2_test): Require overflow exception for
66322         1e6 input.
66323
66324         [BZ #3866]
66325         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66326         range of signed 64-bit integers before using fistpll.  Remove
66327         checks for whether integers fit in mantissa bits.
66328         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66329         the range of signed 32-bit integers before using fistpl.  Remove
66330         checks for whether integers fit in mantissa bits.
66331         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66332         (__ieee754_powl): Test for y outside the range of signed 64-bit
66333         integers before using fistpll.  Reduce 64-bit values to 63-bit
66334         ones as needed.
66335         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66336         divide-by-zero is raised for zero to large negative powers.
66337         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66338         (__ieee754_powl): Test for y outside the range of signed 64-bit
66339         integers before using fistpll.  Reduce 64-bit values to 63-bit
66340         ones as needed.
66341         * math/libm-test.inc (pow_test): Add more tests.
66342
66343 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66344
66345         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66346         <stdio-common/_itoa.h>.
66347         * debug/segfault.c: Likewise.
66348         * elf/dl-cache.c: Likewise.
66349         * elf/dl-minimal.c: Likewise.
66350         * elf/dl-misc.c: Likewise.
66351         * elf/dl-sysdep.c: Likewise.
66352         * elf/dl-version.c: Likewise.
66353         * elf/rtld.c: Likewise.
66354         * hurd/hurdsock.c: Likewise.
66355         * hurd/lookup-retry.c: Likewise.
66356         * malloc/malloc.c: Likewise.
66357         * malloc/mtrace.c: Likewise.
66358         * nscd/nscd_getgr_r.c: Likewise.
66359         * nscd/nscd_getpw_r.c: Likewise.
66360         * nscd/nscd_getserv_r.c: Likewise.
66361         * posix/getopt_init.c: Likewise.
66362         * posix/wordexp.c: Likewise.
66363         * stdio-common/_itoa.c: Likewise.
66364         * stdio-common/printf_fphex.c: Likewise.
66365         * stdio-common/vfprintf.c: Likewise.
66366         * string/_strerror.c: Likewise.
66367         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66368         * sysdeps/i386/i686/hp-timing.h: Likewise.
66369         * sysdeps/mach/_strerror.c: Likewise.
66370         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66371         * sysdeps/mach/hurd/sethostid.c: Likewise.
66372         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66373         * sysdeps/mach/xpg-strerror.c: Likewise.
66374         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66375         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66376         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66377         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66378         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66379         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66380         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66381         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66382         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66383         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66384         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66385         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66386         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66387         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66388         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66389         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66390         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66391         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66392         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66393         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66394         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66395
66396         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66397
66398         * stdio-common/_itoa.h: Moved to ...
66399         * sysdeps/generic/_itoa.h: Here.
66400
66401         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66402
66403         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66404         instead of "_itoa.h" and "_itowa.h".
66405         * stdio-common/vfprintf.: Likewise.
66406
66407 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66408
66409         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66410         <bits/wordsize.h>.
66411         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66412         (__signbit): Likwise.
66413         (llrintf): Likwise.
66414         (llrint): Likwise.
66415
66416 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66417
66418         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66419         __WORDSIZE != 64.
66420
66421 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66422
66423         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66424         OVERFLOW_EXCEPTION_OK.
66425         * math/libm-test.inc ("Philosophy"): Update comment about
66426         exception testing.
66427         (OVERFLOW_EXCEPTION): Define.
66428         (OVERFLOW_EXCEPTION_OK): Likewise.
66429         (INVALID_EXCEPTION_OK): Renumber.
66430         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66431         (IGNORE_ZERO_INF_SIGN): Likewise.
66432         (test_exceptions): Handle FE_OVERFLOW.
66433         (exp10_test): Expect overflow exceptions.
66434         (exp2_test): Likewise.
66435         (expm1_test): Likewise.
66436         (nextafter_test): Likewise.
66437         (pow_test): Likewise.
66438         (scalbn_test): Likewise.
66439         (scalbln_test): Likewise.
66440
66441 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66442
66443         * sysdeps/x86_64/bits/atomic.h
66444         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66445         64bit integer.
66446         (atomic_exchange_acq): Likewise.
66447         (__arch_exchange_and_add_body): Likewise.
66448         (__arch_add_body): Likewise.
66449         (atomic_add_negative): Likewise.
66450         (atomic_add_zero): Likewise.
66451
66452 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66453
66454         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66455         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66456
66457 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66458
66459         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66460         Check __x86_64__ instead of __WORDSIZE.
66461
66462 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66463
66464         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66465
66466 2012-03-19  David S. Miller  <davem@davemloft.net>
66467
66468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66469
66470         * sysdeps/sparc/fpu/fenv_private.h: New file.
66471         * sysdeps/sparc/fpu/math_private.h: Use it.
66472         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66473         Remove.
66474         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66475         (libc_feholdexcept_setroundl): Remove.
66476         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66477         Remove.
66478         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66479         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66480
66481 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66482
66483         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66484         int64_t instead of long int.
66485         (INSERT_WORDS64): Likwise.
66486
66487 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66488
66489         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66490         _Unwind_GetCFA return to _Unwind_Ptr first.
66491
66492 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66493
66494         [BZ #13629]
66495         * math/s_clog.c: Include <float.h>.
66496         (__clog): Scale large or subnormal inputs.
66497         * math/s_clogf.c: Likewise.
66498         * math/s_clogl.c: Likewise.
66499         * math/s_clog10.c: Include <float.h>.
66500         (M_LOG10_2): Define.
66501         (__clog10): Scale large or subnormal inputs.
66502         * math/s_clog10f.c: Likewise.
66503         * math/s_clog10l.c: Likewise.
66504         * math/libm-test.inc (clog_test): Add more tests.
66505         (clog10_test): Likewise.
66506         * sysdeps/i386/fpu/libm-test-ulps: Update.
66507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66508
66509         [BZ #11451]
66510         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66511         x and y.
66512         * math/libm-test.inc (atan2_test): Add another test.
66513
66514         * Makerules (common-objdir-compile): Remove.
66515         * sysdeps/unix/Makefile (config-generated): Do not add
66516         $(unix-generated) to variable.
66517         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66518         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66519         Remove rule.
66520         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66521         Likewise.
66522         [generic bits/local_lim.h] (before-compile): Do not append to
66523         variable.
66524         [generic bits/local_lim.h] (common-generated): Likewise.
66525         [generic sys/param.h] (before-compile): Do not append to variable.
66526         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66527         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66528         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66529         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66530         include.
66531         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66532         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66533         [generic sys/param.h] ($(addprefix
66534         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66535         [generic sys/param.h] (common-generated): Do not append to
66536         variable.
66537         [generic sys/param.h] (sysdep_headers): Likewise.
66538         [generic bits/errno.h] (before-compile): Do not append to
66539         variable.
66540         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66541         rule.
66542         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66543         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66544         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66545         [generic bits/errno.h] (common-generated): Do not append to
66546         variable.
66547         [generic bits/ioctls.h] (before-compile): Do not append to
66548         variable.
66549         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66550         rule.
66551         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66552         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66553         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66554         rule.
66555         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66556         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66557         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66558         [generic bits/ioctls.h] (common-generated): Do not append to
66559         variable.
66560         [generic sys/syscall.h] (syscall.h): Remove variable.
66561         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66562         rule.
66563         [generic sys/syscall.h] (before-compile): Do not append to
66564         variable.
66565         [generic sys/syscall.h] (common-generated): Likewise.
66566         * sysdeps/unix/errnos-tmpl.c: Remove file.
66567         * sysdeps/unix/errnos.awk: Likewise.
66568         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66569         * sysdeps/unix/ioctls.awk: Likewise.
66570         * sysdeps/unix/mk-local_lim.c: Likewise.
66571         * sysdeps/unix/snarf-ioctls: Likewise.
66572
66573 2012-03-19  Richard Henderson  <rth@twiddle.net>
66574
66575         * sysdeps/i386/fpu/fenv_private.h: New file.
66576         * sysdeps/i386/fpu/math_private.h: Use it.
66577         (math_opt_barrier, math_force_eval): Remove.
66578         (libc_feholdexcept_setround_53bit): Remove.
66579         (libc_feupdateenv_53bit): Remove.
66580         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66581         (math_opt_barrier, math_force_eval): Remove.
66582         (libc_feholdexcept): Remove.
66583         (libc_feholdexcept_setround): Remove.
66584         (libc_fetestexcept, libc_fesetenv): Remove.
66585         (libc_feupdateenv_test): Remove.
66586         (libc_feupdateenv, libc_feholdsetround): Remove.
66587         (libc_feresetround): Remove.
66588
66589         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66590         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66591
66592         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66593         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66594         (libc_feupdateenv_testl): New.
66595         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66596         (libc_feupdateenv_testf): New.
66597         (libc_feupdateenv): Use libc_feupdateenv_test.
66598         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66599         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66600
66601         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66602         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66603         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66604         (libc_feresetround_noex): New.
66605         (libc_feresetround_noexf): New.
66606         (libc_feresetround_noexl): New.
66607         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66608         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66609         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66610         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66611         SET_RESTORE_ROUND.
66612         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66613         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66614         (__cos): Likewise.
66615         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66616         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66617         SET_RESTORE_ROUND_NOEX.
66618         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66619         SET_RESTORE_ROUND_NOEXF.
66620         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66621         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66622         (libc_feholdsetroundf): New.
66623         (libc_feresetround, libc_feresetroundf): New.
66624
66625         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66626         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66627         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66628
66629         * sysdeps/generic/math_private.h: Include <fenv.h>.
66630         (default_libc_feholdexcept): New.
66631         (default_libc_feholdexcept_setround): New.
66632         (default_libc_fesetenv, default_libc_feupdateenv): New.
66633         (libc_feholdexcept): Only define if undefined.
66634         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66635         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66636         (libc_feholdexcept_setroundl): Likewise.
66637         (libc_feholdexcept_setround_53bit): Likewise.
66638         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66639         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66640         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66641         (libc_feupdateenv_53bit): Likewise.
66642         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66643         (libc_feholdexcept): Convert from macro to inline function.
66644         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66645         (libc_fesetenv, libc_feupdateenv): Likewise.
66646
66647         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66648         not previously defined.
66649         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66650         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66651         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66652         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66653         * sysdeps/ieee754/flt-32/math_private.h: New file.
66654         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66655         math_private.h below SET_FLOAT_WORD.
66656         (__isnan, __isinf_ns, __finite): Remove.
66657         (__isnanf, __isinf_nsf, __finitef): Remove.
66658
66659 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66660
66661         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66662
66663 2012-03-17  David S. Miller  <davem@davemloft.net>
66664
66665         [BZ #6471]
66666         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66667         for 2.16.
66668
66669 2012-03-16  David S. Miller  <davem@davemloft.net>
66670
66671         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66672         warnings.
66673
66674         [BZ #6471]
66675         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66676         properly.
66677         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66678         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66679         sysdep_routines when subdir is sysvipc.
66680         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66681         __getshmlba helper.
66682
66683         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66684
66685 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66686
66687         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66688         [__LP64__].
66689
66690 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66691
66692         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66693         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66694         (__lround): Renamed to ...
66695         (__llround): This.  Replace long int with long long int.
66696         Define lround functions as aliases of llround functions.
66697         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66698
66699 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66700
66701         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66702         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66703         adresses to uintptr_t.  Replace "long int" and "unsigned long
66704         int" with "greg_t" on va_arg.
66705
66706 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66707
66708         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66709         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66710
66711         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66712         Move e_machine check before EI_CLASS check.  Handle x32
66713         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66714         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66715         SKIP_EM_IA_64 and include
66716         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66717
66718         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66719         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66720         (add_system_dir): New macro.
66721
66722         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66723         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66724
66725 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66726
66727         [BZ #2551]
66728         [BZ #2552]
66729         [BZ #2553]
66730         [BZ #2554]
66731         [BZ #2562]
66732         [BZ #2563]
66733         [BZ #2565]
66734         [BZ #2566]
66735         [BZ #2576]
66736         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66737         (y0): Likewise.
66738         * math/w_j0f.c (j0f): Likewise.
66739         (y0f): Likewise.
66740         * math/w_j0l.c (__j0l): Likewise.
66741         (__y0l): Likewise.
66742         * math/w_j1.c (j1): Likewise.
66743         (y1): Likewise.
66744         * math/w_j1f.c (j1f): Likewise.
66745         (y1f): Likewise.
66746         * math/w_j1l.c (__j1l): Likewise.
66747         (__y1l): Likewise.
66748         * math/w_jn.c (jn): Likewise.
66749         (yn): Likewise.
66750         * math/w_jnf.c (jnf): Likewise.
66751         (ynf): Likewise.
66752         * math/w_jnl.c (__jnl): Likewise.
66753         (__ynl): Likewise.
66754         * math/libm-test.inc (j0_test): Add more tests.
66755         (j1_test): Likewise.
66756         (jn_test): Likewise.  Add trailing semicolon to existing test.
66757         (y0_test): Likewise.
66758         (y1_test): Likewise.
66759         * sysdeps/i386/fpu/libm-test-ulps: Update.
66760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66761
66762         [BZ #13851]
66763         [BZ #13854]
66764         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66765         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66766         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66767         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66768         (__tanl): Set errno for infinite argument.
66769         * sysdeps/i386/fpu/mptan.c: Remove.
66770         * sysdeps/i386/fpu/s_tan.S: Likewise.
66771         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66772         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66773         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66774         * math/libm-test.inc (tan_test): Add more tests and enable more
66775         tests for double and long double.
66776         * sysdeps/i386/fpu/libm-test-ulps: Update.
66777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66778
66779 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66780
66781         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66782         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66783
66784 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66785
66786         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66787         * configure.in: Use it for both main tree and add-ons.
66788         * configure: Regenerated.
66789
66790 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66791
66792         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66793
66794 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66795
66796         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66797         in comment.
66798
66799         [BZ #13851]
66800         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66801         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66802         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66803         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66804         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66805         infinite argument.
66806         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66807         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66808         != 0 for prec == 2.
66809         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66810         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66811         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66812         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66813         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66814         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66815         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66816         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66817         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66818         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66819         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66820         * math/libm-test.inc (cos_test): Add more tests and enable more
66821         tests for long double.
66822         (sin_test): Likewise.
66823         (sincos_test): Likewise.
66824         * sysdeps/i386/fpu/libm-test-ulps: Update.
66825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66826
66827 2012-03-16  David S. Miller  <davem@davemloft.net>
66828
66829         * sysdeps/sparc/fpu/math_private.h: New file.
66830
66831 2012-03-15  David S. Miller  <davem@davemloft.net>
66832
66833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66834         file.
66835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66837         file.
66838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66839         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66840         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66841         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66842         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66843         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66844         sysdep routines.
66845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66846
66847         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66848         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66849
66850         * sysdeps/sparc/sparc-ifunc.h: New file.
66851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66852         sparc-ifunc.h
66853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66855         Likewise.
66856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66857         Likewise.
66858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66862         Likewise.
66863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66868         Likewise.
66869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66870         Likewise.
66871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66876         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66877         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66878         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66879         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66880         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66881         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66882         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66883         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66884         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66885         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66886         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66888         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66889         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66890         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66891         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66892         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66893         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66894         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66895
66896 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66897
66898         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66899         scaling.
66900         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66901
66902 2012-03-15  Andreas Jaeger  <aj@suse.de>
66903
66904         [BZ #13852]
66905         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66906         ieee754/flt-32 implementation for sin, cos and sincos.
66907         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66908         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66909         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66910         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66911         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66912         ieee754/flt-32 implementation for tan.
66913
66914         * math/libm-test.inc (cos_test): Enable some large input tests for
66915         float as well
66916         (sin_test): Likewise.
66917         (sincos_test): Likewise.
66918         (tan_test): Add tests for large input.
66919
66920         * sysdeps/i386/fpu/libm-test-ulps: Update.
66921
66922 2012-03-15  Andreas Jaeger  <aj@suse.de>
66923
66924         [BZ #13658]
66925         * math/libm-test.inc (cos_test): Add more test cases.
66926         (sin_test): Likewise.
66927         (sincos_test): Likewise.
66928
66929 2012-03-15  Andreas Jaeger  <aj@suse.de>
66930
66931         [BZ #13837]
66932         * math/libm-test.inc (cos_test): Add a test case for large input
66933         value.
66934         (sin_test): Likewise.
66935         (sincos_test): Likewise.
66936
66937 2012-03-15  Andreas Jaeger  <aj@suse.de>
66938             Joseph Myers  <joseph@codesourcery.com>
66939
66940         [BZ #13658]
66941         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66942         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66943         * sysdeps/i386/fpu/branred.c: Likewise.
66944         * sysdeps/i386/fpu/dosincos.c: Likewise.
66945         * sysdeps/i386/fpu/mpa.c: Likewise.
66946         * sysdeps/i386/fpu/s_cos.S: Likewise.
66947         * sysdeps/i386/fpu/s_sin.S: Likewise.
66948         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66949         * sysdeps/i386/fpu/sincos32.c: Likewise.
66950
66951         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66952         Define.
66953         (libc_feupdateenv_53bit): Define.
66954         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66955         Define.
66956         (libc_feupdateenv_53bit): Define.
66957
66958         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66959         53 bit (without extend i386 double precision).
66960
66961         * math/libm-test.inc (sincos_test): Add tests for large input.
66962         (sin): Likewise.
66963         (cos): Likewise.
66964
66965         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66966
66967 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66968
66969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66970
66971 2012-03-15  David S. Miller  <davem@davemloft.net>
66972
66973         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66974         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66975         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66976         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66980         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66981         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66982         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66983         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66984         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66985         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66986         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66987         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66989         file.
66990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66992         file.
66993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66995         file.
66996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66998         file.
66999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67000         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67001         fmin/fmax sysdep routines.
67002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67003
67004 2012-03-14  David S. Miller  <davem@davemloft.net>
67005
67006         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67007         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67008         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67009         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67010         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67011         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67012         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67013         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67014         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67015         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67016         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67017         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67018         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67019         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67020         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67021         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67022         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67023         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67024         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67025         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67026         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67027         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67028         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67029         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67030         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67031         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67032         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67033         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67034         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67035         routines.
67036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67037         file.
67038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67040         file.
67041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67043         file.
67044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67046         file.
67047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67049         file.
67050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67052         file.
67053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67054         file.
67055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67056         file.
67057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67058         file.
67059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67060         New file.
67061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67062         file.
67063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67064         file.
67065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67067         file.
67068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67070         file.
67071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67073         file.
67074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67076         VIS3 routines.
67077
67078         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67079         New file.
67080
67081         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67082
67083         * sysdeps/sparc/configure.in: New file.
67084         * sysdeps/sparc/configure: Generate.
67085         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67086         * configure: Regenerate.
67087         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67088         * config.make.in (have-as-vis3): New.
67089         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67090         available use -Av9d instead of -Av9a.
67091         * sysdeps/sparc/sparc64/Makefile: Likewise.
67092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67094         New file.
67095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67096         file.
67097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67098         New file.
67099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67100         file.
67101         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67102         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67103         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67104         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67105         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67106
67107         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67108         fzeros/fnegs to load 0x80000000 into a float register instead of
67109         using the stack.
67110         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67111
67112 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67113
67114         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67115         bits/syscall.h.
67116         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67117         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67118         ($(inst_includedir)/bits/syscall.h): Remove rule.
67119         ($(objpfx)bits/syscall.d): Include instead of
67120         $(objpfx)syscall-list.d.
67121         (generated): Change syscall-list.h and syscall-list.d to
67122         bits/syscall.h and bits/syscall.d.
67123
67124 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67125
67126         [BZ #13846]
67127         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67128
67129 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67130
67131         [BZ #13841]
67132         * math/s_csqrt.c: Include <float.h>.
67133         (__csqrt): Scale large or subnormal inputs.
67134         * math/s_csqrtf.c: Likewise.
67135         * math/s_csqrtl.c: Likewise.
67136         * math/libm-test.inc (csqrt_test): Add more tests.
67137         * sysdeps/i386/fpu/libm-test-ulps: Update.
67138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67139
67140         [BZ #13840]
67141         * math/libm-test.inc (hypot_test): Add more tests.
67142
67143 2012-03-13  David S. Miller  <davem@davemloft.net>
67144
67145         [BZ #13840]
67146         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67147         double-precision for the calculation instead of scaling.
67148
67149 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67150
67151         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67152         manipulate bits before adding and subtracting TWO52[sx].
67153         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67154         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67155         Likewise.
67156         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67157
67158 2012-03-13  David S. Miller  <davem@davemloft.net>
67159
67160         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67161         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67162         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67163         rtld-global-offsets.h
67164         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67165
67166         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67167         large parameters.
67168
67169         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67170
67171         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67172         'err' in the ifdef scope in which it is actually used.
67173
67174         * nss/nss_db/db-init.c: Include string.h
67175
67176 2012-03-12  David S. Miller  <davem@davemloft.net>
67177
67178         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67179         masking out of the most significant byte of random value used.
67180         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67181         Fix coding style in previous change.
67182
67183         * sysdeps/unix/sysv/linux/kernel-features.h
67184         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67185         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67186         expression.
67187         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67188         later.
67189
67190 2012-03-11  David S. Miller  <davem@davemloft.net>
67191
67192         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67193         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67194         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67195         for 'resultvar' otherwise things get truncated on 64-bit.
67196
67197         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67198         Fix masking out of the most significant byte of random value used.
67199
67200         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67201
67202 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67203
67204         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67205
67206 2012-03-09  David S. Miller  <davem@davemloft.net>
67207
67208         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67209         variables with appropriate CPP guards.
67210         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67211         from the frame pointer, not the stack pointer.  Correct layout
67212         comments.  Fix test on resulting framesize and the management of
67213         the outregs buffer for pltexit.  Preserve floating point return
67214         values across _dl_call_pltexit call.
67215         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67216         framesize and the management of the outregs buffer for pltexit.
67217         Preserve floating point return values across _dl_call_pltexit
67218         call.
67219         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67220         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67221         (la_sparc64_gnu_pltexit): New functions.
67222         (print_exit): Fix format string for return register value.
67223
67224 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67225
67226         * sunrpc/Makefile (others): Add rpcgen.
67227         ($(objpfx)rpcgen): Remove special build rule and dependency on
67228         libc.
67229         * sunrpc/rpcgen.c: New file.
67230
67231 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         [BZ #13673]
67234         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67235         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67236         * sysdeps/i386/crti.S: Likewise.
67237         * sysdeps/i386/crtn.S: Likewise.
67238         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67239         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67240         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67241         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67242         * sysdeps/sh/crti.S: Likewise.
67243         * sysdeps/sh/crtn.S: Likewise.
67244         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67245
67246         [BZ #13673]
67247         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67248         with URL.
67249         * locale/programs/locfile-kw.gperf: Likewise.
67250         * locale/programs/charmap-kw.h: Regenerated.
67251         * locale/programs/locfile-kw.h: Likewise.
67252
67253         [BZ #13673]
67254         * intl/plural.y: Replace FSF snail mail address with URL.
67255         * intl/plural.c: Regenerated.
67256
67257 2012-03-09  Richard Henderson  <rth@twiddle.net>
67258
67259         * include/math_private.h: Remove file.
67260         * math/math_private.h: Move file ...
67261         * sysdeps/generic/math_private.h: ... here.
67262
67263         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67264         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67265         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67266
67267         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67268         and <math_private.h>.
67269         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67270         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67271         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67272         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67273         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67274         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67275         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67276         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67277         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67278         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67279         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67280         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67281         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67282         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67283         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67284         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67285         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67286         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67287         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67288         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67289         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67290         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67291         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67292         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67293         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67294         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67295         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67296         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67297         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67298         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67299         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67300         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67301         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67302         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67303         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67304         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67305         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67306         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67307         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67308         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67309         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67310         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67311         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67312         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67313         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67314         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67315         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67316         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67317         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67318         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67319         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67320         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67321         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67322         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67323         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67324         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67325         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67326         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67327         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67328         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67329         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67330         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67331         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67332         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67333         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67334         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67335         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67336         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67337         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67338         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67339         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67340         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67341         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67342         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67343         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67344         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67345         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67346         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67347         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67348         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67349         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67350         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67351         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67352         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67353         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67354         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67355         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67356         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67357         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67358         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67359         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67360         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67361         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67362         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67363         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67364         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67365         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67366         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67367         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67368         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67369         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67370         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67371         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67372         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67373         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67374         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67375         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67376         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67377         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67378         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67379         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67380         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67381         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67382         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67383         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67384         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67385         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67386         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67387         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67388         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67389         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67390         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67391         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67392         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67393         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67394         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67395         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67396         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67397         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67398         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67399         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67400         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67401         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67402         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67403         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67404         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67405         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67406         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67407         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67408         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67409         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67410         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67411         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67412         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67413         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67414         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67415         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67416         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67417         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67418         * sysdeps/ieee754/k_standard.c: Likewise.
67419         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67420         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67421         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67422         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67423         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67424         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67425         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67426         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67427         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67428         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67429         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67430         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67431         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67432         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67433         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67434         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67435         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67436         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67437         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67438         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67439         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67440         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67441         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67442         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67443         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67444         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67445         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67446         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67447         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67448         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67449         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67450         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67451         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67452         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67453         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67454         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67455         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67456         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67457         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67458         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67459         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67460         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67461         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67462         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67463         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67464         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67465         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67466         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67467         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67468         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67469         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67470         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67471         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67472         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67473         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67474         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67475         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67476         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67477         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67478         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67479         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67480         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67481         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67482         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67483         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67484         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67485         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67486         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67487         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67488         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67489         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67490         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67491         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67492         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67493         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67494         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67495         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67496         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67497         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67498         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67499         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67500         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67501         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67502         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67503         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67504         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67505         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67506         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67507         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67508         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67509         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67510         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67511         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67512         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67513         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67514         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67515         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67516         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67517         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67518         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67519         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67520         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67521         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67522         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67523         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67524         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67525         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67526         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67527         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67528         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67529         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67530         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67531         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67532         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67533         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67534         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67535         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67536         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67537         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67538         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67539         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67540         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67541         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67542         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67543         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67544         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67545         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67546         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67547         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67548         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67549         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67550         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67551         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67552         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67553         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67554         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67555         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67556         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67557         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67558         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67559         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67560         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67561         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67562         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67563         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67564         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67565         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67566         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67567         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67568         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67569         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67570         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67571         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67572         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67573         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67574         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67575         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67576         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67577         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67578         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67579         * sysdeps/ieee754/s_lib_version.c: Likewise.
67580         * sysdeps/ieee754/s_matherr.c: Likewise.
67581         * sysdeps/ieee754/s_signgam.c: Likewise.
67582         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67583         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67584         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67585         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67586         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67587         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67588         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67589         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67590         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67591         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67592         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67593         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67594         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67595         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67596         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67597         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67598         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67599         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67600         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67601         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67602         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67603
67604 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67605
67606         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67607         * sunrpc/rpc_main.c: Likewise.
67608         * sunrpc/rpc_svcout.c: Likewise.
67609
67610 2012-03-09  David S. Miller  <davem@davemloft.net>
67611
67612         * include/math_private.h: New file.
67613
67614 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67615
67616         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67617         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67618         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67619         from <bits/socket_type.h>.
67620         (enum __socket_type): Don't define here.
67621         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67622         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67623         bits/socket_type.h.
67624
67625         [BZ #13566]
67626         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67627         checking __USE_GNU.
67628
67629         * Makerules ($(inst_includedir)/%.h): New rule.
67630         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67631         (install-others): Remove variable setting.
67632         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67633
67634 2012-03-08  Richard Henderson  <rth@twiddle.net>
67635
67636         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67637         from macro to inline function; merge with the
67638         !__LIBC_INTERNAL_MATH_INLINES version.
67639         (__ieee754_sqrtf): Likewise.
67640
67641         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67642         to inline function.
67643         (__rintf, __floor, __floorf): Likewise.
67644
67645         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67646         macro to inline function.
67647         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67648
67649         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67650         not <math/math_private.h>.
67651
67652 2012-03-08  David S. Miller  <davem@davemloft.net>
67653
67654         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67655         copyright year.
67656         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67657
67658 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67659
67660         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67661         normalization.
67662         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67663         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67664
67665 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67666
67667         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67668         be defined individually, they must be defined as a block.  Define
67669         S for printing a string instead of hidint the different by using a
67670         macro for adding the 'l'.
67671         * stdio-common/tst-fphex-wide.c: Adjust.
67672
67673 2012-03-07  Marek Polacek  <polacek@redhat.com>
67674
67675         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67676
67677 2012-03-08  Marek Polacek  <polacek@redhat.com>
67678
67679         [BZ #13806]
67680         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67681         * stdio-common/tst-fphex.c: Define a few macros to make the
67682         test reusable.  Use them.
67683         * stdio-common/tst-fphex-wide.c: New file.
67684
67685 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67686
67687         [BZ #6911]
67688         * manual/macros.texi (gnusystems): New macro.
67689         (nongnusystems): Likewise.
67690         (gnulinuxhurdsystems): Likewise.
67691         (gnuhurdsystems): Likewise..
67692         (gnulinuxsystems): Likewise.
67693         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67694         variants of the GNU system, not "GNU system".
67695         * manual/conf.texi: Likewise.
67696         * manual/errno.texi: Likewise.  Update example of errno macro
67697         expansion.
67698         * manual/filesys.texi: Likewise.
67699         (getumask): Document as specific to GNU/Hurd.
67700         * manual/install.texi: Likewise.  Reword some references to
67701         GNU/Linux.
67702         * manual/intro.texi: Likewise.
67703         * manual/io.texi: Likewise.
67704         (File Name Portability): Detail which constraints are inapplicable
67705         to all GNU systems and which are only inapplicable to GNU/Hurd.
67706         * manual/job.texi: Likewise.
67707         * manual/llio.texi: Likewise.
67708         (O_NOCTTY): Document as present on GNU/Linux.
67709         * manual/maint.texi: Likewise.
67710         * manual/memory.texi: Likewise.
67711         * manual/pattern.texi: Likewise.
67712         * manual/pipe.texi: Likewise.
67713         * manual/process.texi: Likewise.
67714         * manual/resource.texi: Likewise.
67715         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67716         child on GNU/Hurd.
67717         * manual/setjmp.texi: Likewise.
67718         * manual/signal.texi: Likewise.
67719         * manual/startup.texi: Likewise.
67720         * manual/stdio.texi: Likewise.
67721         * manual/terminal.texi: Likewise.
67722         (ONLCR): Document as POSIX.
67723         (OXTABS): Document availability on GNU/Linux as XTABS.
67724         (ONOEOT): Document availability separately from other bits.
67725         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67726         * manual/time.texi: Likewise.
67727         * manual/users.texi: Likewise.
67728         * INSTALL: Regenerated.
67729         * sysdeps/gnu/errlist.c: Regenerated.
67730
67731         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67732         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67733         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67734         puts.
67735         * configure: Regenerated.
67736
67737 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67738
67739         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67740         default includes instead of AC_HEADER_CHECK.
67741         * sysdeps/i386/configure: Regenerated.
67742
67743         [BZ #10716]
67744         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67745         * math/s_cacoshf.c (__cacoshf): Likewise.
67746         * math/s_cacoshl.c (__cacoshl): Likewise.
67747         * math/s_casinh.c (__casinh): Set signs of result from argument.
67748         * math/s_casinhf.c (__casinhf): Likewise.
67749         * math/s_casinhl.c (__casinhl): Likewise.
67750         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67751         (casinh_test): Add more tests.
67752         * sysdeps/i386/fpu/libm-test-ulps: Update.
67753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67754
67755 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67756
67757         * po/zh_TW.po: Update from translation team.
67758
67759         * login/Makefile (distribute): Remove variable.
67760         * catgets/Makefile: Likewise.
67761         * mach/Makefile: Likewise.
67762         * malloc/Makefile: Likewise.
67763         * misc/Makefile: Likewise.
67764         * iconv/Makefile: Likewise.
67765         * nscd/Makefile: Likewise.
67766         * hurd/Makefile: Likewise.
67767         * manual/Makefile: Likewise.
67768         * locale/Makefile: Likewise.
67769         * intl/Makefile: Likewise.
67770         * conform/Makefile: Likewise.
67771         * nss/Makefile: Likewise.
67772         * time/Makefile: Likewise.
67773         * soft-fp/Makefile: Likewise.
67774         * dirent/Makefile: Likewise.
67775         * gmon/Makefile: Likewise.
67776         * po/Makefile: Likewise.
67777         * rt/Makefile: Likewise.
67778         * socket/Makefile: Likewise.
67779         * math/Makefile: Likewise.
67780         * signal/Makefile: Likewise.
67781         * debug/Makefile: Likewise.
67782         * elf/Makefile: Likewise.
67783         * timezone/Makefile: Likewise.
67784         * stdlib/Makefile: Likewise.
67785         * iconvdata/Makefile: Likewise.
67786         * sunrpc/Makefile: Likewise.
67787         * io/Makefile: Likewise.
67788         * argp/Makefile: Likewise.
67789         * inet/Makefile: Likewise.
67790         * hesiod/Makefile: Likewise.
67791         * grp/Makefile: Likewise.
67792         * csu/Makefile: Likewise.
67793         * wctype/Makefile: Likewise.
67794         * crypt/Makefile: Likewise.
67795         * libio/Makefile: Likewise.
67796         * string/Makefile: Likewise.
67797         * nis/Makefile: Likewise.
67798         * resolv/Makefile: Likewise.
67799         * stdio-common/Makefile: Likewise.
67800         * wcsmbs/Makefile: Likewise.
67801         * dlfcn/Makefile: Likewise.
67802         * posix/Makefile: Likewise.
67803
67804         [BZ #6959]
67805         * timezone/Makefile: Don't install timezone files, just the programs
67806         and scripts.
67807
67808 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67809
67810         * nss/databases.def: Add missing gshadow entry.
67811
67812         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67813
67814 2012-03-06  Marek Polacek  <polacek@redhat.com>
67815
67816         [BZ #13726]
67817         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67818         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67819         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67820         * stdio-common/tst-long-dbl-fphex.c: New file.
67821
67822 2012-03-06  David S. Miller  <davem@davemloft.net>
67823
67824         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67825         (set_obp_int): New function.
67826         (get_obp_int): New function.
67827         (__get_clockfreq_via_dev_openprom): Likewise.
67828         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67829         Avoid unused variable warnings on 'val' and use builtin_expect.
67830         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67831         __builtin_expect.
67832         (INLINE_CLONE_SYSCALL): Likewise.
67833
67834 2012-03-05  David S. Miller  <davem@davemloft.net>
67835
67836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67837
67838 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67839
67840         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67841
67842         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67843         only for |x| >= 40.
67844         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67845
67846 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67847
67848         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67849         Replace gettimeofday with __vdso_gettimeofday.
67850
67851         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67852         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67853         __vdso_clock_gettime and __vdso_getcpu.
67854
67855         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67856         time with __vdso_time.
67857
67858 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67859
67860         * manual/lang.texi (size_t): Note types to which size_t may be
67861         equivalent with the GNU C Library, but do not describe when
67862         differences between them are significant.
67863
67864 2012-03-05  Andreas Jaeger  <aj@suse.de>
67865
67866         * sysdeps/i386/fpu/libm-test-ulps: Update.
67867
67868 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67869
67870         [BZ #3976]
67871         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67872         (__ieee754_pow): Save and restore rounding mode and use
67873         round-to-nearest for main computations.
67874         * math/libm-test.inc (pow_test_tonearest): New function.
67875         (pow_test_towardzero): Likewise.
67876         (pow_test_downward): Likewise.
67877         (pow_test_upward): Likewise.
67878         (main): Call the new functions.
67879         * sysdeps/i386/fpu/libm-test-ulps: Update.
67880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67881
67882         [BZ #3976]
67883         * math/libm-test.inc (cosh_test_tonearest): New function.
67884         (cosh_test_towardzero): Likewise.
67885         (cosh_test_downward): Likewise.
67886         (cosh_test_upward): Likewise.
67887         (sinh_test_tonearest): Likewise.
67888         (sinh_test_towardzero): Likewise.
67889         (sinh_test_downward): Likewise.
67890         (sinh_test_upward): Likewise.
67891         (main): Call the new functions.
67892         * sysdeps/i386/fpu/libm-test-ulps: Update.
67893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67894
67895 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67896
67897         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67898         default stack guard is set in last bytes.
67899         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67900
67901 2012-03-05  Kees Cook  <keescook@chromium.org>
67902
67903         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67904
67905         [BZ #13656]
67906         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67907         possibly allocate from heap instead of stack.
67908         * stdio-common/bug-vfprintf-nargs.c: New file.
67909         * stdio-common/Makefile (tests): Add nargs overflow test.
67910
67911 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67912
67913         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67914
67915 2012-03-03  Marek Polacek  <polacek@redhat.com>
67916
67917         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67918         * math/math_private.h: Likewise.
67919         * stdlib/tst-strtod.c: Likewise.
67920         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67921         * sysdeps/x86_64/bits/atomic.h: Likewise.
67922
67923 2012-03-02  David S. Miller  <davem@davemloft.net>
67924
67925         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67926         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67927         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67928         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67929         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67930         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67931         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67932         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67933
67934 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67935
67936         [BZ #13792]
67937         * manual/examples/README: New file, says the example source files
67938         can be used under GPL>=2.
67939         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67940         line containing just "*/".
67941         * manual/examples/add.c: Add copyright header (GPL>=2).
67942         * manual/examples/argp-ex1.c: Likewise.
67943         * manual/examples/argp-ex2.c: Likewise.
67944         * manual/examples/argp-ex3.c: Likewise.
67945         * manual/examples/argp-ex4.c: Likewise.
67946         * manual/examples/atexit.c: Likewise.
67947         * manual/examples/db.c: Likewise.
67948         * manual/examples/dir.c: Likewise.
67949         * manual/examples/dir2.c: Likewise.
67950         * manual/examples/execinfo.c: Likewise.
67951         * manual/examples/filecli.c: Likewise.
67952         * manual/examples/filesrv.c: Likewise.
67953         * manual/examples/fmtmsgexpl.c: Likewise.
67954         * manual/examples/genpass.c: Likewise.
67955         * manual/examples/inetcli.c: Likewise.
67956         * manual/examples/inetsrv.c: Likewise.
67957         * manual/examples/isockad.c: Likewise.
67958         * manual/examples/longopt.c: Likewise.
67959         * manual/examples/memopen.c: Likewise.
67960         * manual/examples/memstrm.c: Likewise.
67961         * manual/examples/mkfsock.c: Likewise.
67962         * manual/examples/mkisock.c: Likewise.
67963         * manual/examples/mygetpass.c: Likewise.
67964         * manual/examples/pipe.c: Likewise.
67965         * manual/examples/popen.c: Likewise.
67966         * manual/examples/rprintf.c: Likewise.
67967         * manual/examples/search.c: Likewise.
67968         * manual/examples/select.c: Likewise.
67969         * manual/examples/setjmp.c: Likewise.
67970         * manual/examples/sigh1.c: Likewise.
67971         * manual/examples/sigusr.c: Likewise.
67972         * manual/examples/stpcpy.c: Likewise.
67973         * manual/examples/strdupa.c: Likewise.
67974         * manual/examples/strftim.c: Likewise.
67975         * manual/examples/strncat.c: Likewise.
67976         * manual/examples/subopt.c: Likewise.
67977         * manual/examples/swapcontext.c: Likewise.
67978         * manual/examples/termios.c: Likewise.
67979         * manual/examples/testopt.c: Likewise.
67980         * manual/examples/testpass.c: Likewise.
67981         * manual/examples/timeval_subtract.c: Likewise.
67982
67983         [BZ #13792]
67984         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67985         function to ...
67986         * manual/timeval_subtract.c.texi: ... here, new file.
67987
67988 2012-03-02  David S. Miller  <davem@davemloft.net>
67989
67990         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67991
67992 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67993
67994         [BZ #3976]
67995         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67996         (__sin): Save and restore rounding mode and use round-to-nearest
67997         for all computations.
67998         (__cos): Save and restore rounding mode and use round-to-nearest
67999         for all computations.
68000         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68001         <fenv.h>.
68002         (tan): Save and restore rounding mode and use round-to-nearest for
68003         all computations.
68004         * math/libm-test.inc (cos_test_tonearest): New function.
68005         (cos_test_towardzero): Likewise.
68006         (cos_test_downward): Likewise.
68007         (cos_test_upward): Likewise.
68008         (sin_test_tonearest): Likewise.
68009         (sin_test_towardzero): Likewise.
68010         (sin_test_downward): Likewise.
68011         (sin_test_upward): Likewise.
68012         (tan_test_tonearest): Likewise.
68013         (tan_test_towardzero): Likewise.
68014         (tan_test_downward): Likewise.
68015         (tan_test_upward): Likewise.
68016         (main): Call the new functions.
68017         * sysdeps/i386/fpu/libm-test-ulps: Update.
68018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68019
68020         [BZ #10135]
68021         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68022         small n, then large n, before computing and testing k+n.
68023         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68024         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68025         Likewise.
68026         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68027         Likewise.
68028         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68029         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68030         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68031         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68032         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68033         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68034         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68035         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68036         * math/libm-test.inc (scalbn_test): Add more tests.
68037         (scalbln_test): Likewise.
68038
68039         * manual/filesys.texi (mode_t): Describe constraints on size and
68040         signedness, not exact equivalence to a particular type.
68041         (ino_t): Likewise.
68042         (ino64_t): Likewise.
68043         (dev_t): Likewise.
68044         (nlink_t): Likewise.
68045         (blkcnt_t): Likewise.
68046         (blkcnt64_t): Likewise.
68047         * manual/llio.texi (off_t): Likewise.
68048
68049         [BZ #3976]
68050         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68051         (__ieee754_exp): Save and restore rounding mode and use
68052         round-to-nearest for all computations.
68053         * math/libm-test.inc (exp_test_tonearest): New function.
68054         (exp_test_towardzero): Likewise.
68055         (exp_test_downward): Likewise.
68056         (exp_test_upward): Likewise.
68057         (main): Call the new functions.
68058         * sysdeps/i386/fpu/libm-test-ulps: Update.
68059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68060
68061 2012-03-01  Chris Demetriou  <cgd@google.com>
68062
68063         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68064         have predictable order.
68065
68066 2012-03-01  David S. Miller  <davem@davemloft.net>
68067
68068         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68069
68070         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68071         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68072         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68073         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68074
68075         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68076         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68077         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68078         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68079         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68080         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68081         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68082         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68083         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68084
68085         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68086
68087         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68088         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68089         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68090
68091         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68092         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68093         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68094         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68095         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68096         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68097         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68098         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68099         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68100         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68101         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68102         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68103         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68104         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68105         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68106         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68107         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68108         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68109         * sysdeps/sparc/elf/configure: Regenerated.
68110
68111 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68112
68113         * configure.in (AS, LD): Require binutils 2.20 or later.
68114         * configure: Regenerated.
68115         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68116         as required minimum version.
68117         * INSTALL: Regenerated.
68118
68119         [BZ #2541]
68120         [BZ #4108]
68121         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68122         before squaring exponent.
68123         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68124         bottom long double and 27 bits of top long double before squaring
68125         exponent.
68126         * math/libm-test.inc (erfc_test): Add more tests.
68127         * sysdeps/i386/fpu/libm-test-ulps: Update.
68128         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68130
68131 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68132
68133         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68134         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68135         containing bit-fields.
68136         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68137         * soft-fp/single.h (_FP_UNION_S): Likewise.
68138         * soft-fp/double.h (_FP_UNION_D): Likewise.
68139
68140 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68141
68142         [BZ #13786]
68143         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68144         not include ../strcmp.S.
68145         [USE_AS_STRNCASECMP_L]: Likewise.
68146         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68147         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68148         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68149         (__strncasecmp_l_ia32): Define as alias to
68150         __strncasecmp_l_nonascii.
68151
68152         [BZ #5794]
68153         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68154         * sysdeps/i386/fpu/libm-test-ulps: Update.
68155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68156
68157         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68158         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68159
68160 2012-02-29  Jeff Law  <law@redhat.com>
68161
68162         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68163         out of bounds read.
68164
68165 2012-02-29  Marek Polacek  <polacek@redhat.com>
68166
68167         [BZ #13706]
68168         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68169         * elf/Makefile: Add rules to run tst-unused-dep.out.
68170
68171 2012-02-28  David S. Miller  <davem@davemloft.net>
68172
68173         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68174         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68175         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68176         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68177         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68178         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68179
68180 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68181
68182         * math/libm-test.inc (llround_test): Move one test from
68183         lround_test.  Use TEST_f_L in moved test.
68184         (lround_test): Move misplaced test to llround_test.  Add testcase
68185         from bug 2561.
68186
68187 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68188
68189         * sysdeps/x86_64/fpu/e_expf.S: New file.
68190         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68191
68192 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68193
68194         [BZ #13637]
68195         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68196         of remain_len that may cause incomplete multi-byte character and
68197         false match.
68198         * posix/bug-regex33.c: New file.
68199         * posix/Makefile (tests): Add bug-regex33.
68200
68201 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68202
68203         * manual/macros.texi: New file.
68204         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68205         * manual/libc.texinfo: Include macros.texi.
68206         * manual/creatute.texi: Likewise.
68207         * manual/install.texi: Likewise.
68208         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68209         @glibcadj{} in references to the GNU C Library.
68210         * manual/charset.texi: Likewise.
68211         * manual/conf.texi: Likewise.
68212         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68213         when not using those macros.
68214         * manual/creature.texi: Likewise.
68215         * manual/crypt.texi: Likewise.
68216         * manual/errno.texi: Likewise.
68217         * manual/filesys.texi: Likewise.
68218         * manual/header.texi: Likewise.
68219         * manual/install.texi: Likewise.
68220         * manual/intro.texi: Likewise.
68221         * manual/io.texi: Likewise.
68222         * manual/job.texi: Likewise.
68223         * manual/lang.texi: Likewise.
68224         * manual/libc.texiinfo: Likewise.
68225         * manual/llio.texi: Likewise.
68226         * manual/locale.texi: Likewise.
68227         * manual/maint.texi: Likewise.
68228         * manual/math.texi: Likewise.
68229         * manual/memory.texi: Likewise.
68230         * manual/message.texi: Likewise.
68231         * manual/nss.texi: Likewise.
68232         * manual/pattern.texi: Likewise.
68233         * manual/process.texi: Likewise.
68234         * manual/resource.texi: Likewise.
68235         * manual/search.texi: Likewise.
68236         * manual/setjmp.texi: Likewise.
68237         * manual/signal.texi: Likewise.
68238         * manual/socket.texi: Likewise.
68239         * manual/startup.texi: Likewise.
68240         * manual/stdio.texi: Likewise.
68241         * manual/string.texi: Likewise.
68242         * manual/sysinfo.texi: Likewise.
68243         * manual/syslog.texi: Likewise.
68244         * manual/terminal.texi: Likewise.
68245         * manual/time.texi: Likewise.
68246         * manual/users.texi: Likewise.
68247         * INSTALL: Regenerated.
68248         * NOTES: Regenerated.
68249         * sysdeps/gnu/errlist.c: Regenerated.
68250
68251 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68252
68253         * include/dirent.h: Include <dirstream.h> before
68254         <dirent/dirent.h>.
68255
68256 2012-02-28  David S. Miller  <davem@davemloft.net>
68257
68258         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68259         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68260         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68261         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68262
68263 2012-02-27  David S. Miller  <davem@davemloft.net>
68264
68265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68267         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68268         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68269
68270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68271         frame pointer instead of stack pointer relative arg slot.
68272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68273         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68274         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68275
68276 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68277
68278         [BZ #3992]
68279         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68280
68281 2012-02-27  David S. Miller  <davem@davemloft.net>
68282
68283         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68285         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68286         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68287         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68288         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68289         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68290         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68291
68292 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68293
68294         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68295         later.  Allow versions 5-9.
68296         * configure: Regenerated.
68297         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68298         required minimum version and 4.6 as recommended version.  Do not
68299         mention bugs in GCC 2.7 and 2.8.
68300         * INSTALL: Regenerated.
68301
68302 2012-02-27  David S. Miller  <davem@davemloft.net>
68303
68304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68308         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68309         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68310         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68311         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68312
68313         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68314         manipulate bits before adding and subtracting TWO112[sx].
68315         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68316
68317 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68318
68319         [BZ #13775]
68320         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68321         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68322         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68323         being in POSIX, because they are in 1003.1-2008.
68324
68325         * rt/tst-aio.c: Include <fcntl.h>.
68326         * rt/tst-aio7.c: Likewise.
68327         * rt/tst-aio64.c: Likewise.
68328
68329         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68330
68331 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68332
68333         * manual/install.texi (--with-headers): Describe headers as
68334         interface headers, not private headers.
68335         (Specific advice for GNU/Linux systems): Describe use of headers
68336         from "make headers_install", not private headers from older
68337         kernels.
68338         * INSTALL: Regenerated.
68339         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68340         Change to 2.6.19.
68341         * sysdeps/unix/sysv/linux/configure: Regenerated.
68342
68343         * manual/llio.texi (fclean): Remove documentation.
68344
68345         * manual/Makefile (libc-texi-generated): New variable.  Include
68346         version.texi.
68347         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68348         $(libc-texi-generated), not duplicated list of files.
68349         (version.texi, stamp-version): New rules.
68350         (realclean): Remove $(libc-texi-generated), not individual files
68351         from that list.  Do not remove dir-add.texinfo.
68352         * manual/libc.texinfo: Comment out uses of edition numbers and
68353         references to printed manual.  Remove last-updated dates.
68354         (EDITION): Comment out.
68355         (ISBN): Likewise.
68356         (VERSION, UPDATED): Remove.
68357         (version.texi): Include.
68358
68359 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68360
68361         * sysdeps/posix/spawni.c: Include <signal.h>.
68362         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68363         * sysdeps/pthread/aio_fsync.c: Likewise.
68364
68365 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68366
68367         * conform/Makefile (tests): Run only when not cross-compiling and
68368         when fast-check is not defined.
68369
68370         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68371         * conform/data/limits.h-data: Fixes for POSIX2008.
68372         * conform/run-conformtest.sh: Run all tests.
68373         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68374         headers.
68375         * include/bits/dlfcn.h: Likewise.
68376         * include/langinfo.h: Likewise.
68377         * include/monetary.h: Likewise.
68378         * include/sys/poll.h: Likewise.
68379
68380         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68381         for __USE_GNU.
68382         * posix/spawn.h: Define __need_sigset_t.
68383         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68384         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68385         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68386         to get sigevent_t only.
68387         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68388         only for __USE_GNU.
68389         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68390         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68391         process_vm_writev only for __USE_GNU.
68392         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68393
68394         * conform/Makefile: For now ignore errors from run-conformtest.
68395         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68396         POSIX to avoid namespace pollution.  Don't prepend headers.
68397         * conform/data/aio.h-data: Fixes for POSIX testing.
68398         * conform/data/fcntl.h-data: Likewise.
68399         * conform/data/glob.h-data: Likewise.
68400         * conform/data/grp.h-data: Likewise.
68401         * conform/data/pthread.h-data: Likewise.
68402         * conform/data/pwd.h-data: Likewise.
68403         * conform/data/signal.h-data: Likewise.
68404         * conform/data/spawn.h-data: Likewise.
68405         * conform/data/stdio.h-data: Likewise.
68406         * conform/data/stdlib.h-data: Likewise.
68407         * conform/data/stropts.h-data: Likewise.
68408         * conform/data/sys/mman.h-data: Likewise.
68409         * conform/data/sys/stat.h-data: Likewise.
68410         * conform/data/sys/types.h-data: Likewise.
68411         * conform/data/sys/wait.h-data: Likewise.
68412         * conform/data/time.h-data: Likewise.
68413         * conform/data/unistd.h-data: Likewise.
68414         * conform/data/utime.h-data: Likewise.
68415
68416         * io/sys/stat.h: fchmod was always in POSIX.
68417         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68418         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68419         * rt/aio.h: Define __need_timespec before including <time.h>.
68420         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68421         struct.  Add forward declaration of pthread_attr_t and use it in
68422         sigevent.
68423         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68424         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68425         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68426         always remove CLK_TCK definition.
68427
68428 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68429
68430         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68431
68432 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68433
68434         * conform/run-conformtest.sh: New file.
68435         * conform/Makefile: Run run-conformtest for tests.
68436         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68437         support.
68438
68439         * conform/data/uchar.h-data: New file.
68440         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68441         * conform/data/arpa/inet.h-data: Likewise.
68442         * conform/data/assert.h-data: Likewise.
68443         * conform/data/complex.h-data: Likewise.
68444         * conform/data/cpio.h-data: Likewise.
68445         * conform/data/ctype.h-data: Likewise.
68446         * conform/data/dirent.h-data: Likewise.
68447         * conform/data/dlfcn.h-data: Likewise.
68448         * conform/data/errno.h-data: Likewise.
68449         * conform/data/fcntl.h-data: Likewise.
68450         * conform/data/float.h-data: Likewise.
68451         * conform/data/fmtmsg.h-data: Likewise.
68452         * conform/data/fnmatch.h-data: Likewise.
68453         * conform/data/ftw.h-data: Likewise.
68454         * conform/data/glob.h-data: Likewise.
68455         * conform/data/grp.h-data: Likewise.
68456         * conform/data/iconv.h-data: Likewise.
68457         * conform/data/inttypes.h-data: Likewise.
68458         * conform/data/langinfo.h-data: Likewise.
68459         * conform/data/libgen.h-data: Likewise.
68460         * conform/data/limits.h-data: Likewise.
68461         * conform/data/locale.h-data: Likewise.
68462         * conform/data/math.h-data: Likewise.
68463         * conform/data/monetary.h-data: Likewise.
68464         * conform/data/mqueue.h-data: Likewise.
68465         * conform/data/ndbm.h-data: Likewise.
68466         * conform/data/net/if.h-data: Likewise.
68467         * conform/data/netdb.h-data: Likewise.
68468         * conform/data/netinet/in.h-data: Likewise.
68469         * conform/data/nl_types.h-data: Likewise.
68470         * conform/data/poll.h-data: Likewise.
68471         * conform/data/pthread.h-data: Likewise.
68472         * conform/data/pwd.h-data: Likewise.
68473         * conform/data/regex.h-data: Likewise.
68474         * conform/data/sched.h-data: Likewise.
68475         * conform/data/search.h-data: Likewise.
68476         * conform/data/semaphore.h-data: Likewise.
68477         * conform/data/setjmp.h-data: Likewise.
68478         * conform/data/signal.h-data: Likewise.
68479         * conform/data/spawn.h-data: Likewise.
68480         * conform/data/stdarg.h-data: Likewise.
68481         * conform/data/stdio.h-data: Likewise.
68482         * conform/data/stdlib.h-data: Likewise.
68483         * conform/data/string.h-data: Likewise.
68484         * conform/data/strings.h-data: Likewise.
68485         * conform/data/stropts.h-data: Likewise.
68486         * conform/data/sys/ipc.h-data: Likewise.
68487         * conform/data/sys/mman.h-data: Likewise.
68488         * conform/data/sys/msg.h-data: Likewise.
68489         * conform/data/sys/resource.h-data: Likewise.
68490         * conform/data/sys/select.h-data: Likewise.
68491         * conform/data/sys/sem.h-data: Likewise.
68492         * conform/data/sys/shm.h-data: Likewise.
68493         * conform/data/sys/socket.h-data: Likewise.
68494         * conform/data/sys/stat.h-data: Likewise.
68495         * conform/data/sys/statvfs.h-data: Likewise.
68496         * conform/data/sys/time.h-data: Likewise.
68497         * conform/data/sys/timeb.h-data: Likewise.
68498         * conform/data/sys/times.h-data: Likewise.
68499         * conform/data/sys/types.h-data: Likewise.
68500         * conform/data/sys/uio.h-data: Likewise.
68501         * conform/data/sys/un.h-data: Likewise.
68502         * conform/data/sys/utsname.h-data: Likewise.
68503         * conform/data/sys/wait.h-data: Likewise.
68504         * conform/data/syslog.h-data: Likewise.
68505         * conform/data/tar.h-data: Likewise.
68506         * conform/data/termios.h-data: Likewise.
68507         * conform/data/utime.h-data: Likewise.
68508         * conform/data/utmpx.h-data: Likewise.
68509         * conform/data/varargs.h-data: Likewise.
68510         * conform/data/wchar.h-data: Likewise.
68511         * conform/data/wctype.h-data: Likewise.
68512         * conform/data/wordexp.h-data: Likewise.
68513
68514         * include/stropts.h: New file.
68515         * include/uchar.h: New file.
68516         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68517         * include/assert.h: Likewise.
68518         * include/ctype.h: Likewise.
68519         * include/dirent.h: Likewise.
68520         * include/dlfcn.h: Likewise.
68521         * include/fcntl.h: Likewise.
68522         * include/fnmatch.h: Likewise.
68523         * include/glob.h: Likewise.
68524         * include/grp.h: Likewise.
68525         * include/libio.h: Likewise.
68526         * include/locale.h: Likewise.
68527         * include/math.h: Likewise.
68528         * include/net/if.h: Likewise.
68529         * include/netdb.h: Likewise.
68530         * include/netinet/in.h: Likewise.
68531         * include/pthread.h: Likewise.
68532         * include/pwd.h: Likewise.
68533         * include/regex.h: Likewise.
68534         * include/sched.h: Likewise.
68535         * include/search.h: Likewise.
68536         * include/setjmp.h: Likewise.
68537         * include/signal.h: Likewise.
68538         * include/stdio.h: Likewise.
68539         * include/stdlib.h: Likewise.
68540         * include/string.h: Likewise.
68541         * include/sys/cdefs.h: Likewise.
68542         * include/sys/mman.h: Likewise.
68543         * include/sys/msg.h: Likewise.
68544         * include/sys/resource.h: Likewise.
68545         * include/sys/select.h: Likewise.
68546         * include/sys/socket.h: Likewise.
68547         * include/sys/stat.h: Likewise.
68548         * include/sys/statvfs.h: Likewise.
68549         * include/sys/time.h: Likewise.
68550         * include/sys/times.h: Likewise.
68551         * include/sys/uio.h: Likewise.
68552         * include/sys/utsname.h: Likewise.
68553         * include/sys/wait.h: Likewise.
68554         * include/termios.h: Likewise.
68555         * include/time.h: Likewise.
68556         * include/ulimit.h: Likewise.
68557         * include/unistd.h: Likewise.
68558         * include/utime.h: Likewise.
68559         * include/wchar.h: Likewise.
68560         * include/wctype.h: Likewise.
68561         * include/wordexp.h: Likewise.
68562
68563         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68564
68565         * time/time.h: TIME_UTC must be a macro.
68566         Make timespec_get available for ISO C11 only as well.
68567
68568 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68569
68570         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68571         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68572
68573 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68574
68575         * configure.in: Use -o not -a in test for unsupported multi-arch.
68576
68577 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68578
68579         * manual/texinfo.tex: Update to version 2012-01-19.16.
68580
68581 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68582
68583         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68584
68585 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68586
68587         [BZ #13738]
68588         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68589         * manual/fdl-1.3.texi: New file.
68590         * manual/fdl-1.1.texi: File removed.
68591
68592         [BZ #13738]
68593         * manual/libc.texinfo (FDL_VERSION): New @set.
68594         Use it for mention of FDL in cover text.
68595         (Documentation License): Use it in @include file name.
68596
68597 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68598             Roland McGrath  <roland@hack.frob.com>
68599
68600         [BZ #5461]
68601         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68602         (not LONG_LONG_MAX and LONG_LONG_MIN.
68603         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68604         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68605         name.
68606         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68607
68608 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68609
68610         [BZ #2547]
68611         [BZ #11365]
68612         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68613         manipulate bits before adding and subtracting TWO23[sx].
68614         * math/libm-test.inc (nearbyint_test): Add more tests.
68615
68616 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68617
68618         [BZ #2548]
68619         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68620         bits before adding and subtracting TWO23[sx].
68621         * math/libm-test.inc (rint_test): Add more tests.
68622         (rint_test_tonearest): Likewise.
68623         (rint_test_towardzero): Likewise.
68624         (rint_test_downward): Likewise.
68625         (rint_test_upward: Likewise.
68626
68627 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68628
68629         [BZ #10110]
68630         * include/stdc-predef.h: New file.  Extracted from features.h.
68631         * include/features.h: Include stdc-predef.h.
68632         * Makefile (headers): Add stdc-predef.h.
68633         * CONFORMANCE (Compiler limitations): Update.
68634
68635 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68636
68637         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68638
68639 2012-02-21  David S. Miller  <davem@davemloft.net>
68640
68641         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68642         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68643
68644 2012-02-20  David S. Miller  <davem@davemloft.net>
68645
68646         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68647         using a normal save/restore sequence, rather than allocating a
68648         dummy stack frame just to store a frame pointer and restore.
68649         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68650
68651 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68652
68653         * manual/install.texi: Fix stray word in line-wrapped comment.
68654
68655 2012-02-20  David S. Miller  <davem@davemloft.net>
68656
68657         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68658         both binutils and gcc support GOTDATA.
68659
68660         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68661         "rd %pc" in the PIC register setup sequences.
68662
68663         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68664         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68665         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68666         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68667         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68668         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68669         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68670         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68671         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68672         (SYSCALL_ERROR_HANDLER): Likewise.
68673         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68674         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68675         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68676         (SYSCALL_ERROR_HANDLER): Likewise.
68677
68678         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68679         (HAVE_GCC_GOTDATA): New.
68680         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68681         relocation support in both binutils and gcc.
68682         * sysdeps/sparc/elf/configure: Regenerate.
68683
68684         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68685         * sysdeps/sparc/sparc32/elf/configure: Delete.
68686         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68687         * sysdeps/sparc/sparc64/elf/configure: Delete.
68688         * sysdeps/sparc/elf/configure.in: New file.
68689         * sysdeps/sparc/elf/configure: Generate.
68690
68691         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68692         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68693         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68694         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68695         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68696
68697 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68698
68699         * manual/install.texi: Do not mention specific glibc version
68700         numbers.
68701         * manual/libc.texinfo (VERSION, UPDATED): Update.
68702         (@copying): Use @copyright{} and range of years.
68703
68704 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68705
68706         [BZ #13695]
68707         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68708         [crti.S not in sysdirs] (generated): Do not append.
68709         [crti.S not in sysdirs] (omit-deps): Likewise.
68710         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68711         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68712         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68713         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68714         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68715         Likewise.
68716         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68717         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68718         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68719         * csu/defs.awk: Remove file.
68720         * sysdeps/generic/initfini.c: Likewise.
68721         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68722         variable.
68723         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68724         Likewise.
68725
68726 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68727
68728         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68729         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68730         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68731         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68732         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68733         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68734         <bits/epoll.h>.
68735         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68736         (__EPOLL_PACKED): Define to empty if not defined by
68737         <bits/epoll.h>.
68738         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68739         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68740         bits/epoll.h.
68741
68742 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68743
68744         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68745         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68746         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68747         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68748         <bits/timerfd.h>.
68749         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68750         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68751         bits/timerfd.h.
68752
68753 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68754
68755         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68756         in C locale.
68757         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68758         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68759         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68761
68762 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68763
68764         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68765         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68766
68767 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68768
68769         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68770         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68771         defined.
68772         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68773         Likewise.
68774         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68775         entry for 2.16.
68776
68777 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68778
68779         * math/w_acos.c: Use non-signaling floating-point comparisons.
68780         * math/w_acosf.c: Likewise.
68781         * math/w_acosh.c: Likewise.
68782         * math/w_acoshf.c: Likewise.
68783         * math/w_acoshl.c: Likewise.
68784         * math/w_acosl.c: Likewise.
68785         * math/w_asin.c: Likewise.
68786         * math/w_asinf.c: Likewise.
68787         * math/w_asinl.c: Likewise.
68788         * math/w_atanh.c: Likewise.
68789         * math/w_atanhf.c: Likewise.
68790         * math/w_atanhl.c: Likewise.
68791         * math/w_exp2.c: Likewise.
68792         * math/w_exp2f.c: Likewise.
68793         * math/w_exp2l.c: Likewise.
68794         * math/w_j0.c: Likewise.
68795         * math/w_j0f.c: Likewise.
68796         * math/w_j0l.c: Likewise.
68797         * math/w_j1.c: Likewise.
68798         * math/w_j1f.c: Likewise.
68799         * math/w_j1l.c: Likewise.
68800         * math/w_jn.c: Likewise.
68801         * math/w_jnf.c: Likewise.
68802         * math/w_log.c: Likewise.
68803         * math/w_log10.c: Likewise.
68804         * math/w_log10f.c: Likewise.
68805         * math/w_log10l.c: Likewise.
68806         * math/w_log2.c: Likewise.
68807         * math/w_log2f.c: Likewise.
68808         * math/w_log2l.c: Likewise.
68809         * math/w_logf.c: Likewise.
68810         * math/w_logl.c: Likewise.
68811         * math/w_sqrt.c: Likewise.
68812         * math/w_sqrtf.c: Likewise.
68813         * math/w_sqrtl.c: Likewise.
68814         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68815         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68816         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68817         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68818         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68819
68820 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68821
68822         [BZ #9739]
68823         * manual/string.texi (strnlen): Use correct parameter name in
68824         equivalent expression.
68825
68826 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68827
68828         [BZ #11174]
68829         * manual/users.texi (seteuid): Consistently use neweuid for
68830         argument name.
68831
68832 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68833
68834         [BZ #13704]
68835         * manual/nss.texi (Services in the NSS configuration): Correct
68836         list of services in example configuration file.
68837
68838 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68839
68840         [BZ #11322]
68841         * manual/arith.texi: Remove statements about negative zero
68842         behaving identically to zero.
68843
68844 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68845
68846         [BZ #5993]
68847         * manual/install.texi: Do not document upgrading from libc5.
68848
68849 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68850
68851         [BZ #4596]
68852         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68853
68854 2012-02-18  David S. Miller  <davem@davemloft.net>
68855
68856         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68857         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68858         %o7 across the call.
68859         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68860         instead.
68861         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68862         SETUP_PIC_REG_LEAF.
68863         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68864         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68865         * sysdeps/sparc/crtn.S: Likewise.
68866
68867 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68868
68869         * aout/Makefile: Remove.
68870
68871 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68872
68873         [BZ #13058]
68874         * manual/examples/argp-ex1.c (main): Format definition in GNU
68875         style.
68876         * manual/examples/argp-ex2.c (main): Likewise.
68877         * manual/examples/argp-ex3.c (main): Likewise.
68878         * manual/examples/argp-ex4.c (main): Likewise.
68879         * manual/examples/longopt.c (main): Use new-style prototype
68880         definition.
68881         * manual/examples/strncat.c (main): Specify return type and use
68882         (void) for arguments.
68883         * manual/examples/subopt.c (main): Use char **argv argument.
68884
68885 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68886
68887         [BZ #5077]
68888         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68889         rounding modes.
68890
68891 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68892
68893         [BZ #6907]
68894         * manual/string.texi (strchr): Change when strchrnul is
68895         recommended.
68896
68897 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68898
68899         [BZ #174]
68900         * manual/locale.texi (setlocale): Document LOCPATH.
68901
68902 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68903
68904         [BZ #10210]
68905         * manual/process.texi (execle): Move @dots{} before last argument.
68906
68907 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68908
68909         [BZ #12047]
68910         * manual/charset.texi (Generic Charset Conversion): Fix typo
68911         (LC_TYPE -> LC_CTYPE).
68912
68913 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68914
68915         [BZ #5805]
68916         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68917         (scalbnf): Likewise.
68918         (scalbnl): Likewise.
68919         (scalbln): Likewise.
68920         (scalblnf): Likewise.
68921         (scalblnl): Likewise.
68922         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68923         (vwarnx): Likewise.
68924         (verr): Likewise.
68925         (verrx): Likewise.
68926         * manual/filesys.texi (telldir): Use braces around return type.
68927         * manual/llio.texi (mmap): Add space after comma.
68928         (mmap64): Likewise.
68929         * manual/math.texi (jn): Use @var{} on parameter names.
68930         (jnf): Likewise.
68931         (jnl): Likewise.
68932         (yn): Likewise.
68933         (ynf): Likewise.
68934         (ynl): Likewise.
68935         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68936         line.
68937         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68938         "...".
68939         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68940         (sched_get_priority_max): Likewise.
68941         * manual/signal.texi (sigvec): Add space after comma.
68942         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68943         names.
68944         (if_indextoname): Likewise.
68945         (if_freenameindex): Likewise.
68946         (sendto): Use ',' instead of '.' in prototype.
68947         * manual/startup.texi (syscall): Use @dots{} instead of literal
68948         "...".
68949         * manual/stdio.texi (__fpending): Separate initial words of
68950         paragraph from @deftypefun line.
68951         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68952         "...".
68953         (vsyslog): Use @var{} on parameter names.
68954         * manual/terminal.texi (stty): Use @var{} on parameter names.
68955         * manual/users.texi (getutmp): Use @var{} on parameter names.
68956         (getutmpx): Likewise.
68957
68958 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68959
68960         [BZ #6884]
68961         * manual/stdio.texi (fopen): Fix typos in description of
68962         ",ccs=STRING".
68963
68964 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68965
68966         [BZ #4026]
68967         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68968         get clock_id definition.
68969
68970 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68971
68972         [BZ #4822]
68973         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68974         (madvise): Cast every argument to void on its own.
68975
68976 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68977
68978         [BZ #9902]
68979         * manual/startup.texi (Exit Status): Fix typo.
68980
68981 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68982
68983         [BZ #10140]
68984         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68985         * manual/examples/argp-ex2.c: Likewise.
68986         * manual/examples/argp-ex3.c: Likewise.
68987
68988 2012-02-16  Richard Henderson  <rth@redhat.com>
68989
68990         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68991         * sysdeps/s390/s390-32/initfini.c: Remove.
68992         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68993         * sysdeps/s390/s390-64/initfini.c: Remove.
68994
68995 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68996
68997         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68998         compiler output for sysdeps/generic/initfini.c.
68999         * sysdeps/sh/elf/initfini.c: Remove file.
69000
69001 2012-02-16  David S. Miller  <davem@davemloft.net>
69002
69003         [BZ #11494]
69004         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69005
69006         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69007         * sysdeps/sparc/crti.S: New file.
69008         * sysdeps/sparc/crtn.S: New file.
69009         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69010         * sysdeps/sparc/sparc64/Makefile: Likewise.
69011
69012 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69013
69014         [BZ #3335]
69015         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69016
69017 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69018
69019         [BZ #4822]
69020         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69021
69022         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69023         (write, read, close): Likewise.
69024         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69025
69026 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69027
69028         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69029         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69030         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69031         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69032         <bits/signalfd.h>.
69033         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69034         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69035         bits/signalfd.h.
69036
69037 2012-02-14  Marek Polacek  <polacek@redhat.com>
69038
69039         * sysdeps/x86_64/crti.S: New file.
69040         * sysdeps/x86_64/crtn.S: New file.
69041         * sysdeps/x86_64/elf/initfini.c: Remove file.
69042
69043 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69044
69045         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69046         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69047         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69048         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69049         <bits/inotify.h>.
69050         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69051         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69052         bits/inotify.h.
69053
69054 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69055
69056         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69057         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69058         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69059         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69060         <bits/eventfd.h>.
69061         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69062         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69063         bits/eventfd.h.
69064
69065 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69066
69067         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69068         __feraiseexcept instead of feraiseexcept.
69069
69070         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69071         nanosleep invocations.
69072         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69073         strings, and add error checking for a nanosleep invocations.
69074
69075 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         Replace FSF snail mail address with URLs, as per GNU coding standards.
69078         Most of the snail mail addresses were wrong anyway, and omitting
69079         them makes the source code easier to maintain.  Almost all of the
69080         changes are to license notices and to locale LC_IDENTIFICATION
69081         addresses, except for this one:
69082         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69083         not its snail mail address.
69084
69085 2012-02-09  Richard Henderson  <rth@twiddle.net>
69086
69087         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69088         of kernel-features.h.
69089
69090         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69091
69092 2012-02-08  Marek Polacek  <polacek@redhat.com>
69093
69094         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69095         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69096         * sysdeps/gnu/_G_config.h: Likewise.
69097         * sysdeps/generic/_G_config.h: Likewise.
69098
69099 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69100
69101         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69102         tests.
69103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69104
69105         * sysdeps/powerpc/powerpc32/crti.S: New file.
69106         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69107         * sysdeps/powerpc/powerpc64/crti.S: New file.
69108         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69109
69110         * Makeconfig (have-initfini): Don't set.
69111         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69112         * configure.in (nopic_initfini): Don't substitute.
69113         * config.h.in (HAVE_INITFINI): Don't #undef.
69114         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69115         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69116
69117 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69118
69119         Support crti.S and crtn.S provided directly by architectures.
69120         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69121         [crti.S in sysdirs] (omit-deps): Likewise.
69122         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69123         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69124         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69125         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69126         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69127         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69128         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69129         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69130         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69131         compiler output for sysdeps/generic/initfini.c.
69132         * sysdeps/i386/elf/Makefile: Remove file.
69133         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69134
69135 2012-02-07  Marek Polacek  <polacek@redhat.com>
69136
69137         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69138         * sysdeps/gnu/_G_config.h: Likewise.
69139         * sysdeps/mach/hurd/_G_config.h: Likewise.
69140
69141 2012-02-07  Marek Polacek  <polacek@redhat.com>
69142
69143         * math/Makefile (tests): Add tst-CMPLX2.
69144         * math/tst-CMPLX2.c: New file.
69145
69146 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69147
69148         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69149
69150         * math/libm-test.inc (jn_test): Add missing L suffix.
69151
69152 2012-02-06  Marek Polacek  <polacek@redhat.com>
69153
69154         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69155         * sysdeps/i386/fpu/e_powf.S: Likewise.
69156         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69157         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69158         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69159         * sysdeps/i386/fpu/e_pow.S: Likewise.
69160         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69161         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69162         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69163         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69164         * sysdeps/i386/fpu/e_log2.S: Likewise.
69165         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69166         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69167         * sysdeps/i386/fpu/e_powl.S: Likewise.
69168         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69169         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69170         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69171         * sysdeps/i386/fpu/e_logl.S: Likewise.
69172         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69173         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69174         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69175         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69176         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69177         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69178         * sysdeps/i386/fpu/e_log.S: Likewise.
69179         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69180         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69181         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69182         * sysdeps/i386/fpu/e_logf.S: Likewise.
69183         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69184         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69185         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69186         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69187         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69188         * sysdeps/i386/fpu/e_log10.S: Likewise.
69189         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69190         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69191         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69192         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69193         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69194         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69195         * sysdeps/i386/asm-syntax.h: Likewise.
69196         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69197         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69198         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69199         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69200         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69201         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69202         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69203         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69204         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69205         * sysdeps/powerpc/sysdep.h: Likewise.
69206         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69207         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69208
69209 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69210
69211         [BZ #411]
69212         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69213
69214 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69215
69216         * sysdeps/i386/sysdep.h: Include <features.h>.
69217         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69218         version.
69219
69220 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69221
69222         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69223         Define.
69224         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69225         LOAD_PIC_REG_STR.
69226
69227 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69228
69229         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69230         (SETUP_PIC_REG): Use GET_PC_THUNK.
69231         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69232         macro.
69233
69234 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69235
69236         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69237         for non-PIC compilation.
69238         (SETUP_PIC_REG): Add .p2align directive.
69239         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69240         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69241         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69242         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69243         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69244         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69245         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69246         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69247         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69248         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69249         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69250         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69251         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69252         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69253         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69254         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69255         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69256         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69257         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69258         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69259         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69260         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69261         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69262         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69263         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69264         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69265         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69266         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69267         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69268         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69269         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69270         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69271         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69272         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69273         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69274         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69275         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69276         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69277         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69278         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69279         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69280
69281 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69282
69283         * math/tst-CMPLX.c: Include <stdio.h>.
69284
69285 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69286
69287         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69288         float.
69289         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69290         * sysdeps/sparc/bits/mathdef.h: Likewise.
69291
69292 2012-01-31  Marek Polacek  <polacek@redhat.com>
69293
69294         * libio/libio.h: Don't define _PARAMS.
69295         * locale/programs/config.h: Don't define PARAMS.
69296         * stdlib/strtol_l.c: Likewise.
69297         (__strtol_l): Remove PARAMS from the prototype.
69298
69299 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69300
69301         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69302         names.  Just use the correct names.  Remove unnecessary wrapper
69303         functions.
69304         * malloc/arena.c: Likewise.
69305         * malloc/hooks.c: Likewise.
69306
69307         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69308         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69309         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69310
69311 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69312
69313         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69314         into tail calls.
69315         (update_get_addr): New function.
69316         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69317         GET_ADDR_MODULE parameter.
69318
69319 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69320
69321         * crypt/cert.c: Remove __STDC__ conditionals.
69322         * crypt/crypt-entry.c: Likewise.
69323         * crypt/crypt_util.c: Likewise.
69324         * libio/filedoalloc.c: Likewise.
69325         * libio/fileops.c: Likewise.
69326         * libio/genops.c: Likewise.
69327         * libio/iofclose.c: Likewise.
69328         * libio/iofdopen.c: Likewise.
69329         * libio/iofopen.c: Likewise.
69330         * libio/iofopen64.c: Likewise.
69331         * libio/iogetdelim.c: Likewise.
69332         * libio/iopopen.c: Likewise.
69333         * libio/obprintf.c: Likewise.
69334         * libio/oldfileops.c: Likewise.
69335         * libio/oldiofclose.c: Likewise.
69336         * libio/oldiofdopen.c: Likewise.
69337         * libio/oldiofopen.c: Likewise.
69338         * libio/oldiopopen.c: Likewise.
69339         * libio/wfiledoalloc.c: Likewise.
69340         * libio/wgenops.c: Likewise.
69341         * locale/programs/xmalloc.c: Likewise.
69342         * misc/syslog.c: Likewise.
69343         * stdio-common/xbug.c: Likewise.
69344         * string/memchr.c: Likewise.
69345         * string/memcmp.c: Likewise.
69346         * string/memrchr.c: Likewise.
69347         * string/rawmemchr.c: Likewise.
69348         * sysdeps/posix/getcwd.c: Likewise.
69349         * time/strftime_l.c: Likewise.
69350
69351 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69352
69353         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69354         * config.make.in (config-cflags-sse2avx): Define.
69355         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69356         Fix typo.
69357
69358 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69359
69360         * scripts/config.guess: Update from upstream config git repository.
69361         * scripts/config.sub: Likewise.
69362
69363 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69364
69365         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69366         (EM_NUM): Update.
69367         (R_TILEPRO_*, R_TILEGX_*): New macros.
69368
69369         * scripts/firstversions.awk: Fix bug in version range handling.
69370
69371         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69372
69373         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69374
69375         * include/sys/epoll.h: New file.
69376         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69377         libc_hidden_def.
69378
69379 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69380
69381         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69382         Avoid unnecessary __WORDSIZE == 64 test.
69383         (fmaxf): Use VEX format if possible.
69384         (fmax): Likewise.
69385         (fminf): Likewise.
69386         (fmin): Likewise.
69387
69388         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69389         * math/math_private.h: Remove libc_fegetround* and
69390         libc_fesetround*.
69391         * sysdeps/i386/configure.in: Check for -msse2avx.
69392         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69393         also if SSE2AVX is defined.
69394         Remove libc_fegetround* and libc_fesetround*.
69395         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69396         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69397         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69398         of HAS_YMM_USABLE.
69399         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69400         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69401         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69402         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69403         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69404
69405         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69406
69407 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69408
69409         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69410         size is not set.
69411         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69412
69413 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69414
69415         [BZ #13618]
69416         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69417         relocation.
69418         * Makeconfig (libm): Define.
69419         * elf/Makefile: Add rules to build and run tst-relsort1.
69420         * elf/tst-relsort1.c: New file.
69421         * elf/tst-relsort1mod1.c: New file.
69422         * elf/tst-relsort1mod2.c: New file.
69423
69424 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69425
69426         * math/s_ldexp.c: Remove __STDC__ conditionals.
69427         * math/s_ldexpf.c: Likewise.
69428         * math/s_ldexpl.c: Likewise.
69429         * math/s_nextafter.c: Likewise.
69430         * math/s_nexttowardf.c: Likewise.
69431         * math/s_significand.c: Likewise.
69432         * math/s_significandf.c: Likewise.
69433         * math/s_significandl.c: Likewise.
69434         * math/w_jnl.c: Likewise.
69435         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69436         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69437         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69438         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69439         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69440         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69441         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69442         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69443         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69444         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69445         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69446         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69447         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69448         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69449         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69450         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69451         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69452         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69453         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69454         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69455         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69456         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69457         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69458         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69459         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69460         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69461         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69462         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69463         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69464         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69465         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69466         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69467         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69468         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69469         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69470         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69471         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69472         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69473         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69474         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69475         * sysdeps/ieee754/k_standard.c: Likewise.
69476         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69477         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69478         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69479         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69480         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69481         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69482         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69483         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69484         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69485         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69486         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69487         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69488         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69489         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69490         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69491         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69492         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69493         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69494         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69495         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69496         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69497         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69498         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69499         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69500         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69501         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69502         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69503         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69504         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69505         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69506         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69507         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69508         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69509         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69510         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69511         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69512         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69513         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69514         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69515         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69516         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69517         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69518         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69519         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69520         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69521         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69522         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69523         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69524         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69525         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69526         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69527         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69528         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69529         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69530         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69531         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69532         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69533         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69534         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69535         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69536         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69537         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69538         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69539         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69540         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69541         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69542         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69543         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69544         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69545         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69546         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69547         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69548         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69549         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69550         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69551         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69552         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69553         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69554         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69555         * sysdeps/ieee754/s_matherr.c: Likewise.
69556         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69557         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69558         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69559         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69560
69561 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69562
69563         * crypt/md5.h: Remove __STDC__ conditionals.
69564         * libio/libioP.h: Likewise.
69565         * locale/programs/config.h: Likewise.
69566         * sysdeps/generic/sysdep.h: Likewise.
69567         * sysdeps/i386/asm-syntax.h: Likewise.
69568         * sysdeps/s390/asm-syntax.h: Likewise.
69569         * sysdeps/unix/sysdep.h: Likewise.
69570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69572
69573 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69574
69575         * libio/libio.h: Remove __STDC__ conditionals.
69576         * malloc/obstack.h: Likewise.
69577         * math/complex.h: Likewise.
69578         * math/math.h: Likewise.
69579         * sysdeps/generic/_G_config.h: Likewise.
69580         * sysdeps/gnu/_G_config.h: Likewise.
69581         * sysdeps/mach/hurd/_G_config.h: Likewise.
69582         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69583         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69584         * sysdeps/sparc/bits/mathdef.h: Likewise.
69585
69586 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69587
69588         [BZ #13583]
69589         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69590         Clean up HAS_* macros.
69591         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69592         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69593         possible.
69594         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69595         HAS_AVX.
69596         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69597         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69598         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69599         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69600         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69601
69602 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69603
69604         * elf/tst-unique3.cc (gets): Remove declaration.
69605         * elf/tst-unique3lib.cc (gets): Likewise.
69606         * elf/tst-unique3lib2.cc (gets): Likewise.
69607         * elf/tst-unique4.cc (gets): Likewise.
69608
69609 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69610
69611         * include/stdio.h: Add C++ protection.  Add gets declarations and
69612         definitions.
69613         * debug/tst-chk1.c: Don't declare gets here.
69614         * stdio-common/tst-gets.c: Likewise.
69615
69616 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69617
69618         * posix/glob: Remove directory.
69619
69620 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69621
69622         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69623
69624 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69625
69626         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69627         of the non-standard EPFNOSUPPORT.
69628
69629 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69630
69631         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69632         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69633         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69634
69635 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69636
69637         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69638
69639 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69640
69641         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69642         transient errors.
69643         * nscd/grpcache.c (cache_addgr): Likewise.
69644         * nscd/hstcache.c (cache_addhst): Likewise.
69645         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69646         * nscd/pwdcache.c (cache_addpw): Likewise.
69647         * nscd/servicescache.c (cache_addserv): Likewise.
69648
69649 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69650
69651         * malloc/malloc.c: Various cleanups.
69652         * malloc/hooks.c: Likewise.
69653
69654         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69655         * stdlib/bug-fmtmsg1.c: New file.
69656
69657         * stdlib/fmtmsg.c (init): Add missing unlock.
69658         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69659
69660 2012-01-12  Marek Polacek  <polacek@redhat.com>
69661
69662         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69663         and _GNU_SOURCE.
69664
69665 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69666
69667         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69668         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69669         macro to ensure uniqueness of label name.
69670         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69671         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69672
69673 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69674
69675         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69676
69677         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69678         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69679         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69680         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69681
69682 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69683
69684         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69685
69686         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69687         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69688         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69689
69690         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69691
69692         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69693         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69694         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69695         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69696
69697         * math/bits/math-finite.h: Add ldexp support.
69698
69699 2012-01-10  Marek Polacek  <polacek@redhat.com>
69700
69701         * locale/programs/localedef.h (show_archive_content): Add noreturn
69702         attribute.
69703
69704 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69705
69706         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69707
69708 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69709
69710         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69711
69712         * io/Makefile (headers): Add bits/poll2.h.
69713
69714 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69715
69716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69717         typo #include statement.
69718
69719 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69720
69721         * include/sys/cdefs.h: Define __attribute_alloc_size.
69722         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69723         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69724         * elf/pldd.c: Likewise.
69725         * iconv/iconv_charmap.c: Likewise.
69726         * iconv/iconvconfig.c: Likewise.
69727         * iconv/strtab.c: Likewise.
69728         * locale/programs/locale.c: Likewise.
69729         * locale/programs/localedef.h: Likewise.
69730         * locale/programs/simple-hash.c: Likewise.
69731         * nscd/nscd.h: Likewise.
69732         * nss/makedb.c: Likewise.
69733         * sysdeps/generic/ldconfig.h: Likewise.
69734         * locale/programs/localedef.c: Remove xmalloc prototype.
69735         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69736
69737 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69738
69739         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69740         appropriate.
69741
69742 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69743
69744         * math/Makefile (tests): Add tst-CMPLX.
69745         * math/tst-CMPLX.c: New file.
69746
69747         * math/complex.h (CMPLXL): Fix typo.
69748
69749         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69750         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69751         GLIBC_2.16.
69752         * debug/tst-chk1.c: Add poll and ppoll tests.
69753         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69754         * include/sys/poll.h: Add hidden proto for ppoll.
69755         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69756         * sysdeps/mach/hurd/ppoll.c: Likewise.
69757         * io/ppoll.c: Likewise.
69758         * debug/poll_chk.c: New file.
69759         * debug/ppoll_chk.c: New file.
69760         * include/bits/poll2.h: New file.
69761         * io/bits/poll2.h: New file.
69762
69763         [BZ #1350]
69764         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69765
69766         * configure.in: static is always set to yes.  Remove.
69767         * config.make.in: Don't set build-static.
69768         * Makeconfig: Remove use of build-static.
69769         * dlfcn/Makefile: Likewise.
69770         * elf/Makefile: Likewise.
69771         * math/Makefile: Likewise.
69772         * misc/Makefile: Likewise.
69773         * nptl/Makefile: Likewise.
69774         * sysdeps/mach/hurd/Makefile: Likewise.
69775
69776         * configure.in: PWD_P is not used anymore.
69777         * config.make.in: Remove PWD_P entry.
69778
69779         * configure.in: Remove last remnants of RANLIB.
69780         No need to check for signed size_t anymore.
69781         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69782         and IA-64.
69783         Remove __builtin_expect test because we require at least gcc 3.4.
69784         * aclocal.m4: Likewise.
69785
69786         * wcsmbs/mbrtoc16.c: Implement using towc function.
69787         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69788         * wcsmbs/wcsmbsload.c: Likewise.
69789         * iconv/gconv_simple.c: Likewise.
69790         * iconv/gconv_int.h: Likewise.
69791         * iconv/gconv_builtin.h: Likewise.
69792         * iconv/iconv_prog.c: Remove CHAR16 handling.
69793
69794         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69795
69796         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69797
69798         * configure.in: Remove --with-elf and --enable-bounded options.
69799         Dont set base_machine for ia64.  More non-ELF conditions removed.
69800         Remove testing and setting of leading underscore information.
69801         * config.make.in (build-bounded): Set to no.
69802         * config.h.in: Remove NO_UNDERSCORES entry.
69803         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69804         them.
69805         * csu/start.c: Remove !NO_UNDERSCORE code.
69806         * locale/localeinfo.h: Likewise.
69807         * sysdeps/generic/machine-gmon.h: Likewise.
69808         * sysdeps/generic/sysdep.h: Likewise.
69809         * sysdeps/i386/sysdep.h: Likewise.
69810         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69811         * sysdeps/mach/sysdep.h: Likewise.
69812         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69813         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69814         * sysdeps/sh/sysdep.h: Likewise.
69815         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69816         * sysdeps/unix/i386/sysdep.S: Likewise.
69817         * sysdeps/unix/sparc/start.c: Likewise.
69818         * sysdeps/unix/sparc/sysdep.S: Likewise.
69819         * sysdeps/unix/sparc/sysdep.h: Likewise.
69820         * sysdeps/unix/start.c: Likewise.
69821         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69822         * sysdeps/x86_64/sysdep.h: Likewise.
69823
69824 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69825
69826         [BZ #13553]
69827         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69828         for non-gcc.
69829         * argp/argp-fmtstream.h: Use const instead __const.
69830         * argp/argp.h: Likewise.
69831         * assert/assert.h: Likewise.
69832         * bits/fenv.h: Likewise.
69833         * bits/sched.h: Likewise.
69834         * bits/sigset.h: Likewise.
69835         * bits/sigthread.h: Likewise.
69836         * catgets/nl_types.h: Likewise.
69837         * conform/data/pthread.h-data: Likewise.
69838         * crypt/crypt-private.h: Likewise.
69839         * crypt/crypt.h: Likewise.
69840         * crypt/crypt_util.c: Likewise.
69841         * ctype/ctype.h: Likewise.
69842         * debug/execinfo.h: Likewise.
69843         * debug/mbsnrtowcs_chk.c: Likewise.
69844         * debug/mbsrtowcs_chk.c: Likewise.
69845         * debug/wcsnrtombs_chk.c: Likewise.
69846         * debug/wcsrtombs_chk.c: Likewise.
69847         * debug/wcstombs_chk.c: Likewise.
69848         * dirent/dirent.h: Likewise.
69849         * dlfcn/dlfcn.h: Likewise.
69850         * elf/neededtest4.c: Likewise.
69851         * grp/grp.h: Likewise.
69852         * gshadow/gshadow.h: Likewise.
69853         * iconv/gconv.h: Likewise.
69854         * iconv/gconv_int.h: Likewise.
69855         * iconv/gconv_simple.c: Likewise.
69856         * iconv/iconv.h: Likewise.
69857         * iconv/loop.c: Likewise.
69858         * iconv/skeleton.c: Likewise.
69859         * include/aio.h: Likewise.
69860         * include/aliases.h: Likewise.
69861         * include/argz.h: Likewise.
69862         * include/arpa/inet.h: Likewise.
69863         * include/assert.h: Likewise.
69864         * include/dirent.h: Likewise.
69865         * include/dlfcn.h: Likewise.
69866         * include/execinfo.h: Likewise.
69867         * include/fcntl.h: Likewise.
69868         * include/fenv.h: Likewise.
69869         * include/glob.h: Likewise.
69870         * include/grp.h: Likewise.
69871         * include/libintl.h: Likewise.
69872         * include/mntent.h: Likewise.
69873         * include/netdb.h: Likewise.
69874         * include/pwd.h: Likewise.
69875         * include/rpc/netdb.h: Likewise.
69876         * include/sched.h: Likewise.
69877         * include/search.h: Likewise.
69878         * include/shadow.h: Likewise.
69879         * include/signal.h: Likewise.
69880         * include/stdio.h: Likewise.
69881         * include/stdlib.h: Likewise.
69882         * include/string.h: Likewise.
69883         * include/sys/socket.h: Likewise.
69884         * include/sys/stat.h: Likewise.
69885         * include/sys/statfs.h: Likewise.
69886         * include/sys/statvfs.h: Likewise.
69887         * include/sys/syslog.h: Likewise.
69888         * include/sys/time.h: Likewise.
69889         * include/sys/uio.h: Likewise.
69890         * include/time.h: Likewise.
69891         * include/unistd.h: Likewise.
69892         * include/utmp.h: Likewise.
69893         * include/wchar.h: Likewise.
69894         * include/wctype.h: Likewise.
69895         * inet/aliases.h: Likewise.
69896         * inet/arpa/inet.h: Likewise.
69897         * inet/netinet/ether.h: Likewise.
69898         * inet/netinet/in.h: Likewise.
69899         * intl/libintl.h: Likewise.
69900         * io/bits/fcntl2.h: Likewise.
69901         * io/fcntl.h: Likewise.
69902         * io/ftw.h: Likewise.
69903         * io/sys/poll.h: Likewise.
69904         * io/sys/stat.h: Likewise.
69905         * io/sys/statfs.h: Likewise.
69906         * io/sys/statvfs.h: Likewise.
69907         * io/utime.h: Likewise.
69908         * libio/bits/stdio.h: Likewise.
69909         * libio/bits/stdio2.h: Likewise.
69910         * libio/libio.h: Likewise.
69911         * libio/libioP.h: Likewise.
69912         * libio/stdio.h: Likewise.
69913         * locale/lc-ctype.c: Likewise.
69914         * locale/locale.h: Likewise.
69915         * login/utmp.h: Likewise.
69916         * malloc/arena.c: Likewise.
69917         * malloc/malloc.c: Likewise.
69918         * malloc/malloc.h: Likewise.
69919         * malloc/mcheck.c: Likewise.
69920         * malloc/mtrace.c: Likewise.
69921         * math/bits/mathcalls.h: Likewise.
69922         * math/fenv.h: Likewise.
69923         * math/math_private.h: Likewise.
69924         * misc/bits/error.h: Likewise.
69925         * misc/bits/syslog.h: Likewise.
69926         * misc/err.h: Likewise.
69927         * misc/error.h: Likewise.
69928         * misc/fstab.h: Likewise.
69929         * misc/mntent.h: Likewise.
69930         * misc/regexp.h: Likewise.
69931         * misc/search.h: Likewise.
69932         * misc/sgtty.h: Likewise.
69933         * misc/sys/mman.h: Likewise.
69934         * misc/sys/syslog.h: Likewise.
69935         * misc/sys/uio.h: Likewise.
69936         * misc/sys/xattr.h: Likewise.
69937         * misc/ttyent.h: Likewise.
69938         * nis/rpcsvc/ypclnt.h: Likewise.
69939         * nss/nss.h: Likewise.
69940         * posix/bits/unistd.h: Likewise.
69941         * posix/fnmatch.h: Likewise.
69942         * posix/glob.h: Likewise.
69943         * posix/sched.h: Likewise.
69944         * posix/spawn.h: Likewise.
69945         * posix/sys/wait.h: Likewise.
69946         * posix/unistd.h: Likewise.
69947         * posix/wordexp.h: Likewise.
69948         * pwd/pwd.h: Likewise.
69949         * resolv/netdb.h: Likewise.
69950         * resource/sys/resource.h: Likewise.
69951         * rt/aio.h: Likewise.
69952         * rt/bits/mqueue2.h: Likewise.
69953         * rt/mqueue.h: Likewise.
69954         * shadow/shadow.h: Likewise.
69955         * signal/signal.h: Likewise.
69956         * socket/send.c: Likewise.
69957         * socket/sendto.c: Likewise.
69958         * socket/sys/socket.h: Likewise.
69959         * stdio-common/printf.h: Likewise.
69960         * stdlib/bits/stdlib.h: Likewise.
69961         * stdlib/fmtmsg.h: Likewise.
69962         * stdlib/monetary.h: Likewise.
69963         * stdlib/stdlib.h: Likewise.
69964         * stdlib/ucontext.h: Likewise.
69965         * streams/stropts.h: Likewise.
69966         * string/argz.h: Likewise.
69967         * string/bits/string2.h: Likewise.
69968         * string/string.h: Likewise.
69969         * string/strings.h: Likewise.
69970         * sunrpc/rpc/auth.h: Likewise.
69971         * sunrpc/rpc/auth_des.h: Likewise.
69972         * sunrpc/rpc/clnt.h: Likewise.
69973         * sunrpc/rpc/netdb.h: Likewise.
69974         * sunrpc/rpc/pmap_clnt.h: Likewise.
69975         * sunrpc/rpc/xdr.h: Likewise.
69976         * sysdeps/generic/inttypes.h: Likewise.
69977         * sysdeps/generic/net/if.h: Likewise.
69978         * sysdeps/generic/sys/swap.h: Likewise.
69979         * sysdeps/gnu/net/if.h: Likewise.
69980         * sysdeps/gnu/utmpx.h: Likewise.
69981         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69982         * sysdeps/i386/i486/bits/string.h: Likewise.
69983         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69984         * sysdeps/s390/bits/string.h: Likewise.
69985         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69986         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69987         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69988         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69989         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69990         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69991         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69992         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69993         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69994         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69995         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69996         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69997         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69998         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69999         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70000         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70001         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70002         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70003         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70004         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70005         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70006         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70007         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70008         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70009         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70010         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70011         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70012         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70013         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70014         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70015         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70016         * sysvipc/sys/ipc.h: Likewise.
70017         * sysvipc/sys/msg.h: Likewise.
70018         * sysvipc/sys/sem.h: Likewise.
70019         * sysvipc/sys/shm.h: Likewise.
70020         * termios/termios.h: Likewise.
70021         * time/sys/time.h: Likewise.
70022         * time/time.h: Likewise.
70023         * wcsmbs/bits/wchar2.h: Likewise.
70024         * wcsmbs/uchar.h: Likewise.
70025         * wcsmbs/wchar.h: Likewise.
70026         * wctype/wctype.h: Likewise.
70027
70028         [BZ #13551]
70029         * Makeconfig: Remove all but ELF support including AIX support.
70030         * Makerules: Likewise.
70031         * config.h.in: Likewise.
70032         * config.make.in: Likewise.
70033         * configure: Likewise.
70034         * configure.in: Likewise.
70035         * csu/Makefile: Likewise.
70036         * csu/version.c: Likewise.
70037         * debug/Makefile: Likewise.
70038         * dlfcn/Makefile: Likewise.
70039         * elf/Makefile: Likewise.
70040         * extra-lib.mk: Likewise.
70041         * iconv/Makefile: Likewise.
70042         * include/libc-symbols.h: Likewise.
70043         * include/shlib-compat.h: Likewise.
70044         * resolv/Makefile: Likewise.
70045         * resolv/res_libc.c: Likewise.
70046         * rt/Makefile: Likewise.
70047         * sysdeps/i386/asm-syntax.h: Likewise.
70048         * sysdeps/i386/sysdep.h: Likewise.
70049         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70050         * sysdeps/mach/sysdep.h: Likewise.
70051         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70052         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70053         * sysdeps/s390/asm-syntax.h: Likewise.
70054         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70055         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70056         * sysdeps/sh/sysdep.h: Likewise.
70057         * sysdeps/unix/sparc/sysdep.h: Likewise.
70058         * sysdeps/wordsize-32/divdi3.c: Likewise.
70059         * sysdeps/x86_64/sysdep.h: Likewise.
70060
70061         * argp/Versions: Remove _argp_unlock_xxx.
70062
70063         [BZ #13559]
70064         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70065         * abilist/libBrokenLocale.abilist: Likewise.
70066         * abilist/libanl.abilist: Likewise.
70067         * abilist/libc.abilist: Likewise.
70068         * abilist/libcrypt.abilist: Likewise.
70069         * abilist/libdl.abilist: Likewise.
70070         * abilist/libm.abilist: Likewise.
70071         * abilist/libnsl.abilist: Likewise.
70072         * abilist/libpthread.abilist: Likewise.
70073         * abilist/libresolv.abilist: Likewise.
70074         * abilist/librt.abilist: Likewise.
70075         * abilist/libthread_db.abilist: Likewise.
70076         * abilist/libutil.abilist: Likewise.
70077         * abilist/libnss_db.abilist: New file.
70078
70079         * scripts/abilist.awk: Add support for indirect functions.
70080
70081         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70082
70083         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70084
70085         * shlib-versions: Remove entries for ports architectures.
70086
70087         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70088         files in ports.
70089         * elf/stackguard-macros.h: Remove support for IA-64.
70090         * elf/tst-auditmod1.c: Likewise.
70091         * sysdeps/generic/ldsodefs.h: Likewise.
70092
70093         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70094         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70095         configure files.
70096
70097         [BZ #13552]
70098         * configure.in: Remove --enable-omitfp support.
70099         * FAQ.in: Adjust.
70100         * config.make.in: Likewise.
70101         * Makeconfig: Likewise.
70102         * manual/install.texi: Likewise.
70103
70104         In case anyone cares, the IA-64 architecture could move to ports.
70105         * sysdeps/ia64/*: Removed.
70106         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70107         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70108
70109         [BZ #13555]
70110         * configure.in: Remove entries for unsupported architectures.
70111
70112         [BZ #13533]
70113         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70114         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70115         routines.
70116         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70117         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70118         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70119         fall back to using wcrtomb.
70120         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70121         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70122         renaming.
70123         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70124         * wcsmbs/tst-c16c32-1.c: New file.
70125
70126         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70127         local variable.
70128
70129         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70130
70131         * elf/tst-unique3.cc: Add explicit declaration of gets.
70132         * elf/tst-unique3lib.cc: Likewise.
70133         * elf/tst-unique3lib2.cc: Likewise.
70134         * elf/tst-unique4.cc: Likewise.
70135
70136         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70137
70138 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70139
70140         [BZ #13566]
70141         * assert/assert.h (static_assert): Don't define for C++.
70142         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70143         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70144
70145 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70146
70147         * iconv/loop.c (single loop): Fix assertion in storing of
70148         remaining bytes.
70149
70150         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70151
70152 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70153
70154         * posix/getconf.c: Update copyright year.
70155         * nss/getent.c: Likewise.
70156         * nss/makedb.c: Likewise.
70157         * iconv/iconvconfig.c: Likewise.
70158         * iconv/iconv_prog.c: Likewise.
70159         * elf/ldconfig.c: Likewise.
70160         * elf/pldd.c: Likewise.
70161         * elf/sotruss.ksh: Likewise.
70162         * catgets/gencat.c: Likewise.
70163         * csu/version.c: Likewise.
70164         * elf/ldd.bash.in: Likewise.
70165         * elf/sprof.c (print_version): Likewise.
70166         * locale/programs/locale.c: Likewise.
70167         * locale/programs/localedef.c: Likewise.
70168         * login/programs/pt_chown.c: Likewise.
70169         * nscd/nscd.c (print_version): Likewise.
70170         * debug/xtrace.sh: Likewise.
70171         * malloc/memusage.sh: Likewise.
70172         * malloc/mtrace.pl: Likewise.
70173         * debug/catchsegv.sh: Likewise.
70174
70175 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70176
70177         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70178         pure attribute.
70179
70180 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70181
70182         [BZ #13533]
70183         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70184         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70185         transformations.
70186         * iconv/gconv_int.h: Likewise.
70187         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70188         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70189         from libc for GLIBC_2.16.
70190         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70191         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70192         * wcsmbs/uchar.h: Really define mbstate_t.
70193         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70194         * wcsmbs/c16rtomb.c: New file.
70195         * wcsmbs/mbrtoc16.c: New file.
70196         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70197         for C/POSIX locale.
70198         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70199         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70200
70201         * wcsmbs/wchar.h: Add missing __restrict.
70202
70203 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70204
70205         [BZ #13532]
70206         * time/Makefile (routines): Add timespec_get.
70207         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70208         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70209         timespec for ISO C11.
70210         * time/timespec_get.c: New file.
70211         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70212         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70213
70214         [BZ #13531]
70215         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70216         * stdlib/stdlib.h: Declare aligned_alloc.
70217         * Versions.def: Add GLIBC_2.16 for libc.
70218         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70219
70220         [BZ 13527]
70221         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70222         ISO C11.
70223
70224         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70225         code.
70226
70227         [BZ #13528]
70228         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70229
70230         [BZ #13529]
70231         * assert/assert.h (static_assert): Define.
70232
70233         * version.h: Update for 2.16 development version.
70234
70235         [BZ #13526]
70236         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70237         _ISOC11_SOURCE.
70238
70239         * version.h (RELEASE): Bump for 2.15 release.
70240         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70241
70242         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70243         Patch by Marek Polacek <mpolacek@redhat.com>.
70244
70245         * bits/byteswap.h: Protect long long constants with __extension__.
70246         * sysdeps/i386/bits/byteswap.h: Likewise.
70247         * sysdeps/ia64/bits/byteswap.h: Likewise.
70248         * sysdeps/s390/bits/byteswap.h: Likewise.
70249         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70250
70251 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70252
70253         [BZ #13540]
70254         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70255         destination buffer.
70256         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70257
70258 2011-12-23  Marek Polacek  <polacek@redhat.com>
70259
70260         * elf/dl-addr.c (determine_info): Add inline keyword.
70261         * elf/tst-auditmod4b.c (check_avx): Likewise.
70262         * elf/tst-auditmod6b.c (check_avx): Likewise.
70263         * elf/tst-auditmod6c.c (check_avx): Likewise.
70264         * elf/tst-auditmod7b.c (check_avx): Likewise.
70265
70266 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70267
70268         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70269         !__SSE_MATH__.
70270
70271 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70272
70273         [BZ #13540]
70274         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70275         processing for last bytes.
70276
70277 2011-08-06  Bruno Haible  <bruno@clisp.org>
70278
70279         [BZ #13061]
70280         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70281         U+0385, not to U+1FEE.
70282
70283         [BZ #13062]
70284         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70285         entry for U+00A5 U+0301.
70286
70287 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70288
70289         [BZ #13166]
70290         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70291         buffer for the output is too small.
70292
70293         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70294         optimization.
70295
70296         [BZ #13185]
70297         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70298         SSE flags if possible.
70299
70300 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70301
70302         [BZ #13540]
70303         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70304         processing for last bytes.
70305
70306 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70307
70308         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70309         (syscall-list-default-options, syscall-list-default-condition)
70310         (syscall-list-includes): Define.
70311         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70312         list of ABIs and options and #if conditions for each ABI.  Do not
70313         handle common syscalls between ABIs specially.
70314         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70315         Remove.
70316         (syscall-list-variants, syscall-list-32bit-options)
70317         (syscall-list-32bit-condition, syscall-list-64bit-options)
70318         (syscall-list-64bit-condition): Define.
70319         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70320         (syscall-list-variants, syscall-list-32bit-options)
70321         (syscall-list-32bit-condition, syscall-list-64bit-options)
70322         (syscall-list-64bit-condition): Define.
70323         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70324         Remove.
70325         (syscall-list-variants, syscall-list-32bit-options)
70326         (syscall-list-32bit-condition, syscall-list-64bit-options)
70327         (syscall-list-64bit-condition): Define.
70328         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70329         Remove.
70330         (syscall-list-variants, syscall-list-32bit-options)
70331         (syscall-list-32bit-condition, syscall-list-64bit-options)
70332         (syscall-list-64bit-condition): Define.
70333
70334 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70335
70336         * locale/iso-639.def: Add brx entry.
70337
70338         [BZ #13328]
70339         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70340         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70341
70342         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70343         __feraiseexcept_renamed.
70344
70345 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70346
70347         [BZ #13538]
70348         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70349         EPOLLET with unsigned values.
70350         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70351         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70352
70353         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70354         to large cancellation.
70355         * math/s_cacoshf.c: Likewise.
70356         * math/s_cacoshl.c: Likewise.
70357
70358 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70359
70360         [BZ #13305]
70361         [BZ #12786]
70362         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70363         * math/s_cacoshf.c: Likewise.
70364         * math/s_cacoshl.c: Likewise.
70365
70366 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70367
70368         [BZ #13439]
70369         * iconv/gconv.h: Define __GCONV_SWAP.
70370         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70371         * iconvdata/utf-16.c: Likewise.
70372         * iconvdata/utf-32.c: Likewise.
70373
70374 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70375
70376         [BZ #13524]
70377         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70378         numerator after shifting it by one limb.
70379
70380 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70381
70382         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70383         under [__USE_EXTERN_INLINES].
70384
70385 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70386
70387         [BZ #13446]
70388         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70389
70390 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70391
70392         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70393         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70394         optimized code.
70395         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70396         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70397         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70398         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70399         for strncasecmp/strncasecmp_l compilation.
70400         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70401         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70402
70403 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70404
70405         [BZ #13484]
70406         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70407         of __asm__.
70408
70409 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70410
70411         [BZ #13506]
70412         * time/tzfile.c (__tzfile_read): Check values from file header.
70413
70414 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70415
70416         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70417         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70418         * powerpc/powerpc32/dl-start.S: Likewise.
70419         * powerpc/powerpc32/elf/start.S: Likewise.
70420         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70421         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70422         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70423         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70424         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70425         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70426         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70427         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70428         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70429         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70430         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70431         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70432         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70433         * powerpc/powerpc32/memset.S: Likewise.
70434         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70435         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70436         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70437         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70438         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70439         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70440         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70441         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70442         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70443         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70444         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70445         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70446         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70447
70448 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70449
70450         * math/libm-test.inc: Added more nearbyint tests.
70451         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70452         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70453         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70454         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70455
70456 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70457
70458         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70459         FD_CLOEXEC.
70460
70461 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70462
70463         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70464         Add wcscpy-ssse3 wcscpy-c.
70465         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70466         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70467         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70468         * sysdeps/x86_64/wcschr.S: New file.
70469         * sysdeps/x86_64/wcsrchr.S: New file.
70470         * string/test-strcmp.c: Remove checking of wcscmp function for
70471         wrong alignments.
70472         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70473         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70474         wcsrchr-sse2 wcsrchr-c.
70475         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70476         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70477         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70478         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70479         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70480         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70481         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70482         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70483         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70484         * wcsmbc/wcschr.c (WCSCHR): New macro.
70485
70486 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70487
70488         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70489         * wcsmbs/test-wcsrchr.c: New file.
70490         * string/test-strrchr.c: Add wcsrchr support.
70491         (WIDE): New macro.
70492         * wcsmbs/test-wcscpy.c: New file.
70493         * string/test-strcpy.c: Add wcscpy support.
70494         (WIDE): New macro.
70495
70496 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70497
70498         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70499         the inner loop.
70500
70501 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70502
70503         [BZ #13472]
70504         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70505
70506 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70507
70508         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70509         Minor optimizations.
70510
70511         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70512         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70513         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70514
70515 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70516
70517         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70518         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70519         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70520         for gcc to avoid warnings.
70521         * inet/Makefile (tests): Add tst-checks.
70522         * inet/tst-checks.c: New file.
70523
70524         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70525         warning.
70526
70527         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70528         __wmemcmp_sse2.
70529
70530         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70531         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70532
70533         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70534
70535 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70536
70537         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70538         problem.
70539
70540         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70541
70542 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70543
70544         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70545         conditional on GCC version.
70546         (__arch_compare_and_exchange_val_8_acq)
70547         (__arch_compare_and_exchange_val_16_acq)
70548         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70549         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70550         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70551
70552 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70553
70554         * sysdeps/sh/backtrace.c: New file.
70555
70556 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70557
70558         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70559         parenthesis.
70560
70561 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70562
70563         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70564         falling back to utime.
70565
70566 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70567
70568         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70569         expectations for float.
70570
70571 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70572
70573         * locale/weight.h (findidx): Add parameter len.
70574         * locale/weightwc.h (findidx): Likewise.
70575         * posix/fnmatch_loop.c (FCT): Adjust caller.
70576         * posix/regcomp.c (build_equiv_class): Likewise.
70577         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70578         * posix/regexec.c (check_node_accept_bytes): Likewise.
70579         * string/strcoll_l.c (STRCOLL): Likewise.
70580         * string/strxfrm_l.c (STRXFRM): Likewise.
70581
70582 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70583
70584         * Makefile.in: Remove CVSOPT handling.
70585         * configure.in: Remove use of AC_REVISION.
70586         * iconvdata/Makefile (distribute): No need to filter out CVS.
70587         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70588         handling.
70589
70590 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70591
70592         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70593         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70594         [USE_AS_STRNCASECMP_L]: Likewise.
70595         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70596         NO_TLS_DIRECT_SEG_REFS.
70597         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70598         Fix argument offsets for non-PIC.
70599         [USE_AS_STRNCASECMP_L]: Likewise.
70600         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70601         NO_TLS_DIRECT_SEG_REFS.
70602
70603 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70604
70605         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70606         O_CLOEXEC.
70607         * locale/loadlocale.c (_nl_load_locale): Likewise.
70608
70609 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70610
70611         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70612         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70613         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70614         (SYSCALL_GETTIME): Set errno on error.
70615
70616         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70617         count references to noai6ai_cached.
70618
70619 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70620
70621         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70622
70623         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70624         FD_CLOEXEC for /proc/self/maps.
70625
70626         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70627         FD_CLOEXEC for /proc/meminfo.
70628
70629         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70630         gai.conf.
70631
70632         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70633         FD_CLOEXEC for given file.
70634
70635         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70636
70637         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70638         FD_CLOEXEC for /etc/hosts.
70639         (_gethtent): Likewise.
70640
70641         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70642
70643         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70644         cancellation and set FD_CLOEXEC for /etc/netgroup.
70645
70646         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70647         reading /etc/publickey.
70648
70649         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70650         allow cancellation when reading /etc/group.
70651
70652         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70653         cancellation.
70654         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70655
70656         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70657         when using data file.
70658
70659         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70660
70661         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70662         (write_nis_obj): Use "c" and "e" in fopen.
70663
70664         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70665
70666         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70667
70668         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70669
70670         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70671
70672         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70673         locale.alias.
70674
70675         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70676
70677         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70678
70679         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70680
70681         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70682         file parsing and set FD_CLOEXEC.
70683
70684 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70685
70686         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70687
70688 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70689
70690         * malloc/arena.c (arena_get2): Don't call reused_arena when
70691         _int_new_arena failed.
70692
70693 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70694
70695         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70696         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70697         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70698         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70699         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70700         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70701         to compile strcasecmp and strncasecmp.
70702         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70703         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70704
70705         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70706
70707 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70708
70709         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70710         locale-defines.sym to gen-as-const-headers.
70711         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70712         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70713         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70714         to compile strcasecmp and strncasecmp.
70715         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70716         strcasecmp_l and strncasecmp_l.
70717         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70718         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70719         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70720         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70721         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70722         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70723         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70724         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70725         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70726         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70727         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70728
70729 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70730
70731         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70732         result of SYSDEP_GETTIME_CPU to retval.
70733         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70734         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70735
70736         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70737         variable.
70738
70739         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70740         mantissa words.
70741         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70742
70743         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70744         from unused variable.
70745
70746         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70747         DWARF definitions.
70748         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70749         for assembling.
70750
70751         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70752         over namespaces.
70753
70754         * sunrpc/rpc_prot.c (rejected): Fix case value.
70755
70756         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70757         unsigned long long int to avoid warnings in shift.
70758
70759         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70760         of use of trans.
70761         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70762         variable tmp.
70763
70764         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70765         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70766         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70767
70768         * nis/nis_table.c (nis_list): Use variable of correct type for
70769         result of __follow_path call.
70770
70771 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70772
70773         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70774         of math functions ceil, trunc, floor, round, and sqrt, when
70775         avaliable on the platform.
70776         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70777         name clash.
70778         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70779         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70780         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70781
70782 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70783
70784         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70785         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70786
70787 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70788
70789         * include/unistd.h: Fix __readlink return type.
70790         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70791
70792 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70793
70794         * stdlib/ucontext.h: Undo last change for makecontext.
70795
70796 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70797
70798         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70799
70800         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70801         * setjmp/setjmp.h: Mark functions as non-leaf.
70802         * setjmp/bits/setjmp2.h: Likewise.
70803         * stdlib/ucontext.h: Likewise.
70804
70805 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70806
70807         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70808         (reused_arena): Don't check arena limit.
70809         (arena_get2): Atomically check arena limit.
70810
70811 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70812
70813         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70814         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70815
70816         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70817         instructions.
70818
70819 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70820
70821         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70822         handler when locking.
70823
70824         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70825         Fix size of allocated buffer.
70826
70827 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70828
70829         [BZ #10103]
70830         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70831         declarations for long double functions.
70832         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70833
70834         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70835
70836 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70837
70838         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70839         installed.
70840
70841         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70842         is disabled.
70843
70844 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70845
70846         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70847
70848 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70849
70850         * include/alloca.h (stackinfo_alloca_round): Define.
70851         (extend_alloca): Use it.
70852         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70853         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70854         here.
70855
70856         * scripts/check-local-headers.sh: Ignore libaudit.h.
70857
70858         * nscd/Makefile (extra-objs): Make recursively expanded.
70859
70860 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70861
70862         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70863         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70864
70865         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70866         * posix/tst-rfc3484-2.c: Likewise.
70867         * posix/tst-rfc3484-3.c: Likewise.
70868
70869         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70870         process_vm_writev.
70871         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70872         process_vm_writev.
70873         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70874         process_vm_writev from libc using GLIBC_2.15 version.
70875
70876         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70877
70878 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70879
70880         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70881         stack usage.
70882
70883 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70884
70885         [BZ #13367]
70886         * nss/getent.c (initgroups_keys): Show error message in case no group
70887         names are given.
70888
70889         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70890         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70891         __bump_nl_timestamp.
70892         * nscd/connections (nscd_init): When host database is served open
70893         netlink socket and request notification about configuration changes.
70894         (main_loop_poll): Track netlink file descriptor and bump timestamp
70895         in case data becomes available.
70896         (main_loop_epoll): Likewise.
70897         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70898         (database_pers_head): Add extra_data fileds.
70899         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70900         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70901         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70902         Adjust caller.
70903         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70904         in6ai data, call __free_in6ai.
70905         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70906         Add -DHAVE_NETLINK.
70907         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70908         interface information.  Reuse previous data if netlink timestamp
70909         is not changed.
70910         (__bump_nl_timestamp): New function.
70911         (__free_in6ai): New function.
70912
70913 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70914
70915         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70916         close_not_cancel_no_status here.
70917         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70918
70919 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70920
70921         [BZ #13276]
70922         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70923         return value.
70924
70925         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70926         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70927         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70928
70929 2011-07-03  Andreas Jaeger  <aj@suse.de>
70930
70931         [BZ #10709]
70932         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70933         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70934         * math/libm-test.inc (sin_test): Add test case.
70935
70936 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70937
70938         [BZ #13337]
70939         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70940         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70941
70942         * elf/chroot_canon.c (chroot_canon): Cleanups.
70943
70944         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70945
70946         [BZ #13335]
70947         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70948         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70949
70950         * string/test-strchr.c: Make usable for strchrnul testing.
70951         * string/test-strchrnul.c: New file.
70952         * string/Makefile (strop-tests): Add strchrnul.
70953
70954         * po/it.po: Update from translation team.
70955         * po/es.po: Likewise.
70956
70957 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70958
70959         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70960         the three constants needed as parameters.  Drop the others.
70961         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70962         __m128i_strloadu_tolower.
70963         Create and initialize variable zero and use it in all the places
70964         where _mm_setzero_si128 was used.
70965
70966         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70967         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70968         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70969         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70970         anymore.
70971         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70972         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70973         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70974         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70975         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70976         __mpranred, __mptan.
70977         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70978         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70979         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70980         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70981         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70982         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70983         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70984         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70985         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70986
70987 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70988
70989         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70990         redefine if SHARED.
70991         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70992
70993         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70994         wide char related routines to wcsmbs subdir.
70995
70996 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70997
70998         [BZ #13344]
70999         * misc/sys/cdefs.h (__THROWNL): Define.
71000         * posix/unistd.h: Use __THREADNL instead of __THREAD
71001         for memory synchronization functions.
71002
71003 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71004
71005         [BZ #13349]
71006         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71007         doesn't exist.
71008         * manual/stdio.texi (Obstack Streams): Node removed.
71009
71010 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71011
71012         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71013         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71014         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71015
71016         * math/math_private.h (math_force_eval): Allow non-addressable
71017         arguments.
71018         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71019
71020 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71021
71022         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71023         file is not needed.
71024
71025         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71026         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71027         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71028         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71029         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71030         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71031         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71032         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71033         Add AVX variants.
71034         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71035         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71036         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71037         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71038         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71039         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71040         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71041         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71042         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71043         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71044         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71045         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71046         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71047         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71048         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71049         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71050         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71051         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71052         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71053
71054         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71055         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71056
71057         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71058         place.  Use VEX encoding when compiling for AVX.
71059
71060 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71061
71062         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71063         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71064
71065         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71066
71067 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71068
71069         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71070         useless if() expression.
71071         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71072         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71073         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71074         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71075         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71076         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71077         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71078         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71079         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71080         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71081         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71082         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71083         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71084         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71085         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71086         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71087         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71088         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71089         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71090
71091         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71092
71093 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71094
71095         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71096         condition.
71097         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71098
71099 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71100
71101         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71102         .text section.  Avoid duplicate constants.
71103         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71104         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71105         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71106         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71107         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71108         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71109         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71110         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71111         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71112         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71113         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71114         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71115         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71116         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71117         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71118         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71119         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71120         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71121         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71122         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71123         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71124         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71125         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71126         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71127         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71128         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71129         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71130         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71131         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71132         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71133         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71134         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71135         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71136         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71137         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71138         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71139         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71140         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71141         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71142         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71143         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71144         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71145         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71146         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71147         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71148
71149 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71150
71151         * sysdeps/x86_64/dla.h: Move to ...
71152         * sysdeps/x86_64/fpu/dla.h: ...here.
71153         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71154         situations.  Use __builtin_fma only for gcc 4.6 and up.
71155
71156         * config.make.in: Add have-mfma4 entry.
71157         * configure.in: Substitute libc_cv_cc_fma4.
71158         * math/Makefile (dbl-only-routines): Add sincostab.
71159         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71160         Use __sincostab not sincos.
71161         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71162         name is a macro.
71163         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71164         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71165         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71166         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71167         using __copysign.
71168         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71169         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71170         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71171         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71172         and __inv.
71173         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71174         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71175         __copysign.
71176         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71177         define aliases when function name is a macro.
71178         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71179         sysdeps/ieee754/dbl-64/sincos.tbl.
71180         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71181         fma4-enabled routines.
71182         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71183         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71184         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71185         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71186         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71187         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71188         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71189         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71190         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71191         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71192         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71193         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71194         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71195         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71196         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71197         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71198         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71199         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71200         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71201         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71202         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71203         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71204         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71205         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71206         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71207         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71208         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71209         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71210         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71211         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71212
71213         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71214         rename.
71215         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71216         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71217         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71218         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71219         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71220         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71221         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71222         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71223
71224 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71225
71226         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71227
71228 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71229
71230         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71231
71232         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71233         prediction.
71234         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71235
71236         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71237         Remove unused variable magic_bits.
71238         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71239
71240         * string/strnlen.c: Define and use STRNLEN macro.
71241         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71242         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71243         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71244         * wcsmbs/wcslen.c: Define and use WCSLEN.
71245         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71246         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71247         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71248         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71249         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71250         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71251         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71252
71253 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71254
71255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71256         strnlen-sse2-no-bsf.
71257         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71258         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71259         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71260         Add strnlen support.
71261         (USE_AS_STRNLEN): New macro.
71262         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71263         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71264         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71265         * sysdeps/x86_64/wcslen.S: New file.
71266
71267 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71268
71269         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71270         XMM-moves are used for copying on small sizes.
71271
71272 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71273
71274         * wcsmbs/Makefile (strop-tests): Add wcschr.
71275         * wcsmbs/test-wcschr.c: New file.
71276         * string/test-strchr.c: Update.
71277         Add wcschr support.
71278         (WIDE): New macro.
71279
71280 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71281
71282         * wcsmbs/Makefile (strop-tests): Add wcslen.
71283         * wcsmbs/test-wcslen.c: New file.
71284         * string/test-strlen.c: Update.
71285         Add wcslen support.
71286         (WIDE): New macro.
71287
71288 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71289
71290         * po/it.po: Update from translation team.
71291
71292 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71293
71294         * sysdeps/x86_64/wcscmp.S: Update.
71295         Fix wrong comparison semantics.
71296         wcscmp shall use signed comparison not unsigned.
71297         Don't use substraction to avoid overflow bug.
71298         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71299         * wcsmbc/wcscmp.c: Likewise.
71300         * string/test-strcmp.c: Likewise.
71301         Add new tests to check cases with negative values.
71302
71303 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71304
71305         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71306         * sysdeps/x86_64/dla.h: ...here.  New file.
71307         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71308         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71309         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71310         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71311         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71312         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71313         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71314         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71315         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71316
71317 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71318
71319         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71320         __ynl_finite aliases.
71321
71322 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71323
71324         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71325
71326         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71327         define DLA_FMA.
71328         [DLA_FMA] (EMULV): Use DLA_FMA.
71329         [DLA_FMA] (MUL12): Use EMULV.
71330         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71331         that are not needed.
71332         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71333         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71334         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71335         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71336         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71337         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71338         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71339
71340 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71341
71342         * math/s_nan.c: Undef __nan.
71343         * math/s_nanf.c: Undef __nanf.
71344         * math/s_nanl.c: Undef __nanl.
71345         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71346         "math_private.h".
71347
71348 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71349
71350         * math/s_catan.c: Add branch predictions.
71351         * math/s_catanf.c: Likewise.
71352         * math/s_catanh.c: Likewise.
71353         * math/s_catanhf.c: Likewise.
71354         * math/s_catanhl.c: Likewise.
71355         * math/s_catanl.c: Likewise.
71356         * math/s_cexp.c: Likewise.
71357         * math/s_cexpf.c: Likewise.
71358         * math/s_cexpl.c: Likewise.
71359         * math/s_clog.c: Likewise.
71360         * math/s_clog10.c: Likewise.
71361         * math/s_clog10f.c: Likewise.
71362         * math/s_clog10l.c: Likewise.
71363         * math/s_clogf.c: Likewise.
71364         * math/s_clogl.c: Likewise.
71365         * math/s_csqrt.c: Likewise.
71366         * math/s_csqrtf.c: Likewise.
71367         * math/s_csqrtl.c: Likewise.
71368         * math/s_ctanf.c: Likewise.
71369         * math/s_ctanh.c: Likewise.
71370         * math/s_ctanhf.c: Likewise.
71371         * math/s_ctanhl.c: Likewise.
71372         * math/s_ctanl.c: Likewise.
71373
71374         * math/math_private.h: Define __nan, __nanf, __nanl.
71375         * math/s_cacosh.c: Include <math_private.h>.
71376         * math/s_cacoshl.c: Likewise.
71377         * math/s_casinh.c: Likewise.
71378         * math/s_casinhf.c: Likewise.
71379         * math/s_casinhl.c: Likewise.
71380         * math/s_ccos.c: Rely entire on ccosh.
71381         * math/s_ccosf.c: Rely entire on ccoshf.
71382         * math/s_ccosl.c: Rely entirely on ccoshl.
71383         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71384         Remove tests for FE_INVALID.
71385         * math/s_ccoshf.c: Likewise.
71386         * math/s_ccoshl.c: Likewise.
71387         * math/s_csin.c: Likewise.
71388         * math/s_csinf.c: Likewise.
71389         * math/s_csinh.c Likewise.
71390         * math/s_csinhf.c: Likewise.
71391         * math/s_csinhl.c: Likewise.
71392         * math/s_csinl.c: Likewise.
71393         * math/s_ctan.c: Likewise.
71394         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71395         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71396         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71397
71398 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71399
71400         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71401         compilation problems.
71402
71403         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71404         __builtin_expect.
71405
71406 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71407
71408         * sysdeps/i386/configure.in: Test for -mfma4 option.
71409         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71410         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71411         COMMON_CPUID_INDEX_80000001.
71412         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71413         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71414         use it if FMA3 is not supported.
71415         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71416
71417         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71418         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71419
71420 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71421
71422         [BZ #12892]
71423         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71424         it would create a cycle with a link time dependency.
71425
71426 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71427
71428         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71429         instruction.
71430         * string/Makefile (strop-tests): Add rawmemchr.
71431         * string/test-rawmemchr.c: New file.
71432
71433         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71434         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71435         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71436         when compiling str{,n}casecmp and when AVX is available.  Hook up
71437         new optimized code in initializers.
71438
71439 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71440
71441         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71442         __feraiseexcept instead of feraiseexcept.
71443
71444 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71445
71446         * math/math_private.h: Define defaults for libc_fetestexcept and
71447         libc_feupdateenv.
71448         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71449         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71450         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71451         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71452         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71453         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71454         libc_fetestexcept and libc_feupdateenv.
71455
71456         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71457         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71458         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71459         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71460         libc_feholdexcept_setround.
71461
71462         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71463         Add s_nearbyint-c and s_nearbyintf-c.
71464         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71465         nearbyintf inlines.
71466         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71467         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71468         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71469         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71470
71471         * math/math_private.h: Define defaults for libc_fegetround,
71472         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71473         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71474         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71475         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71476         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71477         standard functions.
71478         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71479         Remove comments and hacks for old compiler versions.
71480         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71481         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71482         libc_feholdexceptl.
71483
71484 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71485
71486         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71487         (__feraiseexcept_renamed): Add __NTH.
71488         (feraiseexcept): Add __NTH.  Rename local variables to fix
71489         namespace violations.
71490
71491 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71492
71493         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71494
71495         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71496
71497         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71498         recently added interfaces.
71499         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71500
71501         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71502         about macro parameter expansion.
71503
71504         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71505         __NO_MATH_INLINES is defined.  Cleanups.
71506
71507         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71508         and __floorf is target has SSE4.1.
71509         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71510         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71511         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71512         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71513
71514         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71515         name.
71516         (floorf): Likewise.
71517
71518         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71519
71520 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71521
71522         * misc/sys/cdefs.h: Fix last change.
71523
71524         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71525         database lookup.
71526
71527 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71528
71529         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71530
71531         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71532         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71533         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71534         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71535         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71536         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71537         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71538         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71539         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71540         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71541         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71542         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71543         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71544         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71545         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71546         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71547         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71548         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71549         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71550         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71551         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71552         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71553
71554         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71555         ceil, ceilf, floor, floorf.
71556
71557         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71558         Perform IRELATIVE relocations last.
71559
71560         * elf/do-rel.h: Add another parameter nrelative, replacing the
71561         local variable with the same name.  Change name of the function
71562         to end in Rel or Rela (uppercase).
71563         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71564         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71565         elf_dynamic_do_##reloc function.
71566
71567 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71568
71569         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71570         is sufficient, at least on modern CPUs.
71571
71572         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71573
71574         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71575         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71576
71577         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71578         __expl_finite.
71579         * math/bits/math-finite.h: Add entries for exp.
71580         * math/e_expl.c: Add __*_finite alias.
71581         * sysdeps/i386/fpu/e_exp.S: Likewise.
71582         * sysdeps/i386/fpu/e_expf.S: Likewise.
71583         * sysdeps/i386/fpu/e_expl.c: Likewise.
71584         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71585         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71586         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71587         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71588         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71589         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71590         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71591
71592         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71593         is sufficient, at least on modern CPUs.
71594
71595         * ctype/ctype-info.c (__ctype_init): Define.
71596         * include/ctype.h (__ctype_init): Declare.
71597         (__ctype_b_loc): The variable is always initialized.
71598         (__ctype_toupper_loc): Likewise.
71599         (__ctype_tolower_loc): Likewise.
71600         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71601         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71602
71603 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71604
71605         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71606
71607         * configure.in: Also look in $cxxmachine/include for C++ system
71608         headers.
71609
71610 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71611
71612         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71613         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71614         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71615         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71616         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71617         (USE_AS_WMEMCMP): New macro.
71618         Fixing indents.
71619         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71620         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71621         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71622         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71623         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71624         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71625         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71626         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71627         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71628         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71629         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71630         (USE_AS_WMEMCMP): New macro.
71631         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71632         * sysdeps/string/test-memcmp.c: Update.
71633         Fix simple_wmemcmp.
71634         Add new tests.
71635         * wcsmbs/wmemcmp.c: Update.
71636         (WMEMCMP): New macro.
71637         Fix overflow bug.
71638
71639 2011-10-12  Andreas Jaeger  <aj@suse.de>
71640
71641         [BZ #13268]
71642         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71643
71644 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71645
71646         * libio/iofwide.c (do_length): Avoid warning.
71647
71648         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71649
71650 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71651
71652         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71653
71654         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71655         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71656         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71657         * sysdeps/i386/i686/fpu/e_log.S: New file.
71658         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71659         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71660
71661         * ctype/ctype.h: Add support for inlined isXXX functions when
71662         compiling C++ code.
71663
71664 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71665
71666         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71667
71668         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71669
71670 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71671
71672         [BZ #13291]
71673         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71674
71675 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71676
71677         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71678         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71679         feraiseexcept.
71680
71681         * sysdeps/x86_64/memrchr.S: Check for zero size.
71682
71683         * string/stratcliff.c: Add memrchr tests.
71684
71685 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71686
71687         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71688         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71689         rawmemchr-sse2 rawmemchr-sse2-bsf.
71690         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71691         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71692         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71693         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71694         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71695         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71696         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71697         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71698         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71699         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71700         * string/memrchr.c (MEMRCHR): New macro.
71701
71702 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71703
71704         Add integration with gcc's -ffinite-math-only and optimize wrapper
71705         functions in libm.
71706         * Versions.def: Define GLIBC_2.15 version for libm.
71707         * math/Makefile (headers): Add bits/math-finite.h.
71708         * math/bits/math-finite.h: New file.
71709         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71710         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71711         * math/e_acoshl.c: Add __*_finite alias.
71712         * math/e_acosl.c: Likewise.
71713         * math/e_asinl.c: Likewise.
71714         * math/e_atan2l.c: Likewise.
71715         * math/e_atanhl.c: Likewise.
71716         * math/e_coshl.c: Likewise.
71717         * math/e_exp10.c: Likewise.
71718         * math/e_exp10f.c: Likewise.
71719         * math/e_exp10l.c: Likewise.
71720         * math/e_exp2l.c: Likewise.
71721         * math/e_fmodl.c: Likewise.
71722         * math/e_gammal_r.c: Likewise.
71723         * math/e_hypotl.c: Likewise.
71724         * math/e_j0l.c: Likewise.
71725         * math/e_j1l.c: Likewise.
71726         * math/e_jnl.c: Likewise.
71727         * math/e_lgammal_r.c: Likewise.
71728         * math/e_log10l.c: Likewise.
71729         * math/e_log2l.c: Likewise.
71730         * math/e_logl.c: Likewise.
71731         * math/e_powl.c: Likewise.
71732         * math/e_sinhl.c: Likewise.
71733         * math/e_sqrtl.c: Likewise.
71734         * math/e_scalb.c: Completely rewritten and optimized.
71735         * math/e_scalbf.c: Likewise.
71736         * math/e_scalbl.c: Likewise.
71737         * math/w_acos.c: Likewise.
71738         * math/w_acosf.c: Likewise.
71739         * math/w_acosl.c: Likewise.
71740         * math/w_acosh.c: Likewise.
71741         * math/w_acoshf.c: Likewise.
71742         * math/w_acoshl.c: Likewise.
71743         * math/w_asin.c: Likewise.
71744         * math/w_asinf.c: Likewise.
71745         * math/w_asinl.c: Likewise.
71746         * math/w_atan2.c: Likewise.
71747         * math/w_atan2f.c: Likewise.
71748         * math/w_atan2l.c: Likewise.
71749         * math/w_atanh.c: Likewise.
71750         * math/w_atanhf.c: Likewise.
71751         * math/w_atanhl.c: Likewise.
71752         * math/w_exp10.c: Likewise.
71753         * math/w_exp10f.c: Likewise.
71754         * math/w_exp10l.c: Likewise.
71755         * math/w_fmod.c: Likewise.
71756         * math/w_fmodf.c: Likewise.
71757         * math/w_fmodl.c: Likewise.
71758         * math/w_j0.c: Likewise.
71759         * math/w_j0f.c: Likewise.
71760         * math/w_j0l.c: Likewise.
71761         * math/w_j1.c: Likewise.
71762         * math/w_j1f.c: Likewise.
71763         * math/w_j1l.c: Likewise.
71764         * math/w_jn.c: Likewise.
71765         * math/w_jnf.c: Likewise.
71766         * math/w_log.c: Likewise.
71767         * math/w_logf.c: Likewise.
71768         * math/w_logl.c: Likewise.
71769         * math/w_log10.c: Likewise.
71770         * math/w_log10f.c: Likewise.
71771         * math/w_log10l.c: Likewise.
71772         * math/w_log2.c: Likewise.
71773         * math/w_log2f.c: Likewise.
71774         * math/w_log2l.c: Likewise.
71775         * math/w_pow.c: Likewise.
71776         * math/w_powf.c: Likewise.
71777         * math/w_powl.c: Likewise.
71778         * math/w_remainder.c: Likewise.
71779         * math/w_remainderf.c: Likewise.
71780         * math/w_remainderl.c: Likewise.
71781         * math/w_scalb.c: Likewise.
71782         * math/w_scalbf.c: Likewise.
71783         * math/w_scalbl.c: Likewise.
71784         * math/w_sqrt.c: Likewise.
71785         * math/w_sqrtf.c: Likewise.
71786         * math/w_sqrtl.c: Likewise.
71787         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71788         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71789         used.
71790         * math/math_private.h: Declare __kernel_standard_f.
71791         * math/w_cosh.c: Remove cruft and optimize a bit.
71792         * math/w_coshf.c: Likewise.
71793         * math/w_coshl.c: Likewise.
71794         * math/w_exp2.c: Likewise.
71795         * math/w_exp2f.c: Likewise.
71796         * math/w_exp2l.c: Likewise.
71797         * math/w_hypot.c: Likewise.
71798         * math/w_hypotf.c: Likewise.
71799         * math/w_hypotl.c: Likewise.
71800         * math/w_lgamma.c: Likewise.
71801         * math/w_lgamma_r.c: Likewise.
71802         * math/w_lgammaf.c: Likewise.
71803         * math/w_lgammaf_r.c: Likewise.
71804         * math/w_lgammal.c: Likewise.
71805         * math/w_lgammal_r.c: Likewise.
71806         * math/w_sinh.c: Likewise.
71807         * math/w_sinhf.c: Likewise.
71808         * math/w_sinhl.c: Likewise.
71809         * math/w_tgamma.c: Likewise.
71810         * math/w_tgammaf.c: Likewise.
71811         * math/w_tgammal.c: Likewise.
71812         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71813         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71814         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71815         Minor optimizations.  Pretty printing.  Remove cruft.
71816         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71817         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71818         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71819         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71820         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71821         * sysdeps/i386/fpu/e_asin.S: Likewise.
71822         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71823         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71824         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71825         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71826         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71827         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71828         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71829         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71830         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71831         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71832         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71833         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71834         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71835         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71836         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71837         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71838         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71839         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71840         * sysdeps/i386/fpu/e_log.S: Likewise.
71841         * sysdeps/i386/fpu/e_log10.S: Likewise.
71842         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71843         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71844         * sysdeps/i386/fpu/e_log2.S: Likewise.
71845         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71846         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71847         * sysdeps/i386/fpu/e_logf.S: Likewise.
71848         * sysdeps/i386/fpu/e_logl.S: Likewise.
71849         * sysdeps/i386/fpu/e_pow.S: Likewise.
71850         * sysdeps/i386/fpu/e_powf.S: Likewise.
71851         * sysdeps/i386/fpu/e_powl.S: Likewise.
71852         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71853         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71854         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71855         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71856         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71857         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71858         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71859         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71860         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71861         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71862         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71863         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71864         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71865         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71866         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71867         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71868         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71869         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71870         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71871         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71872         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71873         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71874         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71875         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71876         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71877         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71878         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71879         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71880         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71881         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71882         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71883         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71884         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71885         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71886         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71887         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71888         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71889         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71890         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71891         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71892         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71893         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71894         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71895         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71896         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71897         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71898         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71899         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71900         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71901         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71902         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71903         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71904         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71905         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71906         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71907         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71908         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71909         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71910         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71911         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71912         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71913         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71914         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71915         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71916         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71917         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71918         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71919         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71920         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71921         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71922         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71923         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71924         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71925         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71926         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71927         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71928         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71929         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71930         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71931         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71932         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71933         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71934         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71935         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71936         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71937         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71938         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71939         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71940         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71941         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71942         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71943         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71944         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71945         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71946         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71947         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71948         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71949         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71950         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71951         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71952         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71953         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71954         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71955         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71956         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71957         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71958         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71959         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71960         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71961         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71962         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71963         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71964         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71965         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71966         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71967         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71968         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71969         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71970         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71971         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71972         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71973         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71974         (__isnanf): Likewise.
71975         (__isinf_ns): Likewise.
71976         (__isinf_nsf): Likewise.
71977         (__finite): Likewise.
71978         (__finitef): Likewise.
71979         (__ieee754_sqrt): Define as macro.
71980         (__ieee754_sqrtf): Define as macro.
71981         (__ieee754_sqrtl): Define as macro.
71982         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71983         inlined copy.
71984         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71985         __FINITE_MATH_ONLY__ consistent.
71986         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71987
71988 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71989
71990         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71991         of rawmemchr.
71992
71993         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71994
71995 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71996
71997         * po/ja.po: Update from translation team.
71998
71999 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72000
72001         * locale/programs/locarchive.c (prepare_address_space): New function.
72002         (create_archive, enlarge_archive, open_archive): Use it.
72003
72004         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72005         inside [SHARED], where it is used.
72006
72007         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72008
72009         * nss/getent.c (netgroup_keys): Remove unused variable.
72010         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72011
72012 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72013
72014         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72015         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72016         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72017         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72018         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72019         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72020         * math/Makefile (libm-calls): Add s_isinf_ns.
72021         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72022         * math/multc3.c: Likewise.
72023         * math/s_casin.c: Likewise.
72024         * math/s_casinf.c: Likewise.
72025         * math/s_casinl.c: Likewise.
72026         * math/s_ccos.c: Likewise.
72027         * math/s_ccosf.c: Likewise.
72028         * math/s_ccosl.c: Likewise.
72029         * math/s_ctan.c: Likewise.
72030         * math/s_ctanf.c: Likewise.
72031         * math/s_ctanh.c: Likewise.
72032         * math/s_ctanhf.c: Likewise.
72033         * math/s_ctanhl.c: Likewise.
72034         * math/s_ctanl.c: Likewise.
72035         * math/w_fmod.c: Likewise.
72036         * math/w_fmodf.c: Likewise.
72037         * math/w_fmodl.c: Likewise.
72038         * math/w_remainder.c: Likewise.
72039         * math/w_remainderf.c: Likewise.
72040         * math/w_remainderl.c: Likewise.
72041         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72042         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72043         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72044         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72045         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72046         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72047         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72048         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72049
72050         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72051         of the number.
72052         * stdio-common/printf_fphex.c: Likewise.
72053         * stdio-common/printf_size.c: Likewise.
72054
72055         * math/e_exp10.c: Include math_private.h using <...> not "...".
72056         * math/e_exp10f.c: Likewise.
72057         * math/e_exp10l.c: Likewise.
72058         * math/e_exp2l.c: Likewise.
72059         * math/e_j0l.c: Likewise.
72060         * math/e_j1l.c: Likewise.
72061         * math/e_jnl.c: Likewise.
72062         * math/e_lgammal_r.c: Likewise.
72063         * math/e_rem_pio2l.c: Likewise.
72064         * math/e_scalb.c: Likewise.
72065         * math/e_scalbf.c: Likewise.
72066         * math/e_scalbl.c: Likewise.
72067         * math/k_cosl.c: Likewise.
72068         * math/k_sinl.c: Likewise.
72069         * math/k_tanl.c: Likewise.
72070         * math/s_cacoshf.c: Likewise.
72071         * math/s_catan.c: Likewise.
72072         * math/s_catanf.c: Likewise.
72073         * math/s_catanh.c: Likewise.
72074         * math/s_catanhf.c: Likewise.
72075         * math/s_catanhl.c: Likewise.
72076         * math/s_catanl.c: Likewise.
72077         * math/s_ccosh.c: Likewise.
72078         * math/s_ccoshf.c: Likewise.
72079         * math/s_ccoshl.c: Likewise.
72080         * math/s_cexp.c: Likewise.
72081         * math/s_cexpf.c: Likewise.
72082         * math/s_cexpl.c: Likewise.
72083         * math/s_clog.c: Likewise.
72084         * math/s_clog10.c: Likewise.
72085         * math/s_clog10f.c: Likewise.
72086         * math/s_clog10l.c: Likewise.
72087         * math/s_clogf.c: Likewise.
72088         * math/s_clogl.c: Likewise.
72089         * math/s_csin.c: Likewise.
72090         * math/s_csinf.c: Likewise.
72091         * math/s_csinh.c: Likewise.
72092         * math/s_csinhf.c: Likewise.
72093         * math/s_csinhl.c: Likewise.
72094         * math/s_csinl.c: Likewise.
72095         * math/s_csqrt.c: Likewise.
72096         * math/s_csqrtf.c: Likewise.
72097         * math/s_csqrtl.c: Likewise.
72098         * math/s_ctan.c: Likewise.
72099         * math/s_ctanf.c: Likewise.
72100         * math/s_ctanh.c: Likewise.
72101         * math/s_ctanhf.c: Likewise.
72102         * math/s_ctanhl.c: Likewise.
72103         * math/s_ctanl.c: Likewise.
72104         * math/s_ldexp.c: Likewise.
72105         * math/s_ldexpf.c: Likewise.
72106         * math/s_ldexpl.c: Likewise.
72107         * math/s_significand.c: Likewise.
72108         * math/s_significandf.c: Likewise.
72109         * math/s_significandl.c: Likewise.
72110         * math/w_acos.c: Likewise.
72111         * math/w_acosf.c: Likewise.
72112         * math/w_acosh.c: Likewise.
72113         * math/w_acoshf.c: Likewise.
72114         * math/w_acoshl.c: Likewise.
72115         * math/w_acosl.c: Likewise.
72116         * math/w_asin.c: Likewise.
72117         * math/w_asinf.c: Likewise.
72118         * math/w_asinl.c: Likewise.
72119         * math/w_atan2.c: Likewise.
72120         * math/w_atan2f.c: Likewise.
72121         * math/w_atan2l.c: Likewise.
72122         * math/w_atanh.c: Likewise.
72123         * math/w_atanhf.c: Likewise.
72124         * math/w_atanhl.c: Likewise.
72125         * math/w_cosh.c: Likewise.
72126         * math/w_coshf.c: Likewise.
72127         * math/w_coshl.c: Likewise.
72128         * math/w_dremf.c: Likewise.
72129         * math/w_exp10.c: Likewise.
72130         * math/w_exp10f.c: Likewise.
72131         * math/w_exp10l.c: Likewise.
72132         * math/w_exp2.c: Likewise.
72133         * math/w_exp2f.c: Likewise.
72134         * math/w_fmod.c: Likewise.
72135         * math/w_fmodf.c: Likewise.
72136         * math/w_fmodl.c: Likewise.
72137         * math/w_hypot.c: Likewise.
72138         * math/w_hypotf.c: Likewise.
72139         * math/w_hypotl.c: Likewise.
72140         * math/w_j0.c: Likewise.
72141         * math/w_j0f.c: Likewise.
72142         * math/w_j0l.c: Likewise.
72143         * math/w_j1.c: Likewise.
72144         * math/w_j1f.c: Likewise.
72145         * math/w_j1l.c: Likewise.
72146         * math/w_jn.c: Likewise.
72147         * math/w_jnf.c: Likewise.
72148         * math/w_jnl.c: Likewise.
72149         * math/w_lgamma.c: Likewise.
72150         * math/w_lgamma_r.c: Likewise.
72151         * math/w_lgammaf.c: Likewise.
72152         * math/w_lgammaf_r.c: Likewise.
72153         * math/w_lgammal.c: Likewise.
72154         * math/w_lgammal_r.c: Likewise.
72155         * math/w_log.c: Likewise.
72156         * math/w_log10.c: Likewise.
72157         * math/w_log10f.c: Likewise.
72158         * math/w_log10l.c: Likewise.
72159         * math/w_log2.c: Likewise.
72160         * math/w_log2f.c: Likewise.
72161         * math/w_log2l.c: Likewise.
72162         * math/w_logf.c: Likewise.
72163         * math/w_logl.c: Likewise.
72164         * math/w_pow.c: Likewise.
72165         * math/w_powf.c: Likewise.
72166         * math/w_powl.c: Likewise.
72167         * math/w_remainder.c: Likewise.
72168         * math/w_remainderf.c: Likewise.
72169         * math/w_remainderl.c: Likewise.
72170         * math/w_scalb.c: Likewise.
72171         * math/w_scalbf.c: Likewise.
72172         * math/w_scalbl.c: Likewise.
72173         * math/w_sinh.c: Likewise.
72174         * math/w_sinhf.c: Likewise.
72175         * math/w_sinhl.c: Likewise.
72176         * math/w_sqrt.c: Likewise.
72177         * math/w_sqrtf.c: Likewise.
72178         * math/w_sqrtl.c: Likewise.
72179         * math/w_tgamma.c: Likewise.
72180         * math/w_tgammaf.c: Likewise.
72181         * math/w_tgammal.c: Likewise.
72182
72183         * po/ja.po: Update from translation team.
72184
72185 2011-09-29  Andreas Jaeger  <aj@suse.de>
72186
72187         [BZ #13179]
72188         * sunrpc/netname.c (netname2host): Fix logic.
72189
72190         [BZ #6779]
72191         [BZ #6783]
72192         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72193         correctly.
72194         * math/w_remainder.c (__remainder): Likewise.
72195         * math/w_remainderf.c (__remainderf): Likewise.
72196         * math/libm-test.inc (remainder_test): Add test cases.
72197
72198 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72199
72200         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72201         sdiv_qrnnd.
72202
72203 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72204
72205         * string/test-memcmp.c: Avoid unncessary #defines.
72206         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72207
72208 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72209
72210         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72211         Use new sse2 version for core i3 - i7 as it's faster
72212         than sse42 version.
72213         (bit_Prefer_PMINUB_for_stringop): New.
72214         * sysdeps/x86_64/rawmemchr.S: Update.
72215         Replace with faster SSE2 version.
72216         * sysdeps/x86_64/memrchr.S: New file.
72217         * sysdeps/x86_64/memchr.S: Update.
72218         Replace with faster SSE2 version.
72219
72220 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72221
72222         * elf/dl-load.c (lose): Add cast to avoid warning.
72223
72224 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72225
72226         * po/ca.po: Update from translation team.
72227
72228         * inet/getnetgrent_r.c: Hook up nscd.
72229         * nscd/Makefile (routines): Add nscd_netgroup.
72230         (nscd-modules): Add netgroupcache.
72231         (CFLAGS-netgroupcache.c): Define.
72232         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72233         (cache_search): Add const to second parameter.
72234         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72235         INNETGR.
72236         (dbs): Add netgrdb entry.
72237         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72238         (verify_persistent_db): Handle netgrdb.
72239         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72240         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72241         GETFDNETGR.
72242         (netgroup_response_header): Define.
72243         (innetgroup_response_header): Define.
72244         (datahead): Add netgroup_response_header and innetgroup_response_header
72245         elements.
72246         * nscd/nscd.conf: Add entries for netgroup cache.
72247         * nscd/nscd.h (dbtype): Add netgrdb.
72248         (_PATH_NSCD_NETGROUP_DB): Define.
72249         (netgroup_iov_disabled): Declare.
72250         (xmalloc, xcalloc, xrealloc): Move declarations here.
72251         (cache_search): Adjust prototype.
72252         Add netgroup-related prototypes.
72253         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72254         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72255         (__nscd_innetgr): Declare.
72256         * nscd/selinux.c (perms): Use access_vector_t as element type and
72257         add netgroup-related initializers.
72258         * nscd/netgroupcache.c: New file.
72259         * nscd/nscd_netgroup.c: New file.
72260         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72261         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72262         For four parameters use innetgr.
72263         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72264         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72265         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72266         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72267
72268         * nscd/connections.c (register_traced_file): Don't register file
72269         for disabled databases.
72270
72271 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72272
72273         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72274
72275         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72276         from tree and freeing node.
72277
72278 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72279
72280         * nss/nsswitch.c (__nss_database_lookup): Handle
72281         nss_parse_service_list out of memory case.
72282
72283 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72284
72285         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72286         out of memory case.
72287
72288 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72289
72290         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72291         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72292         pass it down.
72293         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72294         elf_machine_rela, elf_machine_lazy_rel.
72295         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72296         (ELF_DYNAMIC_DO_REL): Likewise.
72297         (ELF_DYNAMIC_DO_RELA): Likewise.
72298         (ELF_DYNAMIC_RELOCATE): Likewise.
72299         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72300         to ELF_DYNAMIC_DO_REL.
72301         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72302         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72303         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72304         elf_machine_rela.
72305         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72306         skip_ifunc, don't call ifunc function if non-zero.
72307         (elf_machine_rela): Likewise.
72308         (elf_machine_lazy_rel): Likewise.
72309         (elf_machine_lazy_rela): Likewise.
72310         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72311         (elf_machine_lazy_rel): Likewise.
72312         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72313         Likewise.
72314         (elf_machine_lazy_rel): Likewise.
72315         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72316         Likewise.
72317         (elf_machine_lazy_rel): Likewise.
72318         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72319         (elf_machine_lazy_rel): Likewise.
72320         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72321         (elf_machine_lazy_rel): Likewise.
72322         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72323         (elf_machine_lazy_rel): Likewise.
72324         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72325         (elf_machine_lazy_rel): Likewise.
72326         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72327         (elf_machine_lazy_rel): Likewise.
72328         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72329         (elf_machine_lazy_rel): Likewise.
72330
72331 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72332
72333         * nss/nss_files/files-init.c (_nss_files_init): Use static
72334         initialization for all the *_traced_file variables.
72335
72336 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72337
72338         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72339
72340 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72341
72342         [BZ #13226]
72343         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72344
72345 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72346
72347         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72348         Reread the line before reparsing it.
72349
72350 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72351
72352         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72353
72354 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72355             Maxim Kuvyrkov  <maxim@codesourcery.com>
72356             Joseph Myers  <joseph@codesourcery.com>
72357
72358         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72359         if needed for __stack_chk_guard.
72360
72361 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72362
72363         * sysdeps/posix/spawni.c (script_execute): Always define it.
72364         It will be optimized away if unused.
72365         (maybe_script_execute): New function.
72366         (__spawni): Call it.
72367
72368         * Makerules: Don't include tls.make.
72369         (config-tls): Always set to thread.
72370         * tls.make.c: File removed.
72371
72372 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72373
72374         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72375         * config.make.in (CPPFLAGS-config): New substituted variable.
72376
72377 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72378
72379         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72380
72381         [BZ #13192]
72382         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72383         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72384
72385 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72386
72387         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72388         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72389         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72390         (CALL_FAIL): Likewise.
72391         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72392         (CALL_FAIL): Macro removed.
72393         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72394
72395 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72396
72397         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72398         for __FINITE_MATH_ONLY__ == 1.
72399
72400 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72401
72402         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72403         __ieee754_sqrt instead of sqrt.
72404         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72405         __ieee754_sqrtf instead of sqrtf.
72406         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72407         __floorf instead of floorf.
72408         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72409         __floorf, __truncf instead of floorf, truncf.
72410
72411 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72412
72413         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72414
72415         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72416         __extern_always_inline.
72417         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72418         32-bit.
72419
72420 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72421
72422         * elf/rtld.c (dl_main): Also relocate in dependency order when
72423         doing symbol dependency testing.
72424
72425 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72426
72427         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72428         Always define `refsym'.
72429
72430 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72431
72432         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72433         (__FD_ELT): Renamed from __FDELT.
72434         * misc/bits/select2.h (__FD_ELT): Likewise.
72435         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72436         __FD_MASK instead of __FDELT, __FDMASK.
72437         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72438         Likewise.
72439         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72440         Likewise.
72441
72442         * elf/Makefile (gen-ldd): Fix pattern.
72443
72444         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72445         (init_tls): Likewise.
72446
72447 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72448
72449         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72450
72451 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72452
72453         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72454         `struct cmsghdr *' instead of `void *'.
72455         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72456         Likewise.
72457
72458 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72459
72460         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72461         if non-absolute.
72462         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72463         ldd_rewrite_script.
72464
72465 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72466
72467         * configure.in: Remove --with-tls option.
72468         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72469         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72470         out in case it is missing.
72471         * sysdeps/ia64/elf/configure.in: Likewise.
72472         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72473         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72474         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72475         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72476         * sysdeps/sh/elf/configure.in: Likewise.
72477         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72478         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72479         * sysdeps/x86_64/elf/configure.in: Likewise.
72480         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72481         * sysdeps/mach/hurd/tls.h: Likewise.
72482
72483         [BZ #13067]
72484         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72485
72486         [BZ #13090]
72487         * configure.in: Fix use of AC_INIT.
72488
72489         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72490
72491 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72492
72493         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72494         __set_errno.
72495         * malloc/hooks.c: Likewise.
72496
72497         [BZ #11929]
72498         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72499         variables statically.
72500         (narenas): Initialize.
72501         (list_lock): Initialize.
72502         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72503         initializtion of main_arena and list_lock.  Small cleanups.
72504         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72505         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72506         Add initializers to main_arena and mp_.
72507         (malloc_state): Remove pagesize member.  Change all users to use
72508         GLRO(dl_pagesize).
72509
72510         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72511         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72512         is always initialized.
72513
72514         * malloc/malloc.c: Removed unused configurations and dead code.
72515         * malloc/arena.c: Likewise.
72516         * malloc/hooks.c: Likewise.
72517         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72518
72519         * include/tls.h: Removed.  USE___THREAD must always be defined.
72520         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72521         * elf/dl-libc.c: Likewise.
72522         * elf/dl-tsd.c: Likewise.
72523         * include/errno.h: Likewise.
72524         * include/netdb.h: Likewise.
72525         * include/resolv.h: Likewise.
72526         * inet/herrno-loc.c: Likewise.
72527         * inet/herrno.c: Likewise.
72528         * malloc/arena.c: Likewise.
72529         * malloc/hooks.c: Likewise.
72530         * malloc/malloc.c: Likewise.
72531         * resolv/res-state.c: Likewise.
72532         * resolv/res_libc.c: Likewise.
72533         * sysdeps/i386/dl-machine.h: Likewise.
72534         * sysdeps/ia64/dl-machine.h: Likewise.
72535         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72536         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72537         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72538         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72539         * sysdeps/sh/dl-machine.h: Likewise.
72540         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72541         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72542         * sysdeps/unix/i386/sysdep.S: Likewise.
72543         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72544         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72545         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72546         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72547         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72548         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72549         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72550         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72551         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72552         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72553         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72554         * sysdeps/x86_64/dl-machine.h: Likewise.
72555         * tls.make.c: Likewise.
72556
72557         * configure.in: Remove --with-__thread option.  Make tests for
72558         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72559         tls_model attribute fail if no support is available.  Remove
72560         USE_IN_LIBIO.
72561         * Makeconfig: Adjust for dropped configure option.  All features are
72562         now mandatory.
72563         * Makerules: Likewise.
72564         * Versions.def: Likewise.
72565         * argp/argp-fmtstream.c: Likewise.
72566         * argp/argp-fmtstream.h: Likewise.
72567         * argp/argp-help.c: Likewise.
72568         * assert/assert.c: Likewise.
72569         * config.h.in: Likewise.
72570         * config.make.in: Likewise.
72571         * configure: Likewise.
72572         * configure.in: Likewise.
72573         * csu/Versions: Likewise.
72574         * csu/init.c: Likewise.
72575         * elf/tst-audit2.c: Likewise.
72576         * elf/tst-tls10.c: Likewise.
72577         * elf/tst-tls10.h: Likewise.
72578         * elf/tst-tls11.c: Likewise.
72579         * elf/tst-tls12.c: Likewise.
72580         * elf/tst-tls14.c: Likewise.
72581         * elf/tst-tlsmod11.c: Likewise.
72582         * elf/tst-tlsmod12.c: Likewise.
72583         * elf/tst-tlsmod13.c: Likewise.
72584         * elf/tst-tlsmod13a.c: Likewise.
72585         * elf/tst-tlsmod14a.c: Likewise.
72586         * elf/tst-tlsmod15b.c: Likewise.
72587         * elf/tst-tlsmod16a.c: Likewise.
72588         * elf/tst-tlsmod16b.c: Likewise.
72589         * elf/tst-tlsmod7.c: Likewise.
72590         * elf/tst-tlsmod8.c: Likewise.
72591         * elf/tst-tlsmod9.c: Likewise.
72592         * gmon/gmon.c: Likewise.
72593         * grp/fgetgrent_r.c: Likewise.
72594         * grp/putgrent.c: Likewise.
72595         * hurd/fopenport.c: Likewise.
72596         * include/libc-symbols.h: Likewise.
72597         * include/tls.h: Likewise.
72598         * intl/gettextP.h: Likewise.
72599         * intl/loadinfo.h: Likewise.
72600         * locale/global-locale.c: Likewise.
72601         * locale/localeinfo.h: Likewise.
72602         * mach/devstream.c: Likewise.
72603         * malloc/arena.c: Likewise.
72604         * malloc/set-freeres.c: Likewise.
72605         * misc/err.c: Likewise.
72606         * misc/getttyent.c: Likewise.
72607         * misc/mntent_r.c: Likewise.
72608         * posix/getopt.c: Likewise.
72609         * posix/wordexp.c: Likewise.
72610         * pwd/fgetpwent_r.c: Likewise.
72611         * resolv/Versions: Likewise.
72612         * resolv/res_hconf.c: Likewise.
72613         * shadow/fgetspent_r.c: Likewise.
72614         * shadow/putspent.c: Likewise.
72615         * stdio-common/printf_fphex.c: Likewise.
72616         * stdio-common/tmpfile.c: Likewise.
72617         * stdlib/abort.c: Likewise.
72618         * stdlib/fmtmsg.c: Likewise.
72619         * sunrpc/auth_unix.c: Likewise.
72620         * sunrpc/clnt_perr.c: Likewise.
72621         * sunrpc/clnt_tcp.c: Likewise.
72622         * sunrpc/clnt_udp.c: Likewise.
72623         * sunrpc/clnt_unix.c: Likewise.
72624         * sunrpc/openchild.c: Likewise.
72625         * sunrpc/svc_simple.c: Likewise.
72626         * sunrpc/svc_tcp.c: Likewise.
72627         * sunrpc/svc_udp.c: Likewise.
72628         * sunrpc/svc_unix.c: Likewise.
72629         * sunrpc/xdr.c: Likewise.
72630         * sunrpc/xdr_array.c: Likewise.
72631         * sunrpc/xdr_rec.c: Likewise.
72632         * sunrpc/xdr_ref.c: Likewise.
72633         * sunrpc/xdr_stdio.c: Likewise.
72634
72635 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72636
72637         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72638
72639 2011-07-03  Andreas Jaeger  <aj@suse.de>
72640
72641         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72642         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72643         regenerate with gen-libm-tests.pl.
72644
72645 2010-05-12  Petr Baudis  <pasky@suse.cz>
72646
72647         [BZ #11589]
72648         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72649         around j0() zero points by switching to j1().
72650         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72651         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72652         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72653         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72654
72655 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72656
72657         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72658         instead of 0.
72659         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72660         instead of 0.
72661         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72662         Patch in part by Pavel Roskin <proski@gnu.org>.
72663
72664         [BZ #13138]
72665         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72666         realloc.
72667         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72668         Free memory block if necessary.
72669
72670         [BZ #12847]
72671         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72672         be NULL.  Don't lock in this case.
72673
72674 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72675
72676         * elf/elf.h (ELFOSABI_GNU): New macro.
72677         (ELFOSABI_LINUX): Define to that.
72678
72679 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72680
72681         * string/strncat.c (strncat): Undef the symbol in case it has been
72682         defined in bits/string.h.
72683
72684 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72685
72686         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72687
72688         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72689         link map.
72690
72691 2011-08-17  Andreas Jaeger  <aj@suse.de>
72692
72693         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72694
72695 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72696             Ian Lance Taylor  <iant@google.com>
72697
72698         * math/libm-test.inc (lround_test): New testcase.
72699         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72700
72701 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72702
72703         * Makefile: Remove support for automatic cvs check-ins.
72704         * Makerules: Likewise.
72705         * config.make.in: Likewise.
72706         * configure.in: Likewise.
72707         * intl/Makefile: Likewise.
72708         * locale/Makefile: Likewise.
72709         * po/Makefile: Likewise.
72710         * posix/Makefile: Likewise.
72711         * sysdeps/gnu/Makefile: Likewise.
72712         * sysdeps/mach/hurd/Makefile: Likewise.
72713         * sysdeps/sparc/sparc32/Makefile: Likewise.
72714
72715         [BZ #13118]
72716         * posix/Makefile (bug-regex32-ENV): Define.
72717         Patch by John Stanley <jpsinthemix@verizon.net>.
72718
72719         * misc/Makefile (headers): Add bits/select2.h.
72720         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72721         * misc/bits/select2.h: New file.
72722         * include/bits/select2.h: New file.
72723         * debug/Makefile (routines): Add fdelt_chk.
72724         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72725         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72726         FD_ISSET.
72727         * debug/fdelt_chk.c: New file.
72728
72729         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72730         * wcsmbs/test-wmemcmp.c: Likewise.
72731         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72732         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72733
72734 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72735
72736         * string/Makefile (strop-tests): Add memcmp.
72737         * string/test-wmemcmp.c: New file.
72738         * string/test-memcmp.c: Add wmemcmp support.
72739
72740 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72741
72742         [BZ #13153]
72743         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72744         2011-07-19 change.
72745
72746         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72747         garbage value in a __mach_port_mod_refs call in the cases of the
72748         task-self and thread-self ports.
72749
72750 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72751
72752         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72753
72754 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72755
72756         * elf/dl-load.c (lose): Check for non-null L.
72757
72758 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72759
72760         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72761
72762         * elf/dl-libc.c (dlerror_run): Pass back error code from
72763         dl_catch_error.
72764
72765         [BZ #13123]
72766         * elf/dl-load.c (lose): Free l_origin if it is valid.
72767
72768         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72769         names.
72770         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72771         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72772         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72773         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72774         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72775         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72776
72777 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72778
72779         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72780         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72781         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72782         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72783         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72784         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72785         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72786         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72787         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72788         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72789
72790 2011-08-15  Alan Modra  <amodra@gmail.com>
72791
72792         [BZ #13092]
72793         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72794         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72795         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72796         ppc_mcount to static-only-routines.
72797         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72798         __mcount_internal.
72799         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72800         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72801
72802 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72803
72804         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72805         for finite and infinity parameters.
72806
72807 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72808
72809         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72810         and add nop instructions for throughput optimization.
72811         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72812
72813 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72814
72815         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72816         aligned copy for power7 with vector-scalar instructions.
72817         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72818
72819 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72820
72821         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72822         AVX check.
72823
72824 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72825
72826         [BZ #13144]
72827         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72828         last change.
72829
72830 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72831
72832         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72833         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72834         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72835         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72836         clock_gettime.
72837
72838 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72839
72840         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72841         Forgot to demangle the pointer.
72842
72843         * sysdeps/i386/sysdep.h: Define atom_text_section.
72844         * sysdeps/x86_64/sysdep.h: Likewise.
72845         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72846         section with atom_text_section.
72847         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72848         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72849         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72850         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72851         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72852
72853         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72854         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72855         already be defined.  Change to take two parameters and don't assign
72856         result to variable.  Adjust all users.
72857         Define INTERNAL_GETTIME if not already defined.
72858         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72859         call.
72860         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72861         HAVE_CLOCK_GETTIME_VSYSCALL.
72862         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72863
72864         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72865         gettimeofday vsyscall, just use time.
72866
72867 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72868
72869         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72870         <errno.h>.
72871
72872 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72873
72874         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72875         syscall on x86-64.
72876         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72877         syscall.
72878         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72879         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72880         syscall if possible.
72881
72882 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72883
72884         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72885         e_ident.  Don't pass to find_mapsXX.
72886         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72887
72888 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72889
72890         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72891         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72892         * sysdeps/x86_64/multiarch/strchr.S: Update.
72893         Check bit_slow_BSF bit.
72894         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72895         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72896         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72897
72898 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72899
72900         [BZ #13134]
72901         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72902         before glibc 2.15.
72903         (tryshell): Define.
72904         (__spawni): Change last parameter to be flag.  Test
72905         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72906         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72907         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72908         * posix/spawni.c: Likewise.
72909         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72910         * posix/spawnp.c: Likewise.  Change normal version to use
72911         SPAWN_XFLAGS_USE_PATH.
72912         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72913         SPAWN_XFLAGS_TRY_SHELL.
72914
72915         [BZ #13150]
72916         * posix/glob.h: Remove gcc 1.x support.
72917
72918         [BZ #13068]
72919         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72920
72921 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72922
72923         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72924         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72925         strrchr-sse2-bsf
72926         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72927         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72928         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72929         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72930         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72931         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72932
72933 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72934
72935         * sysdeps/x86_64/wcscmp.S: New file.
72936
72937         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72938         wcscmp-c wcscmp-sse2
72939         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72940         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72941         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72942         * wcsmbs/wcscmp.c: Allow renaming.
72943
72944 2011-09-05  David S. Miller  <davem@davemloft.net>
72945
72946         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72947         stack slot, rather than the struct return pointer slot.
72948         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72949         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72951         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72952
72953 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72954
72955         * po/ja.po: Update from translation team.
72956
72957         [BZ #13144]
72958         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72959         kernel in 64-bit binaries.
72960
72961 2011-09-01  David S. Miller  <davem@davemloft.net>
72962
72963         * elf/elf.h (HWCAP_SPARC_*): Move to..
72964         * sysdeps/sparc/sysdep.h: this new file and add new values.
72965         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72966         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72967         _DL_HWCAP_COUNT to 24.
72968         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72969         entries.
72970         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72971         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72972         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72973         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72974         instead of magic constants.
72975         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72976
72977 2011-08-31  David S. Miller  <davem@davemloft.net>
72978
72979         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72980         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72981         Reimplement to do errno handling inline.
72982         (SYSCALL_ERROR_HANDLER): New macro.
72983         (__SYSCALL_STRING): Do not do errno handling in asm.
72984         (__CLONE_SYSCALL_STRING): Delete.
72985         (__INTERNAL_SYSCALL_STRING): Delete.
72986         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72987         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72988         (PSEUDO): Reimplement to do errno handling inline.
72989         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72990         (SYSCALL_ERROR_HANDLER): New macro.
72991         (__SYSCALL_STRING): Do not do errno handling in asm.
72992         (__CLONE_SYSCALL_STRING): Delete.
72993         (__INTERNAL_SYSCALL_STRING): Delete.
72994         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72995         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72996         i386.
72997         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72998         (inline_syscall*): Add 'err' argument.
72999         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73000         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73001         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73002         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73003
73004         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73005         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73006
73007 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73008
73009         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73010
73011 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73012
73013         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73014         directive.
73015
73016 2011-08-24  David S. Miller  <davem@davemloft.net>
73017
73018         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73019
73020 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73021
73022         * elf/Makefile: Add rules to build and run unload8 test.
73023         * elf/unload8.c: New file.
73024         * elf/unload8mod1.c: New file.
73025         * elf/unload8mod1x.c: New file.
73026         * elf/unload8mod2.c: New file.
73027         * elf/unload8mod3.c: New file.
73028
73029         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73030         it wasn't used.
73031
73032 2011-08-23  David S. Miller  <davem@davemloft.net>
73033
73034         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73035         subtract stack bias.
73036         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73037         %sp not %fp in calculations.
73038         (_JMPBUF_UNWINDS_ADJ): Likewise.
73039
73040         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73041         (aio_suspend): Call it to force an exception region around the
73042         AIO_MISC_WAIT() invocation.
73043
73044 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73045
73046         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73047         backslash.
73048
73049 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73050
73051         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73052         protection macro.
73053         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73054         and <dl-machine.h>.
73055         (Elf64_FuncDesc): Remove.
73056
73057 2011-08-22  David S. Miller  <davem@davemloft.net>
73058
73059         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73060         sigaltstack check, add missing cfi directives.
73061         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73062         missing cfi directives, and sigaltstack handling.
73063
73064 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73065
73066         [BZ #11724]
73067         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73068         object is seen twice.
73069         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73070
73071         * elf/Makefile (distribute): Add tst-initorder2.c.
73072         (tests): Add tst-initorder2.
73073         (modules-names): Add tst-initorder2a tst-initorder2b
73074         tst-initorder2c tst-initorder2d.  Add rules to build them.
73075         ($(objpfx)tst-initorder2.out): New rule.
73076         * elf/tst-initorder2.c: New file.
73077         * elf/tst-initorder2.exp: New file.
73078
73079 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73080
73081         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73082
73083         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73084         dependencies back to end of function.
73085
73086         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73087         $(elfobjdir)/ld.so.
73088
73089 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73090
73091         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73092         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73093         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73094         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73095         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73096         of __vdso_gettimeofday.
73097         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73098         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73099         attribute_hidden.
73100         (_libc_vdso_platform_setup): Remove initialization of
73101         __vdso_gettimeofday and __vdso_time.
73102
73103 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73104
73105         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73106         and fgetc_unlocked.
73107         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73108         getc_unlocked.
73109
73110         * elf/dl-open.c (add_to_global): Report additions to the global scope
73111         for LD_DEBUG=scopes.
73112         (dl_open_worker): Also print scope of newly loaded dependencies.
73113         (_dl_show_scope): Indicate if there is no scope.
73114
73115         [BZ #13114]
73116         * stdio-common/Makefile (tests): Add bug24.
73117         * stdio-common/bug24.c: New file.
73118
73119 2011-08-19  Andreas Jaeger  <aj@suse.de>
73120
73121         [BZ #13114]
73122         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73123         non-existant file when using close-on-exec mode.
73124
73125 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73126
73127         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73128         the very first instruction.
73129
73130         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73131         the CFI state in the end.
73132         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73133         inclusion of dl-trampoline.h.
73134         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73135
73136 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73137
73138         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73139         expectations for long double.
73140
73141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73142         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73143
73144 2011-08-14  David S. Miller  <davem@davemloft.net>
73145
73146         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73147         artificual limit depends upon the system page size.
73148
73149 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73150
73151         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73152         * resolv/Makefile: Define CFLAGS-libresolv.
73153
73154 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73155
73156         * nss/makedb.c (compute_tables): Make variables used in nested
73157         function static.
73158
73159 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73160
73161         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73162         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73163         if buffer was too small.
73164
73165         * elf/pldd.c (main): Attach to all threads in the process.
73166         Rewrite /proc handling to use *at functions.
73167
73168 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73169
73170         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73171         specifies first scope to show.
73172         (dl_open_worker): Update callers.  Move printing scope of new
73173         object to before the relocation.
73174         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73175         * sysdeps/generic/ldsodefs.h: Update declaration.
73176
73177         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73178         string for the scope number.
73179
73180 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73181
73182         * nscd/servicescache.c (cache_addserv): Make sure written is always
73183         initialized.
73184
73185 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73186
73187         * sysdeps/i386/i486/bits/atomic.h
73188         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73189         statement expression, so as to suppress "set but not used" warning.
73190         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73191
73192         * string/strncat.c (STRNCAT): Use prototype definition.
73193
73194         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73195         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73196         -Iprograms here.
73197         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73198         (localedef-modules): Add localedef.
73199         (locale-modules): Add locale.
73200
73201         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73202         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73203         to avoid a warning.
73204
73205 2011-08-14  David S. Miller  <davem@davemloft.net>
73206
73207         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73208         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73209
73210 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73211
73212         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73213         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73214         * elf/rtld.c (dl_main): Set l_name of vDSO.
73215         Call _dl_show_scope when DL_DEBUG_SCOPES.
73216         (process_dl_debug): Recognize scopes flag and also set it for all.
73217         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73218         Declare _dl_show_scope.
73219
73220         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73221         (do_dlopen): Pass caller_dlopen to dl_open.
73222         (__libc_dlopen_mode): Initialize caller_dlopen.
73223
73224         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73225         of libc.  Make tolower call locale-independent.  Optimize a bit by
73226         using isdigit instead of isalnum.
73227         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73228
73229 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73230
73231         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73232         was a dependency or dynamically loaded.
73233
73234 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73235
73236         * intl/l10nflist.c: Allow architecture-specific pop function.
73237         * sysdeps/x86_64/l10nflist.c: New file.
73238
73239         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73240         classification.
73241
73242 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73243
73244         * include/dirent.h: Add libc_hidden_proto for scandirat and
73245         scandirat64.  Don't declare __scandirat64.
73246         * dirent/scandirat.c: Add libc_hidden_def.
73247         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73248         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73249
73250 2011-08-10  David S. Miller  <davem@davemloft.net>
73251
73252         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73253         enum.
73254         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73255         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73256         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73257
73258 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73259
73260         * Versions.def [libc]: Add GLIBC_2.15.
73261         * dirent/Makefile (routines): Add scandirat and scandirat64.
73262         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73263         GLIBC_2.15.
73264         * dirent/dirent.h: Declare scandirat and scandirat64.
73265         * dirent/scandirat.c: New file.
73266         * dirent/scandirat64.c: New file.
73267         * sysdeps/wordsize-64/scandirat.c: New file.
73268         * sysdeps/wordsize-64/scandirat64.c: New file.
73269         * dirent/opendir.c: Define opendirat.
73270         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73271         using scandirat.
73272         * dirent/scandir64.c: Adjust for scandir.c change.
73273         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73274         __scandirat64, and __scandir_cancel_handler.
73275         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73276         additional parameter and use openat instead of open (outside of ld.so).
73277         Add new __opendir as wrapper around __opendirat.
73278         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73279         here without requiring old scandirat implementation.
73280
73281 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73282
73283         * dirent/scandir.c (cancel_handler): Renamed to
73284         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73285         defined.  Adjust users.
73286         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73287         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73288
73289 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73290
73291         * string/test-string.h (IMPL): Use __STRING to expand name and then
73292         stringify it.
73293
73294         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73295         of cleanups.
73296
73297 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73298
73299         * string/Makefile: Update.
73300         (strop-tests): Append strncat.
73301         * string/test-wcscmp.c: New file.
73302         New comprehensive test for wcscmp.
73303         * string/test-strcmp.c: Update.
73304         (WIDE): New define.
73305
73306 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73307
73308         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73309         line.
73310
73311 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73312
73313         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73314         encoding to ACE if AI_IDN.
73315
73316 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73317
73318         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73319         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73320
73321 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73322
73323         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73324         Fix overflow bug in strncat.
73325         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73326
73327         * string/test-strncat.c: Update.
73328         Add new tests for checking overflow bugs.
73329
73330 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73331
73332         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73333         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73334         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73335         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73336         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73337         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73338         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73339         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73340         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73341
73342         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73343         (USE_AS_STRCAT): Define.
73344         Add strcat and strncat support.
73345         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73346
73347 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73348
73349         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73350         __n bigger than INT_MAX+1.
73351         (__strncmp_g): Likewise.
73352
73353 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73354
73355         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73356         * libio/stido.h: Likewise.
73357
73358         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73359         (AF_NFC): Define.
73360         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73361         (AF_NFC): Define.
73362
73363         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73364         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73365         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73366         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73367         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73368
73369         [BZ #13021]
73370         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73371         installed.
73372
73373         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73374         typo.
73375         (_dl_x86_64_save_sse): Likewise.
73376
73377 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73378
73379         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73380         OSXSAVE.
73381         (_dl_x86_64_save_sse): Likewise.
73382
73383         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73384
73385         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73386
73387 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73388
73389         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73390         change.
73391         (_dl_x86_64_save_sse): Use correct AVX check.
73392
73393 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73394
73395         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73396         bug in strncpy/strncat.
73397         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73398
73399 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73400
73401         * string/tester.c (test_strcat): Add tests for different alignments
73402         of source and destination.
73403         (test_strncat): Likewise.
73404
73405 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73406
73407         [BZ #12852]
73408         * posix/glob.c (glob): Check passed in values before using them in
73409         expressions to avoid some overflows.
73410         (glob_in_dir): Likewise.
73411
73412         [BZ #13007]
73413         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73414         check for AVX enablement so that we don't crash with old kernels and
73415         new hardware.
73416         * elf/tst-audit4.c: Add same checks here.
73417         * elf/tst-audit6.c: Likewise.
73418
73419         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73420
73421 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73422
73423         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73424
73425 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73426
73427         * po/cs.po: Update from translation team.
73428         * po/bg.po: Likewise.
73429
73430 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73431
73432         * misc/sys/cdefs.h: Add support for const attribute.
73433         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73434         to gnu_dev_{major,minor,makedev} functions.
73435
73436 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73437
73438         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73439
73440 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73441
73442         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73443         strlen results.
73444
73445 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73446
73447         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73448         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73449         register in order to avoid conflicts with the soft frame pointer
73450         being held in r11 when necessary.
73451         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73452         (INTERNAL_VSYSCALL_NCS): Likewise.
73453
73454 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73455
73456         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73457         * elf/dl-fini.c (_dl_fini): Adjust caller.
73458         * elf/dl-close.c (_dl_close_worker): Likewise.
73459         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73460
73461 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73462
73463         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73464         "aux_cache->nlibs < 0".
73465
73466         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73467         in the reload-count case.
73468
73469 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73470
73471         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73472         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73473         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73474         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73475         * sysdeps/x86_64/multiarch/strcat.S: New file.
73476         * sysdeps/x86_64/multiarch/strncat.S: New file.
73477         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73478         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73479         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73480         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73481         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73482         (USE_AS_STRCAT): Define.
73483         Add strcat and strncat support.
73484         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73485         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73486         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73487         * string/strncat.c: Update.
73488         (USE_AS_STRNCAT): Define.
73489         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73490         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73491         and i7.
73492         * sysdeps/x86_64/multiarch/init-arch.h
73493         (bit_Prefer_PMINUB_for_stringop): New.
73494         (index_Prefer_PMINUB_for_stringop): Likewise.
73495         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73496         bit_Prefer_PMINUB_for_stringop.
73497
73498 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73499
73500         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73501         buffer64.
73502         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73503         of casting of buffer.
73504         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73505         buffer32 and buffer64.
73506         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73507         writes instead of casting of buffer.
73508         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73509         buffer32.
73510         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73511         casting of buffer.
73512
73513 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73514
73515         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73516
73517 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73518
73519         * nscd/nscd.c (termination_handler): Don't do anything for a database
73520         if it has not yet been initialized.
73521
73522 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73523
73524         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73525
73526 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73527
73528         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73529
73530 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73531
73532         * po/nl.po: Update from translation team.
73533         * po/sv.po: Likewise.
73534
73535 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73536
73537         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73538         now disallowed by GCC.
73539
73540         * configure.in (use-default-link): Default to yes if a test -shared
73541         link meets our qualifications.
73542         * configure: Regenerated.
73543
73544         * config.make.in (output-format): New variable.
73545         * configure.in: Check for ld --print-output-format support.
73546         * configure: Regenerated.
73547         * Makerules ($(common-objpfx)format.lds)
73548         [$(output-format) != unknown]: Just use $(output-format),
73549         instead of the linker-script munging.
73550
73551 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73552
73553         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73554         of $(common-objpfx)shlib.lds.
73555         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73556
73557         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73558         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73559
73560         * configure.in (-z relro check): Adjust test code to add a large
73561         writable data section after it.
73562         * configure: Regenerated.
73563
73564 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73565
73566         * configure.in (-z relro check): Fix test code to make the variable
73567         truly const.
73568         * configure: Regenerated.
73569
73570 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73571
73572         * nscd/nscd.h (struct traced_file): Define.
73573         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73574         elements.  Add traced_files.
73575         (inotify_fd): Declare.
73576         (register_traced_file): Declare.
73577         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73578         (inotify_fd): Export.
73579         (resolv_conf_descr): Remove.
73580         (nscd_init): Move inotify descriptor creation to main.
73581         Don't register files for notification here.
73582         (register_traced_file): New function.
73583         (invalidate_cache): Don't use reset_res to determine whether to call
73584         res_init, go through the list of registered files.
73585         (main_loop_poll): The inotify descriptors are now stored in the
73586         structures for the traced files.
73587         (main_loop_epoll): Likewise.
73588         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73589         to __nss_disable_nscd.
73590         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73591         for a database anymore.  Check the records for all the registered
73592         files instead.
73593         * nss/Makefile (libnss_files-routines): Add files-init.
73594         (libnss_db-routines): Add db-init.
73595         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73596         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73597         * nss/nss_db/db-init.c: New file.
73598         * nss/nss_files/files-init.c: New file.
73599         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73600         __nss_lookup_function.
73601         (__nss_lookup_function): Call nss_load_library.
73602         (nss_load_all_libraries): New function.
73603         (__nss_disable_nscd): Take parameter with callback function for files
73604         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73605         used for the cached services.
73606         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73607         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73608         options for features to all the files in nscd.
73609
73610         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73611
73612 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73613
73614         * csu/elf-init.c (__libc_csu_init): Comment typo.
73615
73616 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73617
73618         * po/pl.po: Update from translation team.
73619         * po/ja.po: Likewise.
73620         * po/ru.po: Likewise.
73621         * po/ko.po: Likewise.
73622         * po/fr.po: Likewise.
73623
73624 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73625
73626         * configure.in (.ctors/.dtors header and trailer check):
73627         Use an empirical test on a built program.
73628         * configure: Regenerated.
73629
73630         * configure.in (-z relro check): Use an empirical test on a built DSO.
73631         Detect, but do not require, on ia64.
73632         * configure: Regenerated.
73633
73634         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73635         Update tests that use readelf to use $READELF instead.
73636         * configure: Regenerated.
73637
73638 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73639
73640         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73641         if the result is not used.
73642
73643 2011-07-05  Andreas Jaeger  <aj@suse.de>
73644
73645         [BZ#9696]
73646         * stdlib/tst-strtod.c: Add testcase.
73647
73648 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73649
73650         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73651         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73652         The latter has a higher limit.  Take additional parameter to pass to
73653         the new function.
73654         (__pathconf): Pass file to __statfs_link_max.
73655         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73656         __statfs_link_max.
73657         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73658         __statfs_link_max.
73659
73660         [BZ #12868]
73661         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73662         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73663         Handle Lustre.
73664         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73665         (__statfs_filesize_max): Likewise.
73666         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73667
73668 2011-07-05  Andreas Jaeger  <aj@suse.de>
73669
73670         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73671
73672 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73673
73674         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73675         `status' variable.
73676         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73677         Likewise.
73678
73679 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73680
73681         * Makefile (strop-tests): Add strncat.
73682         * string/test-strncat.c: New file.
73683
73684 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73685
73686         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73687
73688 2011-06-21  Andreas Jaeger  <aj@suse.de>
73689
73690         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73691         Copy rule from iconvdata/Makefile.
73692
73693 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73694
73695         [BZ #12922]
73696         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73697         but no long options are defined, just return 'W'.
73698
73699 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73700
73701         [BZ #9696]
73702         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73703
73704 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73705
73706         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73707         netgroups to read.
73708         (innetgr): Likewise.
73709
73710 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73711
73712         * config.make.in (install_root): Default to $(DESTDIR).
73713
73714 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73715
73716         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73717
73718 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73719
73720         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73721
73722         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73723         containing directory rather than embedding absolute directory names.
73724
73725         * scripts/check-local-headers.sh: Rewritten using awk.
73726         Match by word, not by line.  Print error messages for matches.
73727         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73728
73729         * Makerules [shlib-lds-flags empty]:
73730         ($(common-objpfx)libc_pic.opts): New target.
73731         ($(common-objpfx)libc_pic.os.clean): New target.
73732         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73733
73734         * config.make.in (OBJCOPY): New variable.
73735         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73736         * configure: Regenerated.
73737
73738         * config.make.in (use-default-link): New variable.
73739         * configure.in (use_default_link): Grok --with-default-link to set it.
73740         * configure: Regenerated.
73741         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73742         (shlib-lds, shlib-lds-flags): Define to empty.
73743
73744         * Makerules (shlib-lds): New variable.
73745         (shlib-lds-flags): New variable.
73746         (build-shlib, build-moduile, build-module-asneeded): Use it.
73747         ($(common-objpfx)libc.so): Use $(shlib-lds).
73748         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73749         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73750
73751         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73752         DT_FLAGS/DT_FLAGS_1 with zero flags.
73753
73754         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73755         linker script munging.
73756
73757 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73758
73759         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73760         as 128-bit value.
73761         * crypt/sha512.c (sha512_process_block): Perform total addition using
73762         128-bit if possible.
73763         (__sha512_finish_ctx): Likewise.
73764         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73765         as 64-bit value.
73766         * crypt/sha256.c (SWAP64): Define.
73767         (sha256_process_block): Perform total addition using 64-bit if
73768         possible.
73769         (__sha256_finish_ctx): Likewise.
73770
73771 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73772
73773         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73774         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73775         * nscd/hstcache.c (cache_addhst): Likewise.
73776         * nscd/grpcache.c (cache_addgr): Likewise.
73777         * nscd/aicache.c (addhstaiX): Likewise.
73778         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73779
73780 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73781
73782         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73783         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73784         * nscd/hstcache.c (cache_addhst): Likewise.
73785         * nscd/grpcache.c (cache_addgr): Likewise.
73786         * nscd/aicache.c (addhstaiX): Likewise.
73787
73788 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73789
73790         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73791         domain only when needed.
73792
73793 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73794
73795         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73796         is always restored.
73797
73798 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73799
73800         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73801         are re-adding the entry.
73802         * nscd/servicescache.c (cache_addserv): Likewise.
73803
73804 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73805
73806         * sysdeps/generic/dl-irel.h: fix protection against multiple
73807         inclusions.
73808         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73809
73810 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73811
73812         [BZ #12935]
73813         * malloc/memusage.sh: Fix quoting in message.
73814         * debug/xtrace.sh: Likewise.
73815
73816         * configure.in: Remove support for --experimental-malloc option, make
73817         it the default.
73818         * config.make.in: Likewise.
73819         * malloc/Makefile: Likewise.
73820
73821 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73822
73823         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73824         two-byte characters.
73825
73826 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73827
73828         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73829         AC_CACHE_CHECK invocation.
73830         * configure: Regenerated.
73831
73832         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73833
73834 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73835
73836         [BZ #12350]
73837         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73838         bit from old_res_options.
73839
73840         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73841
73842         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73843         value type for setfct.
73844
73845 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73846
73847         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73848         __gettimeofday instead of gettimeofday.
73849
73850 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73851
73852         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73853
73854 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73855
73856         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73857
73858         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73859         info.
73860
73861 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73862
73863         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73864         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73865         strcpy-sse2-unaligned strncpy-sse2-unaligned
73866         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73867         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73868         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73869         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73870         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73871         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73872         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73873         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73874         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73875         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73876         (STRCPY): Support SSE2 and SSSE3 versions.
73877
73878 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73879
73880         [BZ #12874]
73881         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73882         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73883         kernels which artificially limit size of requests.
73884
73885 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73886
73887         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73888         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73889         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73890         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73891         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73892         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73893         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73894         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73895         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73896         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73897         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73898         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73899         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73900         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73901         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73902         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73903         Enable unaligned load optimization for Intel Core i3, i5 and i7
73904         processors.
73905         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73906         Define.
73907         (index_Fast_Unaligned_Load): Define.
73908         (HAS_FAST_UNALIGNED_LOAD): Define.
73909
73910 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73911
73912         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73913
73914 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73915
73916         [BZ #12907]
73917         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73918         until it is clear that the information is realy needed.
73919         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73920
73921 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73922
73923         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73924
73925 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73926
73927         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73928         /sys/devices/system/cpu/online if it is usable.
73929
73930         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73931         reading the information from the /proc filesystem to once a second.
73932
73933 2011-06-21  Andreas Jaeger  <aj@suse.de>
73934
73935         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73936         NULL after inclusion of kernel headers.
73937
73938 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73939
73940         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73941         calls to internal_setent.
73942
73943         [BZ #12885]
73944         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73945         addresses using gethostbyname4_r ignore IPv4 addresses.
73946
73947         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73948         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73949
73950         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73951
73952 2011-06-20  David S. Miller  <davem@davemloft.net>
73953
73954         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73955         inclusions.
73956         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73957
73958         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73959         (elf_irel): Use it.
73960         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73961         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73962         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73963         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73964         * sysdeps/x86_64/dl-irel.h: Likewise.
73965
73966         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73967         * elf/dl-sym.c: Likewise.
73968
73969 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73970
73971         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73972         need to dereference resplen2.
73973
73974 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73975
73976         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73977
73978 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73979
73980         * Makeconfig: Define vardbdir and inst_vardbdir.
73981         * nss/Makefile: Add rules to install db-Makefile.
73982
73983         * nss/nss_db/db-XXX.c: Cleanup.
73984
73985         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73986         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73987         GLIBC_PRIVATE.
73988         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73989         * nss/makedb.c: Implement -g option to specify that value strings
73990         are generated and should not be added to table iterated over for
73991         get*ent calls.
73992         * nss/nss_db/db-initgroups.c: New file.
73993
73994         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73995         interface.
73996
73997         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73998         (internal_getgrouplist): Adjust to name change.
73999         Update use_initgroups_entry if this is not the first call.
74000         * nss/databases.def: Add initgroups entry.
74001
74002         * nss/makedb.c (compute_tables): Check result of multiple hash table
74003         sizes to minimize maximum chain length.
74004
74005 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74006
74007         * Versions.def: Add entry for libnss_db.
74008         * shlib-versions: Likewise.
74009         * nss/Makefile: Add rules to build libnss_db.
74010         * nss/Versions: Add libnss_db information.  Organize libnss_files
74011         entries better.
74012         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74013         makedb progra.  Some minor improvements to generate smaller files.
74014         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74015         here from...
74016         * nss/makedb.c: ...here.
74017         Improve database format to be smaller and require less memory at
74018         runtime.
74019         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74020         db anymore.
74021         * nss/nss_db/db-netgrp.c: Likewise.
74022         * nss/nss_db/db-open.c: Likewise.
74023         * nss/nss_files/flies-XXX.x: Adjust comments.
74024         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74025         * nss/nss_files/files-grp.c: Likewise.
74026         * nss/nss_files/files-hosts.c: Likewise.
74027         * nss/nss_files/files-network.c: Likewise.
74028         * nss/nss_files/files-proto.c: Likewise.
74029         * nss/nss_files/files-pwd.c: Likewise.
74030         * nss/nss_files/files-rpc.c: Likewise.
74031         * nss/nss_files/files-service.c: Likewise.
74032         * nss/nss_files/files-sgrp.c: Likewise.
74033         * nss/nss_files/files-spwd.c: Likewise.
74034         * nss/nss_db/db-alias.c: Removed.
74035         * nss/nss_db/dummy-db.h: Removed.
74036
74037 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74038
74039         * nss/makedb.c: Rewritten to not use database library.
74040         * nss/Makefile: Update to build new makedb program.
74041
74042 2011-06-14  Andreas Jaeger  <aj@suse.de>
74043
74044         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74045         memset declaration.
74046
74047 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74048
74049         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74050         tmpbuf.
74051
74052 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74053
74054         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74055         * elf/Makefile ($(objpfx)ld.so): Likewise.
74056
74057         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74058         Don't list ld.so twice in dependencies.
74059
74060         * posix/bug-regex31.c: Include <stdlib.h>.
74061
74062         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74063
74064         * nis/nss_compat/compat-spwd.c
74065         (getspent_next_nss_netgr): Remove unused variable.
74066         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74067
74068         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74069         nonmembers" output to use the right array.
74070
74071         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74072
74073         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74074
74075         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74076         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74077         * catgets/gencat.c (read_input_file): Likewise.
74078         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74079
74080         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74081         variable definition inside #if's controlling its use.
74082
74083         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74084
74085         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74086
74087         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74088
74089         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74090         unreachable code.
74091
74092         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74093
74094         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74095         * configure: Regenerated.
74096
74097         * Makerules: Revert last change.
74098         * elf/Makefile: Likewise.
74099
74100 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74101
74102         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74103         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74104         (reloc-link): Likewise.
74105
74106 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74107
74108         * elf/Makefile: Add rules to build pldd.
74109         * elf/pldd.c: New file.
74110         * elf/pldd-xx.c: New file.
74111
74112 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74113
74114         * version.h: Update for 2.15 development version.
74115
74116 2011-06-07  David S. Miller  <davem@davemloft.net>
74117
74118         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74119         ifuncs.
74120         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74121         elf_machine_lazy_rel): Likewise.
74122         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74123         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74124         elf_machine_lazy_rel): Likewise.
74125         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74126         dl_hwcap via passed in argument.
74127         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74128         Likewise.
74129
74130 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74131
74132         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74133
74134 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74135
74136         [BZ #12849]
74137         * manual/fdl-1.1.texi: New file, verbatim from:
74138         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74139         * manual/lgpl-2.1.texi: New file, verbatim from:
74140         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74141         * manual/Makefile (licenses): New variable, list those new file names.
74142         (texis): Use it.
74143         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74144
74145         * manual/fdl.texi: File removed.
74146         * manual/lesser.texi: File removed.
74147         * manual/libc.texinfo (Copying, Documentation License):
74148         Use new @include file names, put @appendix directive before @include.
74149
74150 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74151
74152         [BZ #12841]
74153         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74154         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74155         (mq_open): Add __NTH.
74156
74157 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74158
74159         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74160         Assume Intel Core i3/i5/i7 processor if AVX is available.
74161
74162 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74163
74164         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74165         typo.
74166
74167 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74168
74169         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74170         memory.  Use alloca_account.  Fix memory leak when retrying.
74171
74172 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74173
74174         * version.h (RELEASE): Bump for 2.14 release.
74175         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74176
74177         * config.make.in (RANLIB): Remove entry.
74178
74179 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74180
74181         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74182         (libc.pot): Work around missing support for .ksh extension in xgettext.
74183
74184         [BZ #12684]
74185         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74186         if both request failed.
74187         (send_dg): In case of server errors clear resplen or *resplen2.
74188
74189         [BZ #12454]
74190         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74191         when there are multiple maps.
74192         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74193         (_dl_fini): Remove test here.
74194
74195         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74196
74197 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74198
74199         [BZ #12350]
74200         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74201         bit from old_res_options.
74202         (gaih_inet): Likewise.
74203
74204         [BZ #11099]
74205         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74206         as signed.
74207
74208         * resolv/res_init.c (res_setoptions): Make the code more compact.
74209
74210         [BZ #11558]
74211         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74212         set RES_USEVC.
74213
74214         [BZ #11634]
74215         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74216
74217         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74218
74219         [BZ #11781]
74220         * malloc/malloc.h: Declare malloc hook variables as volatile.
74221
74222         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74223         in last patch.
74224
74225         [BZ #11799]
74226         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74227         raise in the comment.
74228         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74229         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74230         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74231
74232 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74233
74234         [BZ #12811]
74235         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74236         grow the buffers more if it already has to be sufficient.
74237         (build_wcs_upper_buffer): Likewise.
74238         * posix/regexec.c (check_matching): Likewise.
74239         (clean_state_log_if_needed): Likewise.
74240         (extend_buffers): Don't enlarge buffers beyond size of the input
74241         buffer.
74242         Patches mostly by Emil Wojak <emil@wojak.eu>.
74243         * posix/bug-regex32.c: New file.
74244         * posix/Makefile (tests): Add bug-regex32.
74245
74246         * locale/findlocale.c (_nl_find_locale): Return right away if
74247         _nl_explode_name failed.
74248         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74249
74250         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74251
74252         * debug/xtrace.sh: Unify messages.
74253         * malloc/memusage.sh: Likewise.
74254
74255         [BZ #12813]
74256         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74257         time symbol from vDSO.  Substitute with vsyscall if not available.
74258         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74259         __vdso_time.
74260
74261         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74262         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74263         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74264         Add sendmmsg and internal_sendmmsg.
74265         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74266         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74267         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74268
74269         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74270         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74271         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74272
74273 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74274
74275         [BZ #12813]
74276         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74277         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74278         available.
74279         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74280         __vdso_getcpu.
74281
74282         [BZ #12814]
74283         * iconvdata/Makefile (tests): Add bug-iconv9.
74284         * iconvdata/bug-iconv9.c: New file.
74285
74286 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74287
74288         [BZ #12814]
74289         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74290
74291 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74292
74293         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74294         (struct user_regs_struct): Change intcs field back to cs.
74295
74296 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74297
74298         * po/ja.po: Update from translation team.
74299
74300 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74301
74302         [BZ #12795]
74303         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74304         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74305
74306 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74307
74308         * stdlib/longlong.h: Update from GCC.
74309
74310 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74311
74312         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74313         parameter name.
74314         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74315         Add parameter name.
74316         (__sysconf): Pass it down.
74317
74318 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74319
74320         [BZ #12671]
74321         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74322         some situations.
74323         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74324         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74325         add in in __libc_use_alloca calls.  Adjust callers.
74326         (glob): Use malloc in some situations.
74327
74328         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74329         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74330         pltexit.
74331
74332 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74333
74334         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74335         and CLOCK_BOOTTIME_ALARM.
74336
74337         [BZ #12782]
74338         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74339         is returned.
74340
74341         * string/_strerror.c (__strerror_r): Print negative errors as signed
74342         numbers.
74343
74344         [BZ #12777]
74345         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74346         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74347         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74348
74349         * configure.in: Fix typo in redirection and correct removal of test
74350         files in two cases.
74351
74352         [BZ #12788]
74353         * locale/setlocale.c (new_composite_name): Fix test to check for
74354         identical name of all categories.
74355
74356         [BZ #12792]
74357         * libio/filedoalloc.c (local_isatty): New function.
74358         (_IO_file_doallocate): Use local_isatty.
74359         * stdio-common/perror.c (perror): In case a new stream is used
74360         forward the stream error.
74361         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74362         error flag.
74363
74364 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74365
74366         [BZ #11884]
74367         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74368         alloca.
74369         * include/alloca.h (extend_alloca_account): Define.
74370
74371         [BZ #11857]
74372         * posix/regex.h: Fix comments with documentation of user-accessible
74373         fields after compilation and describe correct free'ing of pattern
74374         after re_compile_pattern.
74375         Patch by Reuben Thomas <rrt@sc3d.org>.
74376
74377 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74378
74379         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74380         and -mno-altivec to prevent the compiler from using Altivec and/or
74381         VSX instructions when the corresponding registers are not available.
74382
74383 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74384
74385         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74386
74387 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74388
74389         * libio/freopen.c (freopen): Use __dup2, not dup2.
74390         * libio/freopen64.c (freopen64): Likewise.
74391
74392 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74393
74394         [BZ #12775]
74395         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74396         * math/Makefile (tests): Add test-powl.
74397         (CFLAGS-test-powl.c): Define.
74398         * math/test-powl.c: New file.
74399
74400 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74401
74402         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74403
74404 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74405
74406         [BZ #11837]
74407         * iconvdata/gb18030.c: Update to GB18020-2005.
74408
74409 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74410
74411         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74412         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74413         Patch by Aharon Robbins <arnold@skeeve.com>.
74414
74415         [BZ #11892]
74416         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74417         on the stack.
74418
74419         [BZ #11895]
74420         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74421         through underflows.
74422
74423         [BZ #12766]
74424         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74425         point to strings before performing equality test for error_one_per_line
74426         mode.
74427
74428         [BZ #11697]
74429         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74430
74431         [BZ #11820]
74432         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74433         (struct user_fpregs_struct): Avoid __uint*_t types.
74434
74435         [BZ #6420]
74436         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74437         symbol info.  Use it instead of calling _dl_addr locally.
74438         (lock_and_info): New function.
74439         (tr_freehook): Call lock_and_info and pass symbol info as additional
74440         parameter to tr_where.
74441         (tr_mallochook): Likewise.
74442         (tr_reallochook): Likewise.
74443         (tr_memalignhook): Likewise.
74444
74445         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74446         used and couldn't be at all thread-safe.
74447
74448 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74449
74450         * libio/freopen.c (freopen): Don't close old file descriptor
74451         before the new one is opened.  Instead dup the new file descriptor
74452         to the old one after the new stream is created.
74453         * libio/freopen64.c (freopen64): Likewise.
74454         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74455         * libio/fileops.c (_IO_new_file_close_it): Handle new
74456         _IO_FLAGS2_NOCLOSE flag.
74457         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74458         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74459         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74460         _IO_FLAGS2_NOCLOSE flag.
74461         * include/unistd.h: Add hidden_proto for dup3.
74462         Define __have_dup3.
74463         * io/dup3.c: Define hidden symbol.
74464         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74465
74466         [BZ #7101]
74467         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74468         when an incomplete long option is used.
74469         * posix/tst-getopt_long1.c: New file.
74470         * posix/Makefile (tests): Add tst-getopt_long1.
74471
74472         [BZ #10138]
74473         * scripts/config.guess: Update from autoconf-2.68.
74474         * scripts/config.sub: Likewise.
74475
74476         [BZ #10157]
74477         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74478         tests into ...
74479         (has_cpuclock): ...this.  New function.
74480         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74481         macro here based on has_cpuclock code.
74482
74483         [BZ #10149]
74484         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74485         First byte (not low byte) is now always NUL.
74486         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74487
74488         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74489         Use non-cancelable interfaces.
74490
74491         [BZ #9809]
74492         * locale/iso-639.def: Add entry for Sorani.
74493
74494         [BZ #11901]
74495         * include/stdlib.h: Move include protection to the right place.
74496         Define abort_msg_s.  Declare __abort_msg with it.
74497         * stdlib/abort.c (__abort_msg): Adjust type.
74498         * assert/assert.c (__assert_fail_base): New function.  Majority
74499         of code from __assert_fail.  Allocate memory for __abort_msg with
74500         mmap.
74501         (__assert_fail): Now call __assert_fail_base.
74502         * assert/assert-perr.c: Remove bulk of implementation.  Use
74503         __assert_fail_base.
74504         * include/assert.hL Declare __assert_fail_base.
74505         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74506         mmap.
74507         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74508
74509 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74510
74511         [BZ #11952]
74512         [BZ #12453]
74513         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74514         until all modules are registered in the DTV.
74515         * elf/Makefile: Add rules to build and run tst-tls19.
74516         * elf/tst-tls19.c: New file.
74517         * elf/tst-tls19mod1.c: New file.
74518         * elf/tst-tls19mod2.c: New file.
74519         * elf/tst-tls19mod3.c: New file.
74520         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74521
74522         [BZ #12083]
74523         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74524         correctly.
74525
74526         [BZ #12601]
74527         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74528         two-byte sequence errors.
74529         * iconvdata/Makefile (tests): Add bug-iconv8.
74530         * iconvdata/bug-iconv8.c: New file.
74531
74532         [BZ #12626]
74533         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74534         buf2 definition.
74535
74536         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74537
74538         [BZ #12432]
74539         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74540         (dummy_getcfa): New function.
74541         (init): Get _Unwind_GetCFA address, use dummy if not found.
74542         (backtrace_helper): In recursion check, also check whether CFA changes.
74543         (__backtrace): Completely initialize arg.
74544
74545         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74546         storing incomplete byte sequence in state object.  Avoid testing for
74547         guaranteed too small input if we know there is enough data available.
74548
74549 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74550
74551         * Makeconfig (+link-pie): Indent.
74552         * Rules (binaries-pie): Define if $(have-fpie) and
74553         $(build-shared).
74554         (binaries-shared): Also filter out $(binaries-pie).
74555         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74556         * nscd/Makefile (others-pie): Add nscd.
74557         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74558         ($(objpfx)nscd): Remove command override.
74559         * login/Makefile (others-pie): Add pt_chown.
74560         ($(objpfx)pt_chown): Remove command override.
74561         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74562         remove command overrides.
74563
74564 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74565
74566         * libio/tst_putwc.c: Fix error messages.
74567
74568         [BZ #12724]
74569         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74570         currently writing and seek to current position when not.
74571         * libio/Makefile (tests): Add bug-fclose1.
74572         * libio/bug-fclose1.c: New file.
74573
74574 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74575
74576         [BZ #12511]
74577         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74578         don't set DF_1_NODELETE here.
74579         (do_lookup_x): When entering new entry test for copy relocation
74580         and if necessary set DF_1_NODELETE flag.
74581         * elf/tst-unique4.cc: New file.
74582         * elf/tst-unique4.h: New file.
74583         * elf/tst-unique4lib.cc: New file.
74584         * elf/Makefile: Add rules to build and run tst-unique4.
74585         Patch by Piotr Bury <pbury@goahead.com>.
74586
74587 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74588
74589         [BZ #12052]
74590         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74591
74592         [BZ #12625]
74593         * misc/mntent_r.c (addmntent): Flush the stream after the output
74594
74595         [BZ #12393]
74596         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74597         (is_trusted_path_normalize): Skip initial colon.  Append slash
74598         to empty buffer.  Duplicate is_trusted_path code but allow
74599         constructed patch to be prefix.
74600         (is_dst): Allow $ORIGIN followed by /.
74601         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74602         Correct testing of result of is_trusted_path_normalize
74603         (decompose_rpath): Fix warning.
74604
74605 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74606
74607         [BZ #11257]
74608         * grp/initgroups.c (internal_getgrouplist): When we found the service
74609         list through the initgroups entry in nsswitch.conf do not always
74610         continue on a successful lookup.  Don't always use the
74611         __nss_group_database value if it is set.
74612         * nss/nsswitch.conf (initgroups): Change action for successful db
74613         lookup to continue for compatibility.
74614
74615 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74616
74617         [BZ #11532]
74618         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74619         and CP774 modules.
74620         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74621         and CP774 modules.
74622         * iconvdata/tst-tables.sh: Likewise.
74623         * iconvdata/cp770.c: New file.
74624         * iconvdata/cp771.c: New file.
74625         * iconvdata/cp772.c: New file.
74626         * iconvdata/cp773.c: New file.
74627         * iconvdata/cp774.c: New file.
74628         * iconvdata/testdata/CP770: New file.
74629         * iconvdata/testdata/CP770..UTF8: New file.
74630         * iconvdata/testdata/CP771: New file.
74631         * iconvdata/testdata/CP771..UTF8: New file.
74632         * iconvdata/testdata/CP772: New file.
74633         * iconvdata/testdata/CP772..UTF8: New file.
74634         * iconvdata/testdata/CP773: New file.
74635         * iconvdata/testdata/CP773..UTF8: New file.
74636         * iconvdata/testdata/CP774: New file.
74637         * iconvdata/testdata/CP774..UTF8: New file.
74638
74639         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74640         END CHARMAP line.
74641         * iconvdata/gen-8bit-gap.sh: Likewise.
74642         * iconvdata/gen-8bit.sh: Likewise.
74643
74644         * locale/iso-639.def: Add ary entry.
74645
74646         [BZ #11258]
74647         * locale/C-translit.h.in: Add U20A1 transliteration.
74648
74649         [BZ #12178]
74650         * locale/iso-639.def: Add wae entry.
74651         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74652
74653         [BZ #12545]
74654         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74655         for n.
74656
74657         [BZ #12711]
74658         * locale/C-translit.h.in: Add entry for U20B9.
74659         Patch by pravin.d.s@gmail.com.
74660
74661 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74662
74663         [BZ #12713]
74664         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74665         ENAMETOOLONG use generic getcwd.
74666         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74667         in rtld.  Use *stat64.
74668         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74669         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74670         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74671         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74672         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74673         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74674         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74675         __fstatat64 macros.
74676         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74677         * dirent/rewinddir.c: Add libc_hidden_def.
74678         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74679         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74680
74681         * include/dirent.h (__alloc_dir): Add flags parameter.
74682         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74683         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74684         __alloc_dir.
74685         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74686         from fdopendir if O_CLOEXEC is already set.
74687
74688 2011-03-15  Alan Modra  <amodra@gmail.com>
74689
74690         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74691         l_tls_firstbyte_offset non-zero.  Save padding offset in
74692         l_tls_firstbyte_offset for later use.
74693         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74694         freeing static tls block.
74695
74696 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74697
74698         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74699         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74700         being defined by the kernel headers.
74701
74702 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74703
74704         [BZ #12734]
74705         * resolv/resolv.h: Define RES_NOTLDQUERY.
74706         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74707         no-tld-query and set RES_NOTLDQUERY.
74708         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74709         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74710         modern BIND to search name as TLD unless forbidden.
74711
74712 2011-05-07  Petr Baudis  <pasky@suse.cz>
74713             Ulrich Drepper  <drepper@gmail.com>
74714
74715         [BZ #12393]
74716         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74717         (is_trusted_path): ...to here.
74718         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74719         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74720         using is_trusted_path_normalize() in setuid scripts.
74721
74722 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74723
74724         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74725         __BEGIN/__END_DECLS.
74726
74727 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74728
74729         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74730         NSS_STATUS_NOTFOUND if no record was found.
74731
74732 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74733
74734         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74735         (headers-not-in-tirpc): Remove rpc/netdb.h
74736         * resolv/netdb.h: Revert last change.
74737
74738 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74739
74740         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74741         circular dependency between libgcc.a and libc.a.
74742
74743 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74744
74745         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74746         * nis/Makefile: Don't install rpcsvc/*.
74747         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74748         instead of <rpc/types.h>.
74749         (MAXHOSTNAMELEN): Define.
74750
74751 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74752
74753         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74754
74755 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74756
74757         [BZ #12714]
74758         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74759         gethostbyname4_r when IPv6 results are possible.
74760
74761 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74762
74763         [BZ #12723]
74764         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74765         _PC_PIPE_BUF handling.
74766
74767 2011-04-30  Bruno Haible  <bruno@clisp.org>
74768
74769         [BZ #12717]
74770         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74771         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74772         to 'int'.
74773         * inet/getnameinfo.c (getnameinfo): Likewise.
74774
74775 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74776
74777         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74778         to groups setting in database lookup.
74779         * nss/nsswitch.conf: Add initgroups entry.
74780
74781 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74782
74783         [BZ #12685]
74784         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74785         mode string.
74786         Patch by Eric Blake <eblake@redhat.com>.
74787
74788 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74789
74790         * sunrpc/Makefile (need-export-routines): Add svc_run.
74791         (routines): Remove svc_run.
74792         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74793         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74794         * sunrpc/svc_run.c (svc_run): Likewise.
74795         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74796
74797 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74798
74799         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74800         problem in reallocation in last patch.
74801
74802 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74803
74804         * sunrpc/Makefile: Move inclusion of Rules.
74805
74806 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74807
74808         * nss/nss_files/files-initgroups.c: New file.
74809         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74810         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74811         _nss_files_initgroups_dyn.
74812
74813 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74814
74815         * elf/elf.h (R_ARM_IRELATIVE): Define.
74816
74817 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74818
74819         * po/ru.po: Update from translation team.
74820
74821 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74822
74823         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74824         dependencies.
74825
74826 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74827
74828         [BZ #12653]
74829         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74830         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74831         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74832         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74833         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74834
74835 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74836
74837         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74838         differing bytes.
74839         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74840         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74841         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74842
74843 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74844
74845         [BZ #12420]
74846         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74847         storing it.
74848         * stdlib/bug-getcontext.c: New file.
74849         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74850
74851 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74852
74853         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74854         instructions into .machine "z9-109".
74855         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74856         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74857
74858 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74859
74860         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74861         between environment variables and auxiliary vector.
74862
74863 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74864
74865         * Makefile: Add rules to build linkobj/libc.so.
74866         * include/libc-symbols.h: Define libc_hidden_nolink.
74867         * include/rpc/auth.h: Mark functions which are to be hidden.
74868         * include/rpc/auth_des.h: Likewise.
74869         * include/rpc/auth_unix.h: Likewise.
74870         * include/rpc/clnt.h: Likewise.
74871         * include/rpc/des_crypt.h: Likewise.
74872         * include/rpc/key_prot.h: Likewise.
74873         * include/rpc/pmap_clnt.h: Likewise.
74874         * include/rpc/pmap_prot.h: Likewise.
74875         * include/rpc/pmap_rmt.h: Likewise.
74876         * include/rpc/rpc_msg.h: Likewise.
74877         * include/rpc/svc.h: Likewise.
74878         * include/rpc/svc_auth.h: Likewise.
74879         * include/rpc/xdr.h: Likewise.
74880         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74881         * nss/Makefile: Likewise.
74882         * sunrpc/Makefile: Don't install headers.  Build library with normal
74883         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74884         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74885         for the compat linking library.  Remove use of INTDEF/INTUSE.
74886         * sunrpc/auth_none.c: Likewise.
74887         * sunrpc/auth_unix.c: Likewise.
74888         * sunrpc/authdes_prot.c: Likewise.
74889         * sunrpc/authuxprot.c: Likewise.
74890         * sunrpc/clnt_gen.c: Likewise.
74891         * sunrpc/clnt_perr.c: Likewise.
74892         * sunrpc/clnt_raw.c: Likewise.
74893         * sunrpc/clnt_simp.c: Likewise.
74894         * sunrpc/clnt_tcp.c: Likewise.
74895         * sunrpc/clnt_udp.c: Likewise.
74896         * sunrpc/clnt_unix.c: Likewise.
74897         * sunrpc/des_crypt.c: Likewise.
74898         * sunrpc/des_soft.c: Likewise.
74899         * sunrpc/get_myaddr.c: Likewise.
74900         * sunrpc/key_call.c: Likewise.
74901         * sunrpc/key_prot.c: Likewise.
74902         * sunrpc/netname.c: Likewise.
74903         * sunrpc/pm_getmaps.c: Likewise.
74904         * sunrpc/pm_getport.c: Likewise.
74905         * sunrpc/pmap_clnt.c: Likewise.
74906         * sunrpc/pmap_prot.c: Likewise.
74907         * sunrpc/pmap_prot2.c: Likewise.
74908         * sunrpc/pmap_rmt.c: Likewise.
74909         * sunrpc/publickey.c: Likewise.
74910         * sunrpc/rpc_cmsg.c: Likewise.
74911         * sunrpc/rpc_common.c: Likewise.
74912         * sunrpc/rpc_dtable.c: Likewise.
74913         * sunrpc/rpc_prot.c: Likewise.
74914         * sunrpc/rpc_thread.c: Likewise.
74915         * sunrpc/rtime.c: Likewise.
74916         * sunrpc/svc.c: Likewise.
74917         * sunrpc/svc_auth.c: Likewise.
74918         * sunrpc/svc_authux.c: Likewise.
74919         * sunrpc/svc_raw.c: Likewise.
74920         * sunrpc/svc_run.c: Likewise.
74921         * sunrpc/svc_simple.c: Likewise.
74922         * sunrpc/svc_tcp.c: Likewise.
74923         * sunrpc/svc_udp.c: Likewise.
74924         * sunrpc/svc_unix.c: Likewise.
74925         * sunrpc/svcauth_des.c: Likewise.
74926         * sunrpc/xcrypt.c: Likewise.
74927         * sunrpc/xdr.c: Likewise.
74928         * sunrpc/xdr_array.c: Likewise.
74929         * sunrpc/xdr_float.c: Likewise.
74930         * sunrpc/xdr_intXX_t.c: Likewise.
74931         * sunrpc/xdr_mem.c: Likewise.
74932         * sunrpc/xdr_rec.c: Likewise.
74933         * sunrpc/xdr_ref.c: Likewise.
74934         * sunrpc/xdr_sizeof.c: Likewise.
74935         * sunrpc/xdr_stdio.c: Likewise.
74936
74937 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74938
74939         [BZ #12650]
74940         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74941         * sysdeps/ia64/dl-tls.h: Likewise.
74942         * sysdeps/powerpc/dl-tls.h: Likewise.
74943         * sysdeps/s390/dl-tls.h: Likewise.
74944         * sysdeps/sh/dl-tls.h: Likewise.
74945         * sysdeps/sparc/dl-tls.h: Likewise.
74946         * sysdeps/x86_64/dl-tls.h: Likewise.
74947         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74948
74949 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74950
74951         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74952         rpath element also skip the following colon.
74953         (expand_dynamic_string_token): Add is_path parameter and pass
74954         down to DL_DST_REQUIRED and _dl_dst_substitute.
74955         (decompose_rpath): Call expand_dynamic_string_token with
74956         non-zero is_path.  Ignore empty rpaths.
74957         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74958         with zero is_path.
74959
74960 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74961
74962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74963         Make cancelable.
74964
74965 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74966
74967         [BZ #12655]
74968         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74969         Patch by Filipe David Manana <fdmanana@apache.org>.
74970
74971 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74972
74973         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74974         Maintain aligned stack.
74975         (CHECK_RSP): Remove unused macro.
74976
74977 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74978
74979         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74980         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74981
74982 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74983
74984         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74985
74986         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74987
74988 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74989
74990         [BZ #12518]
74991         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74992         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74993         * sysdeps/x86_64/memmove.c: New file.
74994         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74995         (memcpy): Renamed to ...
74996         (__new_memcpy): This.
74997         (memcpy): Provide GLIBC_2_14 memcpy.
74998         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74999         (memcpy): Provide GLIBC_2_2_5 memcpy.
75000
75001 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75002
75003         [BZ #12631]
75004         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75005
75006 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75007
75008         * misc/syncfs.c: New file.
75009         * misc/Makefile (routines): Add syncfs.
75010         * posix/unistd.h: Declare syncfs.
75011         * sysdeps/unix/syscalls.list: Add syncfs.
75012
75013 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75014
75015         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75016         open_by_handle_at.
75017         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75018         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75019         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75020         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75021         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75022         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75023         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75024
75025 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75026
75027         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75028         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75029         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75030         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75031         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75032         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75033         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75034
75035         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75036         sync_file_range.c with -fexceptions.
75037         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75038         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75039         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75040         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75041         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75042         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75043         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75044         sync_file_range as cancellation point
75045         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75046         now a wrapper around __call_sync_file_range with cancellation handling.
75047         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75048         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75049         function name to __call_sync_file_range.
75050         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75051         Add call_sync_file_range.
75052
75053 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75054
75055         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75056         bits/timex.h.
75057
75058 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75059
75060         * iconv/iconv.h: Fix typo in comment.
75061         * io/fcntl.h: Likewise.
75062         * libio/stdio.h: Likewise.
75063         * posix/spawn.h: Likewise.
75064         * posix/unistd.h: Likewise.
75065         * stdlib/stdlib.h: Likewise.
75066         * time/time.h: Likewise.
75067         * wcsmbs/wchar.h: Likewise.
75068
75069         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75070         open_by_handle): Add.
75071         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75072         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75073         Augment a few comments.
75074         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75075         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75076         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75077         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75078         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75079         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75080         open_by_handle.
75081
75082         * io/fcntl.h (AT_EMPTY_PATH): Define.
75083
75084 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75085
75086         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75087         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75088         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75089         to...
75090         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75091         * Versions.def: Add GLIBC_2.14.
75092         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75093         Export.
75094
75095 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75096
75097         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75098         round counter.
75099         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75100
75101 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75102
75103         [BZ #12597]
75104         * string/test-strncmp.c (do_page_test): New function.
75105         (check2): Likewise.
75106         (test_main): Call check2.
75107         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75108
75109 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75110
75111         [BZ #12587]
75112         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75113         Handle cache information in CPU leaf 4.
75114         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75115
75116 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75117
75118         [BZ #12583]
75119         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75120         character representation.
75121         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75122
75123 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75124
75125         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75126         END(__isnan) to END(__isnanf) to match function entry point/label
75127         EALIGN(__isnanf,...).
75128
75129 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75130
75131         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75132
75133 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75134
75135         [BZ #12510]
75136         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75137         copy from the symbol referenced in the relocation to initialize the
75138         used variable.
75139         Patch by Piotr Bury <pbury@goahead.com>.
75140         * elf/Makefile: Add rules to build and tst-unique3.
75141         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75142         * elf/tst-unique3.cc: New file.
75143         * elf/tst-unique3.h: New file.
75144         * elf/tst-unique3lib.cc: New file.
75145         * elf/tst-unique3lib2.cc: New file.
75146
75147         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75148
75149 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75150
75151         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75152         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75153         to _start.
75154
75155 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75156
75157         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75158         to-be-loaded object along a path to loader is ld.so.
75159
75160 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75161             Ulrich Drepper  <drepper@gmail.com>
75162
75163         * sysdeps/x86_64/memset.S: After aligning destination, code
75164         branches to different locations depending on the value of
75165         misalignment, when multiarch is enabled. Fix this.
75166
75167 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75168
75169         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75170         Set _x86_64_preferred_memory_instruction for AMD processsors.
75171         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75172         Set bit_Prefer_SSE_for_memop for AMD processors.
75173
75174 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75175
75176         * libio/fmemopen.c (fmemopen): Optimize a bit.
75177
75178 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75179
75180         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75181
75182 2011-03-03  Roland McGrath  <roland@redhat.com>
75183
75184         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75185
75186 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75187
75188         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75189         __bzero_ultra1 instead of __memset_ultra1.
75190
75191 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75192             Ulrich Drepper  <drepper@gmail.com>
75193
75194         [BZ #12509]
75195         * include/link.h (struct link_map): Add l_orig_initfini.
75196         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75197         returning unsuccessfully.
75198         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75199         close of a file loaded at startup, restore the original l_initfini
75200         list.
75201         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75202         list, store the pointer.
75203         * elf/Makefile ($(objpfx)noload-mem): New rule.
75204         (noload-ENV): Define.
75205         (tests): Add $(objpfx)noload-mem.
75206         * elf/noload.c: Include <memcheck.h>.
75207         (main): Call mtrace.  Close all opened handles.
75208
75209 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75210
75211         [BZ #12454]
75212         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75213         dependencies are missing.
75214
75215 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75216
75217         Fix __if_freereq crash: Unlike the generic version which uses free,
75218         Hurd needs munmap.
75219         * sysdeps/mach/hurd/ifreq.h: New file.
75220
75221 2011-01-27  Petr Baudis  <pasky@suse.cz>
75222             Ulrich Drepper  <drepper@gmail.com>
75223
75224         [BZ 12445]#
75225         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75226         to extend_alloca().
75227         * stdio-common/bug23.c: New file.
75228         * stdio-common/Makefile (tests): Add bug23.
75229
75230 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75231             Ulrich Drepper  <drepper@gmail.com>
75232
75233         [BZ #12489]
75234         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75235         before performing relro protection.  At old place add assertion
75236         to make sure nothing changed.
75237
75238 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75239             Glauber de Oliveira Costa  <glommer@gmail.com>
75240
75241         * elf/elf.h: Add new ARM TLS relocs.
75242
75243 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75244
75245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75246         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75247         cast from r3.
75248         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75249         'tests' variable.
75250         * sysdeps/wordsize-64/tst-writev.c: New file.
75251
75252 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75253
75254         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75255         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75256         insns in _dl_start to prevent a TOC reference before relocs are
75257         resolved.
75258
75259 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75260
75261         [BZ #12469]
75262         * Makeconfig: Remove RANLIB definition.
75263         * Makerules: Don't use RANLIB.
75264         * aclocal.m4: Remove ranlib test.
75265         * configure.in: No need to check for ranlib.
75266         * elf/rtld-Rules: Don't use RANLIB.
75267
75268 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75269
75270         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75271         protection macro.
75272         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75273         inclusion protection macro.
75274
75275         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75276         SIGRTMIN and SIGRTMAX and print information in that case only when
75277         SIGRTMIN is defined.
75278
75279 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75280
75281         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75282         arginfo fn returning -1.
75283
75284         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75285         and thousands string is zero terminated.
75286
75287 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75288
75289         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75290         sysdeps/unix/sysv/linux/bits/socket.h.
75291
75292 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75293
75294         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75295         (__CPU_COUNT): Remove old macros.
75296         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75297         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75298         (__CPU_ALLOC, __CPU_FREE): Add macros.
75299         (__sched_cpualloc, __sched_cpufree): Add declarations.
75300
75301 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75302
75303         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75304         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75305         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75306         (readdhstai): Return value of addhstaiX call.
75307         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75308         (addgrbyX): Return value returned by cache_addgr.
75309         (readdgrbyname): Return value returned by addgrbyX.
75310         (readdgrbygid): Likewise.
75311         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75312         (addpwbyX): Return value returned by cache_addpw.
75313         (readdpwbyname): Return value returned by addhstbyX.
75314         (readdpwbyuid): Likewise.
75315         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75316         (addservbyX): Return value returned by cache_addserv.
75317         (readdservbyname): Return value returned by addservbyX:
75318         (readdservbyport): Likewise.
75319         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75320         (addhstbyX): Return value returned by cache_addhst.
75321         (readdhstbyname): Return value returned by addhstbyX.
75322         (readdhstbyaddr): Likewise.
75323         (readdhstbynamev6): Likewise.
75324         (readdhstbyaddrv6): Likewise.
75325         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75326         (readdinitgroups): Return value returned by addinitgroupsX.
75327         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75328         (prune_cache): Keep track of timeout value of re-added entries.
75329         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75330         * nscd/nscd.h: Adjust prototypes of readd* functions.
75331
75332 2011-02-04  Roland McGrath  <roland@redhat.com>
75333
75334         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75335         (nis_stats): Likewise.
75336         * nis/nis_modify.c (nis_modify): Likewise.
75337         * nis/nis_remove.c (nis_remove): Likewise.
75338         * nis/nis_add.c (nis_add): Likewise.
75339
75340         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75341
75342         * posix/fnmatch_loop.c: Add some consts.
75343
75344         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75345
75346 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75347
75348         [BZ #12460]
75349         * config.make.in (config-cflags-novzeroupper): Define.
75350         * configure.in: Substitute libc_cv_cc_novzeroupper.
75351         * elf/Makefile (AVX-CFLAGS): Define.
75352         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75353         (CFLAGS-tst-auditmod4a.c): Likewise.
75354         (CFLAGS-tst-auditmod4b.c): Likewise.
75355         (CFLAGS-tst-auditmod6b.c): Likewise.
75356         (CFLAGS-tst-auditmod6c.c): Likewise.
75357         (CFLAGS-tst-auditmod7b.c): Likewise.
75358         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75359
75360 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75361
75362         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75363         function to the callback.
75364         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75365
75366 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75367
75368         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75369         of errno.
75370
75371 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75372
75373         [BZ #11724]
75374         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75375         of constructors.
75376         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75377         of destructors.
75378         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75379
75380         [BZ #11724]
75381         * elf/Makefile: Add rules to build and run new test.
75382         * elf/tst-initorder.c: New file.
75383         * elf/tst-initorder.exp: New file.
75384         * elf/tst-initordera1.c: New file.
75385         * elf/tst-initordera2.c: New file.
75386         * elf/tst-initordera3.c: New file.
75387         * elf/tst-initordera4.c: New file.
75388         * elf/tst-initorderb1.c: New file.
75389         * elf/tst-initorderb2.c: New file.
75390         * elf/tst-order-a1.c: New file.
75391         * elf/tst-order-a2.c: New file.
75392         * elf/tst-order-a3.c: New file.
75393         * elf/tst-order-a4.c: New file.
75394         * elf/tst-order-b1.c: New file.
75395         * elf/tst-order-b2.c: New file.
75396         * elf/tst-order-main.c: New file.
75397         New test case by George Gensure <werkt0@gmail.com>.
75398
75399 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75400
75401         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75402         decoding ACE if AI_CANONIDN.
75403
75404 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75405
75406         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75407
75408 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75409
75410         * version.h (RELEASE): Bump for 2.13 release.
75411         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75412
75413         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75414
75415         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75416         MADV_NOHUGEPAGE.
75417         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75418         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75419         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75420         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75421         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75422         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75423
75424         * posix/getconf.c: Update copyright year.
75425         * catgets/gencat.c: Likewise.
75426         * csu/version.c: Likewise.
75427         * debug/catchsegv.sh: Likewise.
75428         * debug/xtrace.sh: Likewise.
75429         * elf/ldconfig.c: Likewise.
75430         * elf/ldd.bash.in: Likewise.
75431         * elf/sprof.c (print_version): Likewise.
75432         * iconv/iconv_prog.c: Likewise.
75433         * iconv/iconvconfig.c: Likewise.
75434         * locale/programs/locale.c: Likewise.
75435         * locale/programs/localedef.c: Likewise.
75436         * malloc/memusage.sh: Likewise.
75437         * malloc/mtrace.pl: Likewise.
75438         * nscd/nscd.c (print_version): Likewise.
75439         * nss/getent.c: Likewise.
75440
75441         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75442         PF_CAIF, and PF_ALG.
75443         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75444
75445 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75446
75447         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75448         (modules-names): Use them.
75449         (ifunc-test-modules, ifunc-pie-tests): Define.
75450         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75451         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75452         (test-extras): Likewise.
75453         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75454         $(compile-command.c).
75455         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75456         (all-built-dso): Define.
75457         (check-textrel.out, check-execstack.out): Depend on it.
75458
75459         * configure.in: Don't override --enable-multi-arch.
75460
75461 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75462
75463         [BZ #6812]
75464         * nscd/hstcache.c (tryagain): Define.
75465         (cache_addhst): Return tryagain not notfound for temporary errors.
75466         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75467         failed.
75468
75469 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75470
75471         [BZ #10563]
75472         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75473         to make the syscall.
75474         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75475
75476         [BZ #12378]
75477         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75478         and fall back to matching as normal character if the string ends before
75479         the matching ']' is found.  This is what POSIX requires.
75480         * posix/testfnm.c: Adjust test result.
75481         * posix/globtest.sh: Adjust test result.  Add new test.
75482         * posix/tst-fnmatch.input: Likewise.
75483         * posix/tst-fnmatch2.c: Add new test.
75484
75485 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75486
75487         * elf/Makefile (check-execstack): Revert last change.  Depend on
75488         check-execstack.h.
75489         (check-execstack.h): New target.
75490         (generated): Add check-execstack.h.
75491         * elf/check-execstack.c: Include "check-execstack.h".
75492         (main): Revert last change.
75493         (handle_file): Return zero if GNU_STACK is absent and
75494         DEFAULT_STACK_PERMS doesn't include PF_X.
75495
75496 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75497
75498         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75499         in child fails because the descriptor is already closed.
75500         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75501         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75502         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75503
75504         [BZ #12397]
75505         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75506         syscall.
75507
75508         [BZ #10484]
75509         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75510         temporary buffer used to handle multi lookups locally.
75511         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75512
75513 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75514
75515         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75516         loader is ld.so.
75517
75518 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75519
75520         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75521         alignment for SSE2.
75522
75523 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75524
75525         [BZ #12394]
75526         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75527         characters.  When rounding increased number of integer digits recompute
75528         number of groups.
75529         * stdio-common/tst-grouping.c: New file.
75530         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75531
75532 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75533
75534         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75535         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75536
75537         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75538         void.
75539         * bits/select.h: Likewise.
75540
75541 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75542
75543         * po/ja.po: Update from translation team.
75544
75545 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75546
75547         [BZ #11155]
75548         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75549         implementation just like for lxstat, fxstatat, et al.
75550
75551 2010-12-27  Jim Meyering  <meyering@redhat.com>
75552
75553         [BZ #12348]
75554         * posix/regexec.c (build_trtable): Return failure indication upon
75555         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75556
75557 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75558
75559         [BZ #12201]
75560         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75561         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75562         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75563         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75564
75565         [BZ #12207]
75566         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75567
75568         [BZ #12204]
75569         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75570         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75571
75572 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75573
75574         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75575         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75576         script has SORT_BY_INIT_PRIORITY.
75577         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75578         NO_CTORS_DTORS_SECTIONS is defined.
75579         * elf/soinit.c: Likewise.
75580         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75581         NO_CTORS_DTORS_SECTIONS is defined.
75582         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75583         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75584         * sysdeps/sh/init-first.c: Likewise.
75585         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75586
75587 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75588
75589         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75590         always use the slow path.
75591
75592 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75593
75594         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75595         similar rule which adds the sysdep directories to the header search in
75596         order to pick up the correct platform stackinfo.h.
75597         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75598         perform test if it is, otherwise return successfully without testing.
75599         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75600         DEFAULT_STACK_PERMS define in stackinfo.h.
75601         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75602         defined in stackinfo.h.
75603         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75604         DEFAULT_STACK_PERMS defined in stackinfo.h.
75605         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75606         * sysdeps/ia64/stackinfo.h: Likewise.
75607         * sysdeps/s390/stackinfo.h: Likewise.
75608         * sysdeps/sh/stackinfo.h: Likewise.
75609         * sysdeps/sparc/stackinfo.h: Likewise.
75610         * sysdeps/x86_64/stackinfo.h: Likewise.
75611         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75612         PF_X for powerpc64.  Retain PF_X for powerpc32.
75613
75614 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75615
75616         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75617         accurately.
75618         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75619         GETDENTS_64BIT_ALIGNED.
75620
75621 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75622
75623         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75624
75625 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75626
75627         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75628         _GNU_SOURCE.
75629
75630         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75631         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75632         Remove __restrict.
75633         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75634         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75635
75636 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75637
75638         [BZ #11655]
75639         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75640         are initialized.
75641
75642 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75643
75644         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75645
75646 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75647
75648         * po/it.po: Update from translation team.
75649
75650 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75651
75652         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75653         unused codes.
75654
75655 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75656
75657         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75658
75659 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75660
75661         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75662         specially.
75663         (gaih_getanswer_slice): Likewise.
75664
75665 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75666
75667         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75668
75669 2010-05-31  Petr Baudis  <pasky@suse.cz>
75670
75671         [BZ #11149]
75672         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75673         silently even in the chroot mode.
75674
75675 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75676
75677         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75678         last patch a bit.  Pretty printing
75679
75680 2010-05-31  Petr Baudis <pasky@suse.cz>
75681
75682         [BZ #10085]
75683         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75684         initialization of skip_initgroups_dyn.
75685
75686 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75687
75688         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75689         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75690
75691 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75692
75693         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75694
75695 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75696
75697         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75698         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75699         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75700         ($(objpfx)tst-fnmatch-mem): New rule.
75701         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75702         * posix/tst-fnmatch.c (main): Call mtrace.
75703
75704 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75705
75706         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75707         Support Intel processor model 6 and model 0x2c.
75708
75709 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75710
75711         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75712           signed comparison.
75713
75714 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75715
75716         [BZ #12205]
75717         * string/test-strncasecmp.c (check_result): New function.
75718         (do_one_test): Use it.
75719         (check1): New function.
75720         (test_main): Use it.
75721         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75722         Support strcasecmp and strncasecmp.
75723
75724 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75725
75726         [BZ #12194]
75727         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75728         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75729
75730 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75731
75732         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75733         IFUNC support.
75734         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75735         memset-x86-64.
75736         * sysdeps/x86_64/multiarch/bzero.S: New file.
75737         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75738         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75739         * sysdeps/x86_64/multiarch/memset.S: New file.
75740         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75741         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75742         Set bit_Prefer_SSE_for_memop for Intel processors.
75743         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75744         Define.
75745         (index_Prefer_SSE_for_memop): Define.
75746         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75747
75748 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75749
75750         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75751         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75752
75753 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75754
75755         [BZ #12191]
75756         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75757         (__x86_64_raw_data_cache_size_half): Likewise.
75758         (__x86_64_raw_shared_cache_size): Likewise.
75759         (__x86_64_raw_shared_cache_size_half): Likewise.
75760
75761         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75762         (__x86_64_raw_data_cache_size_half): Likewise.
75763         (__x86_64_raw_shared_cache_size): Likewise.
75764         (__x86_64_raw_shared_cache_size_half): Likewise.
75765         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75766         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75767         and __x86_64_raw_shared_cache_size_half.  Round
75768         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75769         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75770         to multiple of 256 bytes.
75771
75772 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75773
75774         [BZ #12167]
75775         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75776         of inacessible symlinks.  Verify result of symlink before returning it.
75777         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75778         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75779
75780 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75781
75782         * math/math.h (isinf): Fix typo in comment.
75783
75784 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75785
75786         * po/da.po: Update from translation team.
75787
75788 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75789
75790         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75791         is added to the list.
75792
75793 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75794             Ulrich Drepper  <drepper@gmail.com>
75795
75796         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75797         the global list here.  Move code to...
75798         (_dl_add_to_namespace_list): ...here.  New function.
75799         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75800         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75801         * elf/dl-load.c (lose): Don't remove the element from the list.
75802         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75803         (_dl_map_object): Likewise.
75804
75805 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75806
75807         [BZ #12159]
75808         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75809         into all bytes of SSE register.
75810         Patch by Richard Li <richardpku@gmail.com>.
75811
75812 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75813
75814         [BZ #12140]
75815         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75816         perturbing.
75817
75818 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75819
75820         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75821         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75822         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75823         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75825         submachine.
75826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75827
75828 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75829
75830         * include/dlfcn.h (__RTLD_SECURE): Define.
75831         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75832         mode & __RTLD_SECURE instead.
75833         (open_path): Rename preloaded parameter to secure.
75834         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75835         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75836         * elf/dl-deps.c (openaux): Likewise.
75837         * elf/rtld.c (struct map_args): Remove is_preloaded.
75838         (map_doit): Don't use it.
75839         (dl_main): Likewise.
75840         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75841         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75842
75843 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75844
75845         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75846         (sysd-rules-targets): Remove duplicates.
75847         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75848         rtld-%.$o dependency.
75849
75850 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75851
75852         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75853         _dl_map_object do it.
75854
75855 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75856
75857         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75858         fast fma builtins, define the macros in the C99 standard.
75859         (FP_FAST_FMAF): Likewise.
75860         (FP_FAST_FMAL): Likewise.
75861         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75862
75863         * bits/mathdef.h: Update copyright year.
75864         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75865
75866 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75867
75868         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75869         builtins, define the macros in the C99 standard.
75870         (FP_FAST_FMAF): Likewise.
75871         (FP_FAST_FMAL): Likewise.
75872         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75873         multiply/add.
75874         (FP_FAST_FMAF): Likewise.
75875
75876 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75877
75878         [BZ #3268]
75879         * math/libm-test.inc (fma_test): Some new testcases.
75880         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75881         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75882         y and infinite z.  Do multiplication by C already in long double.
75883         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75884         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75885         y and infinite z.  Do bitwise or of inexact bit into u.d.
75886         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75887         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75888         * sysdeps/i386/fpu/s_fma.S: Removed.
75889         * sysdeps/i386/fpu/s_fmal.S: Removed.
75890
75891 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75892
75893         [BZ #3268]
75894         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75895         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75896         computation is not scheduled after fetestexcept.  Fix value
75897         of minimum denormal long double.
75898
75899 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75900
75901         [BZ #3268]
75902         * math/libm-test.inc (fma_test): Add some more tests.
75903         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75904         correctly.
75905
75906 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75907
75908         * scripts/data/localplt-s390-linux-gnu.data: New file.
75909         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75910
75911 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75912
75913         [BZ #3268]
75914         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75915         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75916         instead of dbl-64.
75917         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75918         inlines.
75919         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75920         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75921         if one of x and y is very large and the other is subnormal.
75922         * sysdeps/s390/fpu/s_fmaf.c: New file.
75923         * sysdeps/s390/fpu/s_fma.c: New file.
75924         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75925         * sysdeps/powerpc/fpu/s_fma.S: New file.
75926         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75927         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75928         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75929
75930 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75931
75932         [BZ #3268]
75933         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75934         fma tests.
75935         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75936         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75937         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75938         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75939         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75940         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75941         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75942
75943 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75944
75945         [BZ #12078]
75946         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75947         * posix/bug-regex31.input: Add test case.
75948
75949 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75950
75951         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75952         * posix/bug-regex31.input: New file.
75953
75954         [BZ #12078]
75955         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75956         (parse_sub_exp): Fix last change, use postorder.
75957
75958         * posix/bug-regex31.c: New file.
75959         * posix/Makefile: Add rules to build and run bug-regex31.
75960
75961         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75962
75963         [BZ #12078]
75964         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75965
75966         [BZ #12108]
75967         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75968         to have entries in sys_siglist.
75969
75970         [BZ #12093]
75971         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75972         be NULL.
75973
75974 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75975
75976         [BZ #3268]
75977         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75978         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75979         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75980         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75981         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75982         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75983         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75984         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75985         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75986         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75987         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75988         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75989         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75990         * math/ftestexcept.c (fetestexcept): Likewise.
75991         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75992         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75993         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75994         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75995         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75996         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75997         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75998
75999 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76000
76001         [BZ #12107]
76002         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76003         newline.
76004
76005 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76006
76007         * string/bug-strstr1.c: New file.
76008         * string/Makefile: Add rules to build and run bug-strstr1.
76009
76010 2010-10-05  Eric Blake  <eblake@redhat.com>
76011
76012         [BZ #12092]
76013         * string/str-two-way.h (two_way_long_needle): Always clear memory
76014         when skipping input due to the shift table.
76015
76016 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76017
76018         [BZ #12005]
76019         * malloc/mcheck.c: Handle large requests.
76020
76021         [BZ #12077]
76022         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76023         for strncmp and strncasecmp.
76024         * string/stratcliff.c: Add tests for strcmp and strncmp.
76025         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76026
76027 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76028
76029         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76030         __set_fpscr.
76031
76032 2010-09-30  Andreas Jaeger  <aj@suse.de>
76033
76034         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76035         (CGROUP_SUPER_MAGIC): Define.
76036         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76037         Handle btrfs and cgroup file systems.
76038         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76039         Likewise.
76040
76041 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76042
76043         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76044         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76045
76046 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76047
76048         [BZ #12067]
76049         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76050         trying to locate the ELF header.
76051
76052 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76053
76054         [BZ #11611]
76055         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76056         Mask out sign-bit copies when constructing f_fsid.
76057
76058 2010-09-24  Petr Baudis <pasky@suse.cz>
76059
76060         * debug/stack_chk_fail_local.c: Add missing licence exception.
76061         * debug/warning-nop.c: Likewise.
76062
76063 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76064
76065         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76066         implementing getdents64 using getdents syscall, set d_type if
76067         __ASSUME_GETDENTS32_D_TYPE.
76068
76069 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76070
76071         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76072         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76073
76074 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76075
76076         [BZ #12037]
76077         * posix/unistd.h: Undo change of feature selection for ftruncate from
76078         2010-01-11.
76079
76080 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76081
76082         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76083         detection.
76084
76085 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76086
76087         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76088         fanotify_mark.
76089         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76090
76091 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76092
76093         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76094         variables after CHECK_SP call.
76095         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76096
76097 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76098             Ulrich Drepper  <drepper@redhat.com>
76099
76100         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76101         re-relocationg ld.so.
76102         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76103         _dl_init_paths call.
76104         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76105         here anymore.
76106
76107 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76108
76109         * resolv/res_init.c (__res_vinit): Count the default server we added.
76110
76111 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76112             Ulrich Drepper  <drepper@redhat.com>
76113
76114         [BZ #11968]
76115         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76116         (____longjmp_chk): Use %ebx for saving value across system call.
76117         Add unwind info.
76118
76119 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76120
76121         * manual/Makefile: Don't mix pattern rules with normal rules.
76122
76123 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76124
76125         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76126         operation.
76127         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76128         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76129         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76130         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76131         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76132         Likewise.
76133
76134 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76135
76136         [BZ #11979]
76137         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76138         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76139
76140 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76141
76142         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76143         * sysdeps/x86_64/addmul_1.S: Likewise.
76144         * sysdeps/x86_64/lshift.S: Likewise.
76145         * sysdeps/x86_64/mul_1.S: Likewise.
76146         * sysdeps/x86_64/rshift.S: Likewise.
76147         * sysdeps/x86_64/sub_n.S: Likewise.
76148         * sysdeps/x86_64/submul_1.S: Likewise.
76149
76150 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76151
76152         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76153         Define __sched_param instead of SCHED_* and sched_param when
76154         <bits/sched.h> is included with __need_schedparam defined.
76155         * bits/sched.h [__need_schedparam]
76156         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76157         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76158         (__defined_schedparam): Define to 1.
76159         (__sched_param): New structure, identical to sched_param.
76160         (__need_schedparam): Undefine.
76161
76162 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76163
76164         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76165         (epoll_create1): Declare.
76166
76167         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76168
76169 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76170
76171         [BZ #7066]
76172         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76173         shifting retval into place.
76174
76175 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76176
76177         * nis/rpcsvc/nis.h: Update copyright notice.
76178         * nis/rpcsvc/nis.x: Likewise.
76179         * nis/rpcsvc/nis_callback.h: Likewise.
76180         * nis/rpcsvc/nis_callback.x: Likewise.
76181         * nis/rpcsvc/nis_object.x: Likewise.
76182         * nis/rpcsvc/nis_tags.h: Likewise.
76183         * nis/rpcsvc/yp.h: Likewise.
76184         * nis/rpcsvc/yp.x: Likewise.
76185         * nis/rpcsvc/ypupd.h: Likewise.
76186         * nis/yp_xdr.c: Likewise.
76187         * nis/ypupdate_xdr.c: Likewise.
76188
76189         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76190         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76191         (pmap_getport): Use __libc_rpc_getport.
76192         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76193         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76194         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76195
76196 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76197
76198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76199         fanotify_mark.
76200
76201 2010-08-27  Roland McGrath  <roland@redhat.com>
76202
76203         * sysdeps/i386/i686/multiarch/Makefile
76204         (CFLAGS-varshift.c): New variable.
76205
76206 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76207
76208         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76209         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76210
76211         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76212
76213         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76214
76215 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76216
76217         * sysdeps/x86_64/strlen.S: Unroll the loop.
76218         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76219         strlen-sse2 strlen-sse2-bsf.
76220         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76221         __strlen_no_bsf if bit_Slow_BSF is set.
76222         (__strlen_sse42): Removed.
76223         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76224         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76225
76226 2010-08-25  Roland McGrath  <roland@redhat.com>
76227
76228         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76229         * sysdeps/x86_64/multiarch/varshift.c: New file.
76230         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76231         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76232         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76233         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76234
76235 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76236
76237         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76238         strlen-sse2 strlen-sse2-bsf.
76239         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76240         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76241         (__strlen_sse2): Removed.
76242         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76243         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76244         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76245         bit_Slow_BSF for Atom.
76246         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76247         (index_Slow_BSF): Define.
76248         (HAS_SLOW_BSF): Define.
76249
76250 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76251
76252         [BZ #10851]
76253         * resolv/res_init.c (__res_vinit): When no server address at all
76254         is given default to loopback.
76255
76256 2010-08-24  Roland McGrath  <roland@redhat.com>
76257
76258         * configure.in: Remove config-name.h generation.
76259         * configure: Regenerated.
76260         * config-name.in: File removed.
76261         * scripts/config-uname.sh: New file.
76262         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76263         ($(objdir)config-name.h): New target.
76264
76265         * sunrpc/rpc_parse.h: Avoid nested comment.
76266
76267 2010-08-24  Richard Henderson  <rth@redhat.com>
76268             Ulrich Drepper  <drepper@redhat.com>
76269             H.J. Lu  <hongjiu.lu@intel.com>
76270
76271         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76272         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76273         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76274         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76275         _mm_alignr_epi8 with _mm_loadu_si128.
76276         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76277         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76278         (__m128i_shift_right): Removed.
76279         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76280         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76281         * sysdeps/x86_64/multiarch/varshift.h: New file.
76282         * sysdeps/x86_64/multiarch/varshift.S: New file.
76283
76284 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76285
76286         * configure.in: Move assembler checks to before sysdep dir checking.
76287
76288 2010-08-20  Petr Baudis  <pasky@suse.cz>
76289
76290         * LICENSES: Sync the sunrpc license.
76291
76292 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76293
76294         * sunrpc/auth_des.c: Update copyright notice once again.
76295         * sunrpc/auth_none.c: Likewise.
76296         * sunrpc/auth_unix.c: Likewise.
76297         * sunrpc/authdes_prot.c: Likewise.
76298         * sunrpc/authuxprot.c: Likewise.
76299         * sunrpc/bindrsvprt.c: Likewise.
76300         * sunrpc/clnt_gen.c: Likewise.
76301         * sunrpc/clnt_perr.c: Likewise.
76302         * sunrpc/clnt_raw.c: Likewise.
76303         * sunrpc/clnt_simp.c: Likewise.
76304         * sunrpc/clnt_tcp.c: Likewise.
76305         * sunrpc/clnt_udp.c: Likewise.
76306         * sunrpc/clnt_unix.c: Likewise.
76307         * sunrpc/des_crypt.c: Likewise.
76308         * sunrpc/des_soft.c: Likewise.
76309         * sunrpc/get_myaddr.c: Likewise.
76310         * sunrpc/getrpcport.c: Likewise.
76311         * sunrpc/key_call.c: Likewise.
76312         * sunrpc/key_prot.c: Likewise.
76313         * sunrpc/openchild.c: Likewise.
76314         * sunrpc/pm_getmaps.c: Likewise.
76315         * sunrpc/pm_getport.c: Likewise.
76316         * sunrpc/pmap_clnt.c: Likewise.
76317         * sunrpc/pmap_prot.c: Likewise.
76318         * sunrpc/pmap_prot2.c: Likewise.
76319         * sunrpc/pmap_rmt.c: Likewise.
76320         * sunrpc/rpc/auth.h: Likewise.
76321         * sunrpc/rpc/auth_unix.h: Likewise.
76322         * sunrpc/rpc/clnt.h: Likewise.
76323         * sunrpc/rpc/des_crypt.h: Likewise.
76324         * sunrpc/rpc/key_prot.h: Likewise.
76325         * sunrpc/rpc/netdb.h: Likewise.
76326         * sunrpc/rpc/pmap_clnt.h: Likewise.
76327         * sunrpc/rpc/pmap_prot.h: Likewise.
76328         * sunrpc/rpc/pmap_rmt.h: Likewise.
76329         * sunrpc/rpc/rpc.h: Likewise.
76330         * sunrpc/rpc/rpc_des.h: Likewise.
76331         * sunrpc/rpc/rpc_msg.h: Likewise.
76332         * sunrpc/rpc/svc.h: Likewise.
76333         * sunrpc/rpc/svc_auth.h: Likewise.
76334         * sunrpc/rpc/types.h: Likewise.
76335         * sunrpc/rpc/xdr.h: Likewise.
76336         * sunrpc/rpc_clntout.c: Likewise.
76337         * sunrpc/rpc_cmsg.c: Likewise.
76338         * sunrpc/rpc_common.c: Likewise.
76339         * sunrpc/rpc_cout.c: Likewise.
76340         * sunrpc/rpc_dtable.c: Likewise.
76341         * sunrpc/rpc_hout.c: Likewise.
76342         * sunrpc/rpc_main.c: Likewise.
76343         * sunrpc/rpc_parse.c: Likewise.
76344         * sunrpc/rpc_parse.h: Likewise.
76345         * sunrpc/rpc_prot.c: Likewise.
76346         * sunrpc/rpc_sample.c: Likewise.
76347         * sunrpc/rpc_scan.c: Likewise.
76348         * sunrpc/rpc_scan.h: Likewise.
76349         * sunrpc/rpc_svcout.c: Likewise.
76350         * sunrpc/rpc_tblout.c: Likewise.
76351         * sunrpc/rpc_util.c: Likewise.
76352         * sunrpc/rpc_util.h: Likewise.
76353         * sunrpc/rpcinfo.c: Likewise.
76354         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76355         * sunrpc/rpcsvc/key_prot.x: Likewise.
76356         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76357         * sunrpc/rpcsvc/mount.x: Likewise.
76358         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76359         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76360         * sunrpc/rpcsvc/rex.x: Likewise.
76361         * sunrpc/rpcsvc/rstat.x: Likewise.
76362         * sunrpc/rpcsvc/rusers.x: Likewise.
76363         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76364         * sunrpc/rpcsvc/spray.x: Likewise.
76365         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76366         * sunrpc/rtime.c: Likewise.
76367         * sunrpc/svc.c: Likewise.
76368         * sunrpc/svc_auth.c: Likewise.
76369         * sunrpc/svc_authux.c: Likewise.
76370         * sunrpc/svc_raw.c: Likewise.
76371         * sunrpc/svc_run.c: Likewise.
76372         * sunrpc/svc_simple.c: Likewise.
76373         * sunrpc/svc_tcp.c: Likewise.
76374         * sunrpc/svc_udp.c: Likewise.
76375         * sunrpc/svc_unix.c: Likewise.
76376         * sunrpc/svcauth_des.c: Likewise.
76377         * sunrpc/xcrypt.c: Likewise.
76378         * sunrpc/xdr.c: Likewise.
76379         * sunrpc/xdr_array.c: Likewise.
76380         * sunrpc/xdr_float.c: Likewise.
76381         * sunrpc/xdr_mem.c: Likewise.
76382         * sunrpc/xdr_rec.c: Likewise.
76383         * sunrpc/xdr_ref.c: Likewise.
76384         * sunrpc/xdr_sizeof.c: Likewise.
76385         * sunrpc/xdr_stdio.c: Likewise.
76386
76387         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76388         handling.
76389
76390 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76391
76392         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76393
76394 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76395
76396         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76397         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76398         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76399         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76400         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76401         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76402         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76403         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76404         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76405         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76406         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76407         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76408         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76409         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76410
76411 2010-07-26  Anton Blanchard  <anton@samba.org>
76412
76413         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76414         * malloc/arena.c (heap_trim): Likewise.
76415
76416 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76417
76418         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76419         here.  Not...
76420         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76421         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76422
76423 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76424
76425         * sysdeps/i386/elf/Makefile: New file.
76426
76427 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76428
76429         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76430         from fanotify_init.
76431         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76432         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76433
76434 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76435
76436         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76437         of strncasecmp_l.
76438         * sysdeps/multiarch/strcmp.S: Likewise.
76439
76440 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76441
76442         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76443         strncase_l-nonascii.
76444         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76445         Add strncase_l-ssse3.
76446         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76447         * sysdeps/x86_64/strcmp.S: Likewise.
76448         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76449         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76450         * sysdeps/x86_64/strncase.S: New file.
76451         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76452         * sysdeps/x86_64/strncase_l.S: New file.
76453         * string/Makefile (strop-tests): Add strncasecmp.
76454         * string/test-strncasecmp.c: New file.
76455
76456         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76457         warning.
76458
76459         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76460         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76461
76462 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76463
76464         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76465
76466 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76467
76468         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76469         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76470         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76471
76472 2010-05-01  Alan Modra  <amodra@gmail.com>
76473
76474         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76475         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76476         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76477         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76478         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76479         tidying.  Don't tail-call __sigjmp_save for static lib.
76480         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76481         save location.
76482         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76483         (CALL_MCOUNT): Add eh info, and nop after bl.
76484         (TAIL_CALL_SYSCALL_ERROR): New macro.
76485         (PSEUDO_RET): Use it.
76486         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76487         Correct save location of integer regs and cr.
76488         (_dl_profile_resolve): Correct cr save location.  Delete nops
76489         after bl when SHARED.  Reduce cfi size a little by better
76490         placement of cfi directives.
76491         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76492         make a stack frame.  Instead use parm save area as a temp.
76493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76494         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76496         Don't make a stack frame for parent, use parm save area.
76497         Increase child stack frame to 112 bytes.  Don't save unused reg,
76498         and adjust reg usage.  Set up cfi on error recovery and
76499         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76501         (__makecontext): Add dummy nop after jump to exit.
76502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76503         Use correct parm save area and cr save, reduce stack frame.
76504         Correct cfi for possible PSEUDO_RET frame setup.
76505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76506         Branch to local label emitted by PSEUDO_RET rather than
76507         __syscall_error.
76508
76509 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76510
76511         [BZ #11904]
76512         * locale/programs/locale.c (print_assignment): New function.
76513         (show_locale_vars): Use it.
76514
76515 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76516
76517         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76518         field.
76519         (struct statfs64): Likewise.
76520         (_STATFS_F_FLAGS): Define.
76521         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76522         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76523         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76524         (ST_VALID): Define locally.
76525         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76526         __statvfs_getflags, use the provided value.
76527         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76528         __ASSUME_STATFS_F_FLAGS.
76529
76530         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76531
76532         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76533         Add sys/fanotify.h.
76534         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76535         fanotify_mask for GLIBC_2.13.
76536         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76537         fanotify_init and fanotify_mark.
76538         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76539         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76540
76541         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76542         Add prlimit.
76543         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76544         prlimit64 for GLIBC_2.13.
76545         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76546         prlimit64.
76547         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76548         syscall.
76549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76550         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76551         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76552         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76553         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76554         add prlimit alias.
76555         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76556
76557         [BZ #11903]
76558         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76559         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76560
76561         * nss/Makefile: Add rules to build and run tst-nss-test1.
76562         * shlib-versions: Add entry for libnss_test1.
76563         * nss/nss_test1.c: New file.
76564         * nss/tst-nss-test1.c: New file.
76565
76566         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76567         (__nss_configure_lookup): Set appropriate entry in
76568         __nss_configure_lookup to true.
76569         * nss/nsswitch.h: Define enum with indeces of databases in
76570         databases and __nss_database_custom arrays.  Declare
76571         __nss_database_custom.
76572         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76573         to avoid using nscd when custom rules are installed.
76574         * nss/getXXbyYY_r.c: Likewise.
76575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76576
76577         * nss/nss_files/files-parse.c: Whitespace fixes.
76578
76579 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76580
76581         [BZ #11883]
76582         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76583         * posix/fnmatch_loop.c: Likewise.
76584
76585 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76586
76587         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76588         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76589         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76590         * Versions.def [GLIBC_2.13]: Add.
76591
76592 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76593
76594         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76595         Also fail if tpwd after pwuid call is NULL.
76596
76597 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76598
76599         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76600         when converting to ms.
76601
76602 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76603
76604         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76605         EOPNOTSUPP errors with ENOTTY.
76606         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76607         EOPNOTSUPP errors with ENOTTY.
76608
76609 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76610
76611         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76612         Add strcasecmp_l-ssse3.
76613         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76614         strcasecmp.
76615         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76616         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76617         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76618
76619 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76620
76621         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76622
76623         * string/Makefile (strop-tests): Add strcasecmp.
76624         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76625         strcasecmp_l-nonascii.
76626         (gen-as-const-headers): Add locale-defines.sym.
76627         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76628         * sysdeps/x86_64/strcasecmp.S: New file.
76629         * sysdeps/x86_64/strcasecmp_l.S: New file.
76630         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76631         * sysdeps/x86_64/locale-defines.sym: New file.
76632         * string/test-strcasecmp.c: New file.
76633
76634         * string/test-strcasestr.c: Test both ends of the range of characters.
76635         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76636
76637 2010-07-29  Roland McGrath  <roland@redhat.com>
76638
76639         [BZ #11856]
76640         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76641
76642 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76643
76644         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76645         for ld.so.
76646
76647 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76648
76649         * manual/memory.texi (Malloc Tunable Parameters): Document
76650         M_PERTURB.
76651
76652 2010-07-26  Roland McGrath  <roland@redhat.com>
76653
76654         [BZ #11840]
76655         * configure.in (-fgnu89-inline check): Set and substitute
76656         gnu89_inline, not libc_cv_gnu89_inline.
76657         * configure: Regenerated.
76658         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76659
76660 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76661
76662         * string/test-strnlen.c: New file.
76663         * string/Makefile (strop-tests): Add strnlen.
76664         * string/tester.c (test_strnlen): Add a few more test cases.
76665         * string/tst-strlen.c: Better error reporting.
76666
76667         * sysdeps/x86_64/strnlen.S: New file.
76668
76669 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76670
76671         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76672         lower-latency instructions.
76673
76674 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76675
76676         * string/test-strcasestr.c: New file.
76677         * string/test-strstr.c: New file.
76678         * string/Makefile (strop-tests): Add strstr and strcasestr.
76679         * string/str-two-way.h: Don't undefine MAX.
76680         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76681
76682 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76683
76684         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76685         strcasestr-nonascii.
76686         (CFLAGS-strcasestr-nonascii.c): Define.
76687         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76688         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76689         Remove unused attribute.
76690
76691 2010-07-20  Roland McGrath  <roland@redhat.com>
76692
76693         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76694         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76695         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76696         like LD_HWCAP_MASK can disable hwcaps.
76697
76698 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76699
76700         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76701
76702 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76703
76704         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76705         call in strcasestr.
76706         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76707         __strcasestr_sse42_nonascii.
76708         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76709         strcasestr-nonascii.c.
76710         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76711
76712 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76713
76714         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76715         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76716         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76717         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76718
76719 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76720
76721         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76722         fcntl.
76723
76724 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76725
76726         [BZ #11577]
76727         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76728         dl_signal_cerror.
76729
76730 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76731
76732         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76733         _PC_PIPE_BUF using F_GETPIPE_SZ.
76734
76735 2010-07-05  Roland McGrath  <roland@redhat.com>
76736
76737         * manual/arith.texi (Rounding Functions): Fix rint description
76738         implicit in round description.
76739
76740 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76741
76742         * elf/Makefile: Fix linking for a few tests to make recent linker
76743         happy.
76744
76745 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76746
76747         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76748         $(common-objpfx)libc_nonshared.a.
76749
76750 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76751
76752         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76753         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76754         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76755         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76756         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76757         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76758         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76759         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76774         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76775         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76776         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76777         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76778         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76779         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76780         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76781         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76782         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76783         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76784         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76785         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76800
76801 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76802
76803         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76804         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76805         * string/memmove.c (memmove): Renamed to ...
76806         (MEMMOVE): ...this.  Default to memmove.
76807         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76808         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76809         (END_CHK): Define.
76810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76811         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76812         mempcpy-ssse3-back memmove-ssse3-back.
76813         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76814         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76815         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76816         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76817         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76818         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76819         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76820         * sysdeps/x86_64/multiarch/memmove.c: New file.
76821         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76822         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76823         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76824         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76825         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76826         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76827         Define.
76828         (index_Fast_Copy_Backward): Define.
76829         (HAS_ARCH_FEATURE): Define.
76830         (HAS_FAST_REP_STRING): Define.
76831         (HAS_FAST_COPY_BACKWARD): Define.
76832
76833 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76834
76835         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76836         Restore proper fallback handling.
76837
76838 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76839
76840         [BZ #11701]
76841         * posix/group_member.c (__group_member): Correct checking loop.
76842
76843         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76844         OOM in getpwuid_r correctly.  Return error number when the caller
76845         should return, otherwise -1.
76846         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76847         call returning > 0 value.
76848         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76849
76850 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76851
76852         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76853         libc_nonshared.a from targets in modules-names.
76854
76855 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76856
76857         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76858         requires it.
76859
76860 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76861
76862         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76863         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76864         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76865         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76866
76867 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76868
76869         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76870
76871 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76872
76873         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76874         and F_GETPIPE_SZ.
76875         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76876         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76877         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76878         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76879         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76880         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76881
76882 2010-06-14  Roland McGrath  <roland@redhat.com>
76883
76884         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76885
76886 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76887
76888         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76889         __REDIRECT followed by __THROW.
76890         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76891         * posix/getopt.h (getopt): Likewise.
76892
76893 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76894
76895         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76896         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76897         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76898         in AT_FLAGS.
76899         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76900         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76901
76902 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76903
76904         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76905
76906 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76907
76908         [BZ #11640]
76909         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76910         Properly check family and model.
76911
76912 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76913
76914         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76915
76916 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76917
76918         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76919
76920 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76921
76922         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76923         symbol reference.
76924
76925 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76926
76927         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76928         symbol reference.
76929
76930 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76931
76932         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76933         and internal_recvmmsg.
76934         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76935         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76936         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76937         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76938
76939         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76940         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76941         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76942
76943 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76944
76945         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76946
76947 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76948
76949         POWER7 optimizations.
76950         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76951         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76952
76953 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76954
76955         * version.h: Update for 2.13 development version.
76956
76957 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76958
76959         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76960         exceptions.  Return 0.
76961
76962 2010-05-07  Roland McGrath  <roland@redhat.com>
76963
76964         * elf/ldconfig.c (main): Add a const.
76965
76966 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76967
76968         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76969         (args_options): Add no-idn option.
76970         (ahosts_keys_int): Add idn_flags to ai_flags.
76971         (parse_option): Handle 'i' option to clear idn_flags.
76972
76973         * malloc/malloc.c (_int_free): Possible race in the most recently
76974         added check.  Only act on the data if no current modification
76975         happened.
76976
76977 See ChangeLog.17 for earlier changes.